Commit Graph

1839 Commits

Author SHA1 Message Date
Gary V. Vaughan
8a839f1fac * libltdl/Makefile.am (AM_CPPFLAGS): Also check $top_builddir for
config.h.
(ltdl.o): config.h is in $top_builddir.
2004-03-29 09:41:37 +00:00
Scott James Remnant
0916718260 * NEWS: Explain more fully why we no longer load libraries
with global symbol resolution.
* doc/libtool.texi (libtool script contents): Add missing
documentation for 'inherit_rpath' variable.
2004-03-24 14:23:18 +00:00
Scott James Remnant
dcdd39d604 * configure.ac: Catch errors during calls to AC_PROG_CXX,
AC_PROG_CXXCPP and AC_PROG_F77 before LT_INIT.  Only set the
HAVE_CXX and HAVE_F77 conditions to true if an error didn't
occur (AC_PROG_CXX leaves CXX="g++" even if it didn't find one).
Set HAVE_GCJ and HAVE_RC to true correctly as well.
* m4/libtool.m4 (LT_PROG_GCJ): If AC_PROG_GCJ or AM_PROG_GCJ are
defined, expand to the definition of those instead of our own.
Define GCJ to '' instead of 'no' if not found.
(LT_PROG_RC) Define RC to '' instead of 'no' if not found.
(_LT_LANG_GCJ_CONFIG): Require LT_PROG_GCJ to be expanded first.
(_LT_LANG_RC_CONFIG): Require LT_PROG_RC to be expanded first.
2004-03-24 14:10:25 +00:00
Scott James Remnant
0a94ff3131 * libltdl/ltdl.c (sys_dl_open): Don't load libraries with global
symbol resolution.
* NEWS: Updated.
2004-03-24 04:00:46 +00:00
Albert Chin-A-Young
2b1486a8c4 fix whitespace 2004-03-24 03:59:44 +00:00
Albert Chin-A-Young
2d860a8b7d * m4/libtool.m4: Add new variable, inherit_rpath, if the
* m4/libtool.m4: When linking convenience libraries on Solaris
2004-03-24 03:12:21 +00:00
Albert Chin-A-Young
735c575781 * libtool.m4: When linking convenience libraries on Solaris
with the Sun C++ compiler, pass convenience libraries through
to the linker with -Qoption between allextract/defaultextract.
The Sun C++ compiler bundles -Qoption arguments so
convenience libraries are linked with defaultextract
otherwise.
* tagdemo/Makefile.am, tagdemo/main.cpp, tagdemo/conv.h,
tagdemo/conv.cpp: Augment tagdemo test to link a convenience
library with a libtool library.
2004-03-24 03:06:48 +00:00
Albert Chin-A-Young
47a39a1801 * ltmain.in: Piecewise linking doesn't work when the output
file is an absolute path, use the basename only instead.
2004-03-24 03:03:05 +00:00
Albert Chin-A-Young
4886dc757a * ltmain.in: When a library is installed, dependent on a
convenience library, and it involves relinking, the object
files extracted from the convenience library are not removed
after the relink. This is a problem if you build as non-root,
install as root, then try to remove the build directory as
non-root; Clean up properly if relink fails; Change
"$realname"U to ${realname}T to be consistent.
2004-03-24 02:59:28 +00:00
Scott James Remnant
3a24ed2b3e * ltmain.in <prog linkmode>: Always add -L options to
$newlib_search_path instead of just in scan mode to ensure that
non-libtool libraries in user-specified directories can be found.
2004-03-24 02:35:33 +00:00
Scott James Remnant
ff1be3b64e * m4/libtool.m4 (_LT_CONFIG): Remove unneeded else condition
code, now the support determination is done in m4.
(_LT_LANG): Correct comment, unexpected leak from keybuk-lt-tag.patch.
2004-03-23 00:28:29 +00:00
Scott James Remnant
71b87c57cd * libltdl/Makefile.am (libltdl_la_LDFLAGS): Increment CURRENT
and AGE of libltdl, warranted by the addition of lt_dlhandle_find()
since 1.5.2.
2004-03-21 16:06:55 +00:00
Scott James Remnant
0550115589 Further sweeping changes to the user interface to libtool from
`configure.ac' to allow users to better control the list of
supported languages.  Three LT_INIT options 'no-lang', 'all-lang'
and 'auto-lang' (the default) control the initial list and others
may be added with LT_LANG.

* m4/libtool.m4 (_LT_CONFIG): Renamed AC_LIBTOOL_CONFIG to _LT_CONFIG
which is more consistent with our own namespace and gets us further out
of Autoconf's.
(_LT_LIBTOOL_TAGS): Output available_tags variable based entirely
on the value of _LT_TAGS.
(_LT_COPYING): Call _LT_LIBTOOL_TAGS to output available tags,
always append tag configuration if the tag is available.
(LT_LANG): New macro to enable support for a language that accepts
tag names (eg. "CXX") or human language names (eg. "C++").
(_LT_LANG): Internal support macro for above that appends the
tag to _LT_TAGS and calls the appropriate config macro.
(LT_INIT): Ensure that LT_LANG is not called before LT_INIT.
(AC_LIBTOOL_TAGS): Removed, call LT_LANG for each language now.
(_LT_AC_TAG_CHECK): Removed, _LT_LANG handles duplicate calls.
(_LT_LANG_DEFAULT_CONFIG): Macro to set initial language support
based on options passed to LT_INIT.
(_LT_SETUP): Call _LT_LANG_DEFAULT_CONFIG.
(_LT_AC_TAG_CONFIG): Removed, handled by _LT_LANG_DEFAULT_CONFIG.
(_LT_AC_LANG_CXX, _LT_AC_LANG_F77, _LT_AC_LANG_GCJ): Removed,
automatic language support inclusion now handled by
_LT_LANG_DEFAULT_CONFIG.
(AC_LIBTOOL_CXX): Obsolete macro, update to LT_LANG(C++).
(AC_LIBTOOL_F77): Obsolete macro, update to LT_LANG(Fortran 77).
(AC_LIBTOOL_GCJ): Obsolete macro, update to LT_LANG(Java).
(AC_LIBTOOL_LANG_C_CONFIG_: Removed.
(_LT_AC_LANG_C_CONFIG): Renamed to _LT_LANG_C_CONFIG, call
_LT_CONFIG instead of AC_LIBTOOL_CONFIG.
(_LT_SETUP): Replace call to AC_LIBTOOL_LANG_C_CONFIG with call to
new _LT_LANG_C_CONFIG macro.
(AC_LIBTOOL_LANG_CXX_CONFIG): Removed.
(_LT_AC_LANG_CXX_CONFIG): Renamed to _LT_LANG_CXX_CONFIG, call
_LT_CONFIG instead of AC_LIBTOOL_CONFIG.
(AC_LIBTOOL_LANG_F77_CONFIG): Removed.
(_LT_AC_LANG_F77_CONFIG): Renamed to _LT_LANG_F77_CONFIG, call
_LT_CONFIG instead of AC_LIBTOOL_CONFIG.
(AC_LIBTOOL_LANG_GCJ_CONFIG): Removed.
(_LT_AC_LANG_GCJ_CONFIG): Renamed to _LT_LANG_GCJ_CONFIG, call
_LT_CONFIG instead of AC_LIBTOOL_CONFIG.
(AC_LIBTOOL_LANG_RC_CONFIG): Removed.
(_LT_AC_LANG_RC_CONFIG): Renamed to _LT_LANG_RC_CONFIG, call
_LT_CONFIG instead of AC_LIBTOOL_CONFIG.
(LT_AC_PROG_GCJ): Renamed to LT_PROG_GCJ.
(LT_AC_PROG_RC): Renamed to LT_PROG_RC.
* m4/ltoptions.m4: Define new 'no-lang', 'auto-lang' and 'all-lang'
options which set the default for _LT_LANG_DEFAULT_CONFIG.
* m4/lt~obsolete.m4: Removed AC_LIBTOOL_CONFIG, _LT_AC_LANG_C_CONFIG,
_LT_AC_LANG_GCJ_CONFIG, _LT_AC_LANG_RC_CONFIG; all of which are no
long referenced in any way.
* configure.ac: Enable all languages.
* tests/cdemo/configure.ac, tests/demo/configure,ac,
tests/depdemo/configure.ac, tests/f77demo/configure.ac,
tests/mdemo/configure.ac, tests/pdemo/configure,ac,
tests/tagdemo/configure.ac: Remove calls to AC_LIBTOOL_TAGS,
the default 'auto-lang' mode now does the right thing.
* doc/libtool.texi (The LT_INIT macro): Add documentation for
new LT_INIT options and the LT_LANG macro, replacing the old
documentation of AC_LIBTOOL_TAGS which is no more.
* NEWS: Updated.
2004-03-21 16:05:28 +00:00
Scott James Remnant
e97cc0ffca * m4/libtool.m4: Removed AC_BEFORE references to AC_LIBTOOL_SETUP
which is no more.
* m4/lt~obsolete.m4: As AC_LIBTOOL_SETUP is no longer referenced,
it can be removed from this file.  Remove _AC_PROG_LIBTOOL also.
2004-03-17 23:32:37 +00:00
Ralf Wildenhues
d8c95f4d9f * m4/libtool.m4: Remove newlines from lt_ld_extra, so
variable can safely be stored in config.cache.
2004-03-14 15:05:37 +00:00
Michael Pruett
7c539b681c * m4/libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS0 [irix]: Define
archive_expsym_cmds so that --export-symbols will work.
2004-03-14 14:48:33 +00:00
Peter O'Gorman
231ac6f7d3 * ltmain.in (link_all_deplibs,darwin): Link libraries in the
correct order. Bug from Zachary Pincus <zpincus@stanford.edu>.
2004-03-14 14:36:54 +00:00
Scott James Remnant
e666f98829 * m4/ltmain.in: Only check precious_files_regex if it is not empty. 2004-03-14 14:14:32 +00:00
Gary V. Vaughan
65c6799bfd * doc/libtool.texi (Autoconf and LTLIBOBJS): The correct version
of Autoconf is 2.54.
From Alexandre Duret-Lutz  <adl@src.lip6.fr>
2004-03-14 10:14:32 +00:00
Gary V. Vaughan
56c4b54a3c * doc/libtool.texi (Using Automake): Cite correct Automake version
for -dlopen quoting.
(Autoconf and LTLIBOBJS): Cite correct Autoconf	versions
throughout.
(Distributing libltdl): Use AM_CPPFLAGS; INCLUDES is deprecated.
From Alexandre Duret-Lutz  <adl@src.lip6.fr>
2004-03-14 03:53:50 +00:00
David Edelsohn
dde34c3168 * m4/libtool.m4: Disable building static libraries if building
shared libraries on AIX 5L.
2004-03-05 20:39:21 +00:00
Gary V. Vaughan
6bfa1584cd * libtoolize.in: Remove --ltdl-tar. It doesn't work with the
current implementation, and seems more or less pointless.
* doc/libtool.texi (Invoking libtoolize): Updated.
* NEWS: Updated.
2004-03-05 17:34:25 +00:00
Gary V. Vaughan
157859aa6f * doc/libtool.texi: This manual has not been maintained properly
for a number of years.  Much of what it said was outdated, or
plain wrong with reference to modern autotools.  This change
represents a first pass edit to clean up the obviously wrong.
2004-03-05 12:06:02 +00:00
Gary V. Vaughan
e56fb90c2a * bootstrap: Prune out my arch mirror dir before running
amok through the tree with 'rm -rf'!
2004-03-04 17:45:43 +00:00
Patrick Welche
3c4f63167a * doc/libtool.texi (LT_INIT): Dumb typos fixed. 2004-03-02 13:49:38 +00:00
Gary V. Vaughan
c86c323877 * ltmain.in <install mode>: Add missing --help doc for
-inst-prefix option.
2004-02-23 16:59:14 +00:00
Gary V. Vaughan
8355ba6c65 * ltmain.in <link mode>: Add missing --help doc for -shrext
option.
2004-02-23 16:43:42 +00:00
Gary V. Vaughan
b1a6d2d3c1 * ltmain.in (IFS): Move '\n' to beginning of IFS so that emacs
doesn't offer to strip trailing ' \t' on every save.
2004-02-23 16:00:37 +00:00
Gary V. Vaughan
d77a1e7dfa * ltmain.in: Add missing --help doc for --preserve-dup-deps. 2004-02-23 15:52:18 +00:00
Gary V. Vaughan
312a2236f9 * Makefile.maint (web-manual): Generate the web manual carefully
so that links will still work when it is uploaded to gnu.org.
* README-alpha: Note that this rule should be used at release
time.
2004-02-22 16:12:15 +00:00
Gary V. Vaughan
f7356d2f61 Sweeping changes to the user interface to libtool from
`configure.ac' to be more like AC_INIT and accept a space
delimited list of options.  Instead of calling `AC_LIBTOOL_DLOPEN;
AC_PROG_LIBTOOL', we now recommend `LT_INIT([dlopen])':

* m4/libtool.m4	(AC_PROG_LIBTOOL, _AC_PROG_LIBTOOL)
(AC_LIBTOOL_SETUP): Removed.  Added AU_DEFUNs.
(LT_INIT): Replace with an Autoconf like interface which accepts a
version number as a minimum required libtool release at configure
time.
* m4/ltoptions.m4: New file inspired by automake/m4/amoptions.m4,
which additionally flags an error if the configuring libtool
macros are not new enough according to LT_INIT.
(LT_OPTION_DEFINE): New macro to declare option handlers.
(dlopen, win32-dll, shared, disable-shared, static)
(disable-static, fast-install, disable-fast-install, pic-only)
(no-pic): Newly LT_OPTION_DEFINEd option handlers that use...
(_LT_ENABLE_SHARED, _LT_ENABLE_STATIC, _LT_ENABLE_FAST_INSTALL)
(_LT_WITH_PIC, _LT_WIN32_DLL): New macros to handle
LT_LIBTOOL_INIT options...
* m4/libtool.m4 (AC_ENABLE_SHARED, AC_ENABLE_STATIC)
(AC_ENABLE_FAST_INSTALL, AC_LIBTOOL_DLOPEN, AC_LIBTOOL_WIN32_DLL):
...to replace these user interface macros, now defined as
AU_DEFUNs.
(AC_DISABLE_SHARED, AC_DISABLE_STATIC, AC_DISABLE_FAST_INSTALL):
Removed.  No longer required with LT_INIT_LIBTOOL interface.
Added AU_DEFUNs.
(AM_ENABLE_SHARED, AM_DISABLE_SHARED, AM_ENABLE_STATIC)
(AM_DISABLE_STATIC): Changed AU_DEFUNs to match new interface.
(_LT_SETUP): Internal to LT_INIT, replaces AC_LIBTOOL_SETUP.
* m4/lt~obsolete.m4 (AC_LIBTOOL_SETUP, _AC_PROG_LIBTOOL)
(_LT_PROG_LTMAIN):  More AC_DEFUNs that have been retracted.
* configure.ac: Use new interface.
* doc/libtool.texi: Document new interface.
* NEWS: Updated.
2004-02-22 11:13:45 +00:00
Gary V. Vaughan
51893aaac0 * commit (SHELL): Set it explicitly, incase some madman is using
tcsh as their login shell :-b
2004-02-18 09:55:53 +00:00
Scott James Remnant
80a18dca96 * Makefile.am (m4/ltversion.m4): Generate serial number by
removing initial '1.' from the revision, replace @MACRO_SERIAL@
with this new variable.
* m4/ltversion.in: Use @MACRO_SERIAL@ for the serial number
as some shells don't like a '.' when using test.
2004-02-15 17:57:31 +00:00
Scott James Remnant
631335306e * m4/ltversion.in: Add a serial number to this file otherwise
libtoolize will refuse to copy it into $pkgdatadir, where it
is needed by m4/libtool.m4.
2004-02-15 17:46:37 +00:00
Peter O'Gorman
62e21425d6 * m4/libtool.m4, ltmain.in: Rename shrext to shrext_cmds. 2004-02-15 13:30:01 +00:00
Scott James Remnant
0964364db2 * ltmain.in, libtoolize.in, commit, config/mailnotify: Correctly
quote usage of $basename and $dirname to avoid (unlikely) path
expansion.
2004-02-13 07:26:08 +00:00
Scott James Remnant
d9e97e3854 * tests/sh.test: Test the config/ltmain.sh and libtoolize in the
build directory not the source directory, where they won't exist
during 'make distcheck'.
* ltmain.in: Revert one line of previous intendation clean-up
to enable one of the sh.test checks to pass.
2004-02-13 01:57:52 +00:00
Scott James Remnant
6039b9636b * tests/cdemo/configure.ac: Drop AC_PREREQ back to 2.54, this
was debris from Gary's cvsapply going mad and wasn't backed
out.
2004-02-13 00:57:30 +00:00
Scott James Remnant
2e3dde20ea * Makefile.am (pkgmacro_DATA): We have to distribute
m4/ltversion.m4 because it can be needed before the Makefile
that generates it exists.
2004-02-13 00:40:37 +00:00
Gary V. Vaughan
82d59110c5 * commit (MKSTAMP): Look for mkstamp in the right place. 2004-02-13 00:37:00 +00:00
Scott James Remnant
20edd8bb0d * Makefile.maint, Makefile: Move rules intended for Libtool
maintainers only out of the Makefile we distribute and into one
that we only need keep in CVS.
* README-alpha: Add -fMakefile.maint to the instructions where
needed.
2004-02-12 23:50:56 +00:00
Albert Chin-A-Young
04539d396a Scott James Remnant <scott@netsplit.com>
* ltmain.in: Fix typo: duplcations -> duplications,
Fix indentation of a handful of badly indented blocks,
Fix last remaining use of 'grep' to $GREP,
Remove unnecessary trailing slash where we break a line on a
command separator.
* m4/libtool.m4: Also remove unnecessary trailing slash where
we break a line on a command separator.
2004-02-12 23:47:46 +00:00
Scott James Remnant
5a9ea63111 * m4/ltoptions.m4: This got committed by an over-keen Gary,
but the support for this isn't ready yet and if aclocal decides
to m4_include this (which it will) you'll get a non-functioning
libtool.  Removed.
2004-02-12 23:37:28 +00:00
Scott James Remnant
c96c655eb4 * ltmain.in: Remove duplicated version checking block. 2004-02-12 22:32:01 +00:00
Scott James Remnant
707234675b * bootstrap, m4/libtool.m4: Argh, Gary went crazy after cvsapply
went crazy and backed out more than he should've.  This patch puts
some of it back again.
2004-02-12 21:57:07 +00:00
Scott James Remnant
b042a87d13 * ltmain.in, libtoolize.in, commit, config/mailnotify: Remove
$SED from definitions of $dirname and $basename and prefix each
use with it instead.  Some shells (zsh) treat the expansion as
a single command instead of a command with arguments.
2004-02-12 19:22:28 +00:00
Scott James Remnant
b3494c878b * config/mailnotify (func_sendmail): Look for sendmail in a
couple of common non-PATH locations as well.
2004-02-12 19:02:28 +00:00
Scott James Remnant
eb398417ae * ltmain.in: Fix typo: macro's -> macros. 2004-02-12 18:41:26 +00:00
Scott James Remnant
c0dfc67e82 * ltmain.in: Correct definition of basename sed expression to
not include single quotes.
2004-02-12 18:37:14 +00:00
Gary V. Vaughan
26225bab6a * libtoolize.in: Use $progpath as for ltmain.in to work around the
IRIX bug described below.
* commit, config/mailnotify: Ditto. Resynch with cvs-utils HEAD.
2004-02-12 13:18:52 +00:00