Commit Graph

2691 Commits

Author SHA1 Message Date
Ralf Wildenhues
016806fe90 * libltdl/m4/libtool.m4 (_LT_CONFIG): Drop misleading `GNU'
prefix before the host package name in the "Generated by" line
for the libtool script.
* THANKS: Update.
Reports by Peter Rosin and Roberto Bagnara.
2008-03-04 21:14:22 +00:00
Ralf Wildenhues
68a4f765b6 * doc/libtool.texi (Module loaders for libltdl): Fix typo. 2008-03-04 21:07:36 +00:00
Ralf Wildenhues
216d6cb930 * libltdl/loaders/dld_link.c (vl_exit): New function, zero out ...
(vtable): ... this new file static variable split out from ...
(get_vtable): ... here.  Initialize vtable, register vl_exit as
dlloader_exit function.
* libltdl/loaders/dlopen.c: Likewise.
* libltdl/loaders/dyld.c: Likewise.
* libltdl/loaders/load_add_on.c: Likewise.
* libltdl/loaders/loadlibrary.c: Likewise.
* libltdl/loaders/shl_load.c: Likewise.
* libltdl/loaders/preopen.c: Likewise; vl_exit existed here
already.
* tests/lt_dlexit.at (lt_dlexit unloading libs): Update test.
* NEWS: Update.
Report by Andreas Schwab.
2008-03-04 21:00:19 +00:00
Gary V. Vaughan
a428937f0e * configure.ac, libltdl/configure.ac (AC_INIT): Bump version
number to 2.3a.
2008-03-02 02:19:19 +00:00
Gary V. Vaughan
9843ca8ed9 GNU Libtool 2.2 was released.
* configure.ac, libltdl/configure.ac (AC_INIT): Bump version
number to 2.2.
* NEWS: Updated.
2008-03-02 00:05:02 +00:00
Gary V. Vaughan
ec47998b3c * tests/lt_dladvise.at, tests/lt_dlexit.at,
tests/need_lib_prefix.at: Skip these tests when called from
`make distcheck DISTCHECK_CONFIGURE_FLAGS=--disable-ltdl-install'.
The tests try to link against the dummy installed libltdl.la
from .../_inst/lib/libltdl.la, which does not exist when
configured with --disable-ltdl-install.
2008-03-01 22:43:04 +00:00
Gary V. Vaughan
50abf984fb * libltdl/m4/argz.m4 (AC_CHECK_FUNCS): Also use our replacement
argz if the system argz_add or argz_count are missing.
Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
2008-02-29 21:33:22 +00:00
Karl Berry
fa901264b3 * libltdl/argz.c (argz_add, argz_count): New functions.
* libltdl/argz_.h: Declare them.
Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
2008-02-26 22:18:03 +00:00
Peter O'Gorman
82e6dd805b * libltdl/m4/libtool.m4 (_LT_LANG_GCJ_CONFIG): Do not call the
_LT_SYS_DYNAMIC_LINKER macro here.
Reported by Mike Frysinger <vapier@gentoo.org>
2008-02-20 20:11:39 +00:00
Peter O'Gorman
21011b18f1 * libltdl/m4/libtool.m4 (_LT_SYS_HIDDEN_LIBDEPS): Fix typo.
* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): better handling
of predefined values for lt_cv_sys_lib_search_path_spec and
2008-02-16 03:46:06 +00:00
Peter Breitenlohner
66894adae8 * libtool.m4 (_LT_SYS_DYNAMIC_LINKER): better handling of
predefined values for lt_cv_sys_lib_search_path_spec and
lt_cv_sys_lib_dlsearch_path_spec.
2008-02-14 23:48:39 +00:00
Ralf Wildenhues
6637bfe8bb * libtoolize.m4sh (func_install_pkgconfig_files): Only call
func_install_pkgconfig_parent if $seen_autoconf.
* tests/standalone.at (compiling softlinked libltdl)
(compiling copied libltdl, installable libltdl)
(linking libltdl without autotools): Use checked libtoolize
calls to catch warnings.
2008-02-14 04:36:37 +00:00
Ralf Wildenhues
e957206e71 * libltdl/configure.ac: Bump package version.
* HACKING: Reminder to do it next time, too.
2008-02-13 22:09:40 +00:00
Ralf Wildenhues
01829399a3 * tests/mdemo/Makefile.am (@LIBLTDL@): Update outdated
dependencies.
($(top_distdir)/libltdl/libtool): Remove.
Fixes spurious mdemo-dryrun failure with OpenBSD make.
2008-02-11 21:51:43 +00:00
Ralf Wildenhues
319a767ce6 * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux] <ifort>:
Treat like icc and ecc, for fixed `-Wl,' and `-KPIC' settings.
2008-02-09 07:14:35 +00:00
Ralf Wildenhues
5080eda548 * tests/archive-in-archive.at
(static library contains static library): Test also the actual
broken link command, and the following install command, as
UnixWare ar rightly refuses to put an archive into an archive.
Report by Tim Rice.
2008-02-08 06:55:07 +00:00
Peter O'Gorman
215212c9ce * libltdl/m4/ltoptions.m4 (_LT_SET_OPTIONS): Only set default
LT_INIT values for LT_INIT, not LTDL_INIT.
Reported by Jochem Huhmann <joh@revier.com>
2008-02-06 19:53:01 +00:00
Ralf Wildenhues
de171d7b83 * tests/testsuite.at (LT_AT_TAG): For the CXX tag, if $CXX is
g++, check that `g++ -v' works; AC_PROG_CXX may have set that
as default value even if it found no C++ compiler.
Report by Andreas Schwab.
2008-02-01 19:06:42 +00:00
Gary V. Vaughan
708a6423a9 * libltdl/Makefile.inc (EXTRA_DIST): Now that we're not using
Autoconf's AC_SOURCES macro, Automake can't trace our extra
source files argz, lt__dirent.c and lt__strl.c.  List them
manually here to make sure they are distributed.
* NEWS: Updated.
Reported by Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>
2008-02-01 19:03:56 +00:00
Gary V. Vaughan
7f0ad4aa7f * configure.ac (AC_INIT): Bump version number to 2.1c. 2008-01-31 16:24:30 +00:00
Gary V. Vaughan
0ab46c6f8f GNU Libtool 2.1b was released.
* configure.ac (AC_INIT): Bump version number to 2.1b.
* libltdl/Makefile.inc (LTDL_VERSION_INFO): Increment to account
for new interfaces since the last libltdl update.
* HACKING (Release Procedure): Note that LTDL_VERSION_INFO is now
kept in libltdl/Makefile.inc.
2008-01-31 16:21:19 +00:00
Gary V. Vaughan
7c319e20f4 * tests/cdemo, tests/depdemo, tests/fcdemo, tests/pdemo,
tests/demo, tests/f77demo, tests/mdemo, tests/tagdemo
(distclean-local): Remove compiler file droppings left by
Autoconf tests that prevent make dist from finishing on
several machines including Mac OS 10.5.
2008-01-31 16:19:18 +00:00
Gary V. Vaughan
e032959c82 Unfortunately, the autoconf implementation of AC_LIBOBJ and
friends requires all libobjs to be in the same directory, as
declared by AC_CONFIG_LIBOBJ_DIR.  That might prevent using
either recursive or nonrecursive libltdl if the parent project
has libobjs of its own, except that this patch tracks libltdl's
libobjs in another namespace:

* libltdl/m4/ltdl.m4 (_LT_LIBOBJ, _LT_LIBSOURCES): Versions of
AC_LIBOBJ and AC_LIBSOURCES that save missing sources in a
ltdl_LIBOBJS automake macro, instead of the global LIBOBJS
automake macro.  Content of the macros inspired by code from
gnulib-tool.
(_LTDL_MODE_DISPATCH): Initialise lt_libobj_prefix in
nonrecursive mode.
(LTDL_INIT): Push and pop the new definitions around potential
sites that call AC_LIBOBJ.  Also, using lt_libobj_prefix,
initialise ltdl_LIBOBJS and ltdl_LTLIBOBJS.
* libtoolize.m4sh (func_fixup_Makefile): Substitute ltdl_LIBOBJS
and ltdl_LTLIBOBJS for LIBOBJS and LTLIBOBJS during copying
either Makefile.am or Makefile.inc, depending on ltdl_mode.
Reported by Eric Blake <ebb9@byu.net>
2008-01-31 16:17:06 +00:00
Gary V. Vaughan
d6570c64e5 There are 5 distinct batches of files that libtoolize might
install into a project, depending on whether libltdl is
being installed in subproject mode, and in that case whether
the parent project shares the config and macro directories
with the subproject ltdl.  Make a separate function for each
of those 5 batches (4 new functions below, plus the recently
factored func_install_pkgltdl_files), and make a clearer
distinction between when each of them is needed:

* libtoolize.m4sh (func_install_pkgmacro_subproject):
New function for installing and reporting on m4 files copied
to a subproject ltdl directory.
(func_install_pkgmacro_parent): Similar new function for m4
files copied solely for the use of the parent project,
including serial checking.
(func_install_pkgconfig_subproject): New function for
installing and reporting on config helper files copied to a
subproject ltdl directory.
(func_install_pkgconfig_parent): Similar new function for
config helper files copied solely for the use of the parent
project, including serial checking.
(func_install_pkgmacro_files, func_install_pkgconfig_files):
Rewritten in terms of the above functions.
* tests/libtoolize.at: Adjust test expout's to match newly
regularized libtoolize output.
Move parent project pkgconfig files to build-aux directory
so that progress messages show an obvious difference to
pkgconfig files installed to subproject `config' directory.
(nonrecursive ltdl with AC_CONFIG_MACRO_DIR): New test.
(diagnose missing LT_CONFIG_LTDL_DIR): New test.
(subproject ltdl with non-shared directories): New test.
Reported by Eric Blake <ebb9@byu.net>
2008-01-31 16:14:09 +00:00
Peter O'Gorman
71821b098f * libltdl/m4/libtool.m4 [darwin]: Changes to glob pattern matching
to be safer.
2008-01-29 22:07:18 +00:00
Peter O'Gorman
bfb67e8ca7 Search the compiler path too.
* libltdl/m4/libtool.m4 (compiler_lib_search_dirs): New variable.
* libltdl/config/ltmain.m4sh: Use it.
Reported by Maynard Johnson
2008-01-28 15:49:46 +00:00
Gary V. Vaughan
9d679019f7 * libtoolize.m4sh (func_check_macros): Correct typo with
'$opt_quiet ||' where '$opt_quiet &&' that was preventing
func_check_macros from running!
2008-01-28 07:34:25 +00:00
Gary V. Vaughan
ac41623041 * libtoolize.m4sh: Set opt_ltdl whenever seen_ltdl is set
so that libtoolize behaves as though --ltdl was passed even
if it wasn't as long as LTDL_INIT (or equivalent) was seen
in configure.ac.  Adjust redundant '$opt_ltdl || $seen_ltdl'
to simply '$opt_ltdl'.
Reported by Eric Blake <ebb9@byu.net>
2008-01-28 05:39:26 +00:00
Gary V. Vaughan
46e503f185 * libtoolize.m4sh (func_check_macros): Check opt_quiet
in the function itself to simplify calling it.  Also move
the definition of the function.
2008-01-28 05:12:23 +00:00
Gary V. Vaughan
8d10890da5 * libtoolize.m4sh (func_scan_files): Be sure to set the
default libltdl mode to 'subproject' when libtoolize is
executed before configure.ac has been updated.
2008-01-28 05:04:51 +00:00
Gary V. Vaughan
0ade925948 * libtoolize.m4sh (func_install_pkgconfig_files)
(func_install_pkgmacro_files, func_install_pkgltdl_files):
Factored out from the 'Main' section of the file.
2008-01-27 16:35:36 +00:00
Gary V. Vaughan
34ebb0e4cb * libtoolize.m4sh (subproject_auxdir, subproject_macrodir):
New variables to hold the default locations for auxfiles
and macrofiles in a subproject libltdl.
(ac_auxdir, ac_macrodir): New variables to hold the values
passed by AC_CONFIG_AUX_DIR and AC_CONFIG_MACRO_DIR resp.
(auxdir, macrodir): Adjust to contain the values to be
used by libtoolize at runtime.
2008-01-27 15:44:04 +00:00
Gary V. Vaughan
83e9d92589 * libtoolize (func_fixup_Makefile, func_massage_aclocal_DATA)
(func_massage_pkgltdl_files, func_massage_pkgconfig_files):
Add missing $opt_debug.
2008-01-27 07:13:04 +00:00
Gary V. Vaughan
57e5b9b815 * libtoolize.m4sh (Main): Copy (or link) libltdl sources
into project tree when LTDL_INIT was seen, whether or not
`--ltdl' is passed.
(func_check_macros): Recommend LTDL_INIT instead of
LT_WITH_LTDL when `--ltdl' is used before configure.ac is
upgraded.
* tests/libtoolize.at: Test that it works.
(_LT_AT_LTDL_SETUP): Factor out some common test setup.
Reported by Eric Blake <ebb9@byu.net>
2008-01-26 06:23:10 +00:00
Peter O'Gorman
f29868dae9 * doc/notes.texi: Fix errors in previous commit. 2008-01-24 16:16:27 +00:00
Peter O'Gorman
8add91359a * libltdl/m4/libtool.m4 (sys_lib_search_path_spec,
sys_lib_dlsearch_path_spec): Allow for a cache variable
lt_cv_sys_lib_... to set these at configure time.
* doc/notes.texi: Short note about the above change.
2008-01-24 06:55:36 +00:00
Eric Blake
9f3505202c Add proper quoting to doc examples.
* doc/libtool.texi: Use m4 quotes where appropriate.
(Test descriptions): Fix truncated sentence.
2008-01-24 04:08:37 +00:00
Gary V. Vaughan
cba380cf3f * Makefile.am (DISTCLEANFILES): Remove libtool.dvi generated
by 'make dvi'.
2008-01-18 10:49:40 +00:00
Ralf Wildenhues
2e9a9f29e6 * libtoolize.m4sh (func_scan_files): Avoid matching our own
macro code when scanning configure.ac and aclocal.m4.
Don't produce spurious output if AC_PROG_RANLIB is found.
* tests/old-m4-iface.at (AM_PROG_LIBTOOL): Add a (weak) check
that we don't match our own macro code when searching for user
code calling us.
* TODO: Updated.
2008-01-17 05:36:21 +00:00
Ralf Wildenhues
8652ce1ff3 New variable LTDLDEPS for use in output_DEPENDENCIES.
* libltdl/m4/ltdl.m4 (_LTDL_CONVENIENCE, _LTDL_INSTALLABLE)
(LTDL_INIT): Set and substitute LTDLDEPS according to chosen
method.
* tests/configure-iface.at (installable libltdl)
(--with-ltdl-include/lib, --with-included-ltdl): Test it.
* doc/libtool.texi (Distributing libltdl): Document LTDLDEPS.
* NEWS: Updated.
Dependency bug exposed by Eric Blake in M4, found by Bob Proulx
build daemon.
2008-01-17 05:32:42 +00:00
Ralf Wildenhues
7bd9372842 * doc/libtool.texi (Distributing libltdl): Clarify that
`${top_build_prefix}' may be used in place of `${top_builddir}/'.
2008-01-17 05:05:59 +00:00
Ralf Wildenhues
b74786b252 * doc/libtool.texi (Distributing libltdl): Clarify that
LTDL_INIT goes after LT_INIT; also show the latter in the
respective examples.
* tests/subproject.at: Adjust order.
2008-01-17 04:47:41 +00:00
Ralf Wildenhues
3afaae7d8e * libltdl/m4/ltdl.m4 (_LT_ENABLE_INSTALL): Use AM_CONDITIONAL
only if defined.  Allows to use libltdl without aclocal.
2008-01-16 18:35:05 +00:00
Peter O'Gorman
70cb76014d * libltdl/m4/libtool.m4: Set GCC var for every tag, avoids need
to set withGCC var.
2008-01-16 14:49:40 +00:00
Ralf Wildenhues
144b0ad768 * configure.ac: Set libltdl nonrecursive option, to avoid
configuring libltdl inside the Libtool package.
2008-01-15 06:23:16 +00:00
Ralf Wildenhues
5436459a6b Silence all non-warning output from `libtool --silent'.
* libltdl/config/ltmain.m4sh (func_generate_dlsyms)
(func_extract_archives, func_mode_link): Use func_verbose
instead of func_echo for all non-warning output.
2008-01-14 22:06:00 +00:00
Ralf Wildenhues
d5581bdd4b * Makefile.maint (fetch): Update to match upstream git sources.
Pull `INSTALL' from gnulib instead of from Autoconf.
2008-01-14 22:01:26 +00:00
Ralf Wildenhues
933e03ce10 * doc/notes.texi: Mention AIX binutils deficiency for C++ code.
Report by Rainer Tammer.
Suggest using bash for configure.
2008-01-14 21:34:19 +00:00
Ralf Wildenhues
1bf917f523 * libltdl/m4/ltoptions.m4 (AC_ENABLE_SHARED): Fix to use
new _LT_SET_OPTION semantics.
2008-01-14 21:18:49 +00:00
Ralf Wildenhues
75142db4f8 * libltdl/m4/ltdl.m4 (_LTDL_SETUP): Define
LTDL_DLOPEN_SELF_WORKS, depending upon lt_cv_dlopen_self.
* libltdl/loaders/dlopen.c (vm_open) [!LTDL_DLOPEN_SELF_WORKS]:
Fail for dlopen(NULL), so that the preopen loader is used.  This
fixes mdemo-exec.test failures on AIX where dlopen(NULL)
succeeds but dlsym resolves no symbol.
* NEWS: Update.
Report by Rainer Tammer.
2008-01-12 17:00:51 +00:00