Commit Graph

54 Commits

Author SHA1 Message Date
Ralf Wildenhues
e48857e1ed * libltdl/m4/libtool.m4 (LT_SYS_DLOPEN_SELF): Revert
expansion of `$wl'.
(_LT_LANG_C_CONFIG, _LT_LANG_CXX_CONFIG, _LT_LANG_GCJ_CONFIG):
Do not require LT_SYS_DLOPEN_SELF.
(_LT_LANG_C_CONFIG): Instead call it at the right time.
(_LT_LANG_CXX_CONFIG, _LT_LANG_F77_CONFIG, _LT_LANG_FC_CONFIG)
(_LT_LANG_GCJ_CONFIG): Do not call _LT_CMD_STRIPLIB.
2005-11-06 12:35:28 +00:00
Ralf Wildenhues
580906de04 * Makefile.am: `2>&1' as suggested by Albert Chin.
* libltdl/m4/libtool.m4, libltdl/m4/ltdl.m4:
Two newlines before each macro, fix underlines.
2005-11-06 11:37:25 +00:00
Gary V. Vaughan
0c25422a6c * tests/nonrecursive.at: New tests for libltdl as a subdirectory,
configured and compiled from the toplevel project.
* tests/testsuite.at: Use it.
(LT_AT_AUTOHEADER): New macro.
* Makefile.am (TESTSUITE_AT): Depend on nonrecursive.at.
2005-11-02 17:43:51 +00:00
Ralf Wildenhues
6ece64c09f * libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK) [ solaris ]: Add `-64'
to $LD if necessary, to permit combining of several convenience
libs without any further objects added.
Reported by Brian Barrett <brbarret@open-mpi.org>.
2005-11-01 16:24:10 +00:00
Kean Johnston
41520bf0e0 * libltdl/m4/libtool.m4 (LT_SYS_DLOPEN_SELF): Use
`lt_prog_compile_static', not `link_static_flag'.  Expand `$wl'
so expansion of `export_dynamic_flag_spec' works.
(_LT_TRY_DLOPEN_SELF): Show dlerror() in case of failure.
(_LT_LINKER_SHLIBS) [ aix3 ]: Likewise.
(_LT_COMPILER_PIC) [ hpux* ]: Use `${wl}'.
2005-11-01 16:08:48 +00:00
Gary V. Vaughan
e8c879bb97 * libltdl/m4/ltdl.m4 (LTDL_INIT): Call _LT_ENABLE_INSTALL directly
instead of m4_requiring it, as it relies on enable_ltdl_install
and enable_ltdl_convenience to have been initialised first.
2005-11-01 14:32:18 +00:00
Gary V. Vaughan
d89d82ff6c * libltdl/m4/argz.m4, libltdl/m4/ltoptions.m4, libltdl/ltsugar.m4,
libltdl/m4/ltversion.in: Add serial number tags, and bump serial
number.
2005-11-01 14:26:38 +00:00
Kean Johnston
2fa760964e * libltdl/m4/libtool.m4 (LT_CMD_MAX_LEN): Set correctly for SCO. 2005-10-31 18:53:39 +00:00
Kean Johnston
4a312c762f * libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Set correct
symcode values for the native nm on SCO platforms.
2005-10-31 09:58:38 +00:00
Kean Johnston
00ede62b4c * libltdl/m4/ltdl.m4 (LT_SYS_DLOPEN_DEPLIBS): All SCO platforms
open dependency libraries when you dlopen a module.
2005-10-31 09:44:28 +00:00
Albert Chin-A-Young
0f34a7c48e * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
[ aix ]: Remove duplicate always_export_symbols=yes for AIX.
2005-10-31 08:37:26 +00:00
Gary V. Vaughan
16ef6d9b8e * libltdl/m4/ltdl.m4 (LT_WITH_LTDL): Don't nest AC_MSG_CHECKING/
AC_MSG_RESULT pairs.
2005-10-14 15:43:08 +00:00
Ralf Wildenhues
6eb353954c * libltdl/m4/libtool.m4 (LT_PATH_NM): End test source with
newline.
Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
2005-10-13 13:22:55 +00:00
Ralf Wildenhues
0ea91b1940 * libltdl/m4/ltdl.m4 (LT_WITH_LTDL): Also set INCLTDL. 2005-10-11 11:27:56 +00:00
Ralf Wildenhues
35fc3630d8 * libltdl/m4/ltdl.m4 (LTDL_CONVENIENCE, LTDL_INSTALLABLE)
(LT_WITH_LTDL): Revert Gary's 2005-10-10 patch.
2005-10-11 11:25:08 +00:00
Gary V. Vaughan
76466c93ad * libltdl/m4/ltdl.m4 (_LT_ENABLE_INSTALL): Remove bogus extra
closing brackets.
2005-10-10 17:28:58 +00:00
Gary V. Vaughan
db78393b63 * libltdl/m4/ltdl.m4 (LTDL_CONVENIENCE, LTDL_INSTALLABLE): Remove
AC_SUBST of LIBLTDL, LTDLINCL, and all mention of INCLTDL.
(LT_WITH_LTDL): Due to order constraints between LTDL_CONVENIENCE,
LTDL_INSTALLABLE, LT_WITH_LTDL & LTDL_INIT, we can safely AC_SUBST
LIBLTDL and LTDLINCL here.  Also, remember to synch INCLTDL.
2005-10-10 17:20:10 +00:00
Christian Biesinger
3ce310b7b5 * libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG) [ beos ]:
Initial shared library support for C++.
2005-10-09 06:25:03 +00:00
Ralf Wildenhues
0b56662f5c * libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Fix m4 quoting
for lt_simple_link_test_code.
Reported by Nicolas Joly <njoly@pasteur.fr>.
2005-10-05 15:57:05 +00:00
Gary V. Vaughan
e3ab6c9f4f * libltdl/m4/ltdl.m4 (_LT_CONFIG_LTDL_DIR): Spurious './' prefixes
upset BSD pmake, don't set lt_ltdl_dir in this case.
(LTDL_CONVENIENCE, LTDL_INSTALLABLE): Adjust.
2005-10-05 09:42:41 +00:00
Ralf Wildenhues
26ed90e060 * libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): Require
AC_CANONICAL_HOST and _LT_DECL_SED.
2005-10-05 08:54:25 +00:00
Gary V. Vaughan
9f6099490a * libltdl/m4/ltdl.m4: Bump serial as we are changing the
interface.
(LT_CONFIG_LTDL_DIR): New macro to centralise setting the
subdirectory used for libltdl.
(LTDL_CONVENIENCE): Continue backwards compatibility support for
declaring the libltdl source subdirectory with an argument, but
defer to LT_CONFIG_LTDL_DIR.
(AC_LIBLTDL_CONVENIENCE): Adjust to upgrade to the new style.
(LTDL_INSTALLABLE, AC_LIBLTDL_INSTALLABLE): Ditto.
(LTDL_INIT): lt_ltdl_dir is set by LT_CONFIG_LTDL_DIR now, and
even `./' needs trailing slashes trimming!  If the user didn't
upgrade their configure.ac yet, call LT_CONFIG_LTDL_DIR for them.
* libtoolize.m4sh (func_scan_files): If --ltdl option is given
without a directory argument, use the value from
LT_CONFIG_LTDL_DIR; if the argument is given, and there is also a
value in LT_CONFIG_LTDL_DIR, ensure they are the same.
* libltdl/configure.ac: Use it.
* NEWS: Updated.
2005-10-03 15:45:47 +00:00
Peter Ekberg
0122010ceb * libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Fix awk
script to be a single line so that the cache variable isn't
multiline.
2005-09-23 10:33:34 +00:00
Tim Rice
a95fd21401 * libltdl/m4/libtool.m4 (LT_PATH_NM, _LT_LINKER_SHLIBS)
(_LT_LANG_CXX_CONFIG, _LT_SYS_HIDDEN_LIBDEPS):
Add missing `;;' after case list.
2005-09-22 06:03:59 +00:00
Peter Ekberg
914ca45e9a * libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS, _LT_COMPILER_PIC)
(_LT_LINKER_SHLIBS): Require _LT_TAG_COMPILER to make sure that
$compiler is assigned. Fixes crippled configure output.
2005-09-22 04:53:14 +00:00
Peter Ekberg
f8af770f96 * libltdl/m4/libtool.m4 (LT_PATH_NM): Fix autodetection of
dumpbin and also check for "link -dump -symbols" as a synonym
for "dumpbin -symbols".
2005-09-21 16:50:18 +00:00
Peter Ekberg
a34da7bbd7 * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG):
Split up --out-implib option for linker in separate args so that
the MSYS path translation can do its magic on the provided path
to the import library. Fixes problem in stresstest.at on MinGW.
2005-09-20 12:12:23 +00:00
Ralf Wildenhues
609c71cc50 * libltdl/m4/ltdl.m4 (LTDL_INIT) <CONFIG_H>: Rename to..
<LT_CONFIG_H>: this, to contain the name of the config
header.
* Makefile.am <DEFS>: Use it to define LT_CONFIG_H.
* HACKING, libltdl/argz.c, libltdl/lt__alloc.c,
libltdl/libltdl/lt__dirent.h, libltdl/libltdl/lt__glibc.h,
libltdl/libltdl/lt__private.h, libltdl/libltdl/lt__strl.h:
Adjusted.
2005-09-17 07:29:03 +00:00
Ralf Wildenhues
d0963c53c2 * libltdl/m4/ltdl.m4 (LT_WITH_LTDL, LTDL_CONVENIENCE)
(LTDL_INSTALLABLE): Use less quoting for expanded LIBLTDL,
LTDLINCL.  Use m4_default instead of m4_if, to work
around AU_ALIAS bug with empty macro arguments.
(LTDL_INIT): Likewise.
* libltdl/m4/ltoptions.m4 (_LT_WITH_PIC): Likewise.
* TODO, HACKING: Updated.
2005-09-12 11:21:40 +00:00
Ralf Wildenhues
ba0a5124be * libltdl/m4/libtool.m4 (_LT_COMPILER_BOILERPLATE)
(_LT_LINKER_BOILERPLATE, _LT_COMPILER_OPTION, _LT_LINKER_OPTION)
(_LT_COMPILER_C_O): When comparing expected and actual compiler/
linker output for warnings, weed out both empty lines as well as
lines starting with possibly indented `+', to allow for shell
debugging with `set -x'.
Check the weeded instead of unweeded contents for emptiness.
2005-09-09 15:55:14 +00:00
Peter Ekberg
aa7580d941 * libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS) [dumpbin]:
Symbols in "pick any" sections are not global. Use
awk, not sed, in the global_symbol_pipe so that keeping
track of sections is easier.
* doc/libtool.texi (libtool script contents): Update to hint
at new findings concerning "pick any" sections.
2005-09-08 08:25:35 +00:00
Charles Wilson
4897ef84fc * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
[ cygwin, mingw, pw32 ]: Use --enable-auto-image-base instead of
a fixed image base address.
2005-09-08 07:00:03 +00:00
Ralf Wildenhues
8d8b5bffd1 * libltdl/m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD) [ sysv4*uw2*,
sysv4.2uw2* ]: Fix my last checkin to really match the more special
case before the general case.
Reported by Stepan Kasal <kasal@ucw.cz>.
2005-09-06 08:58:34 +00:00
Roger Cornelius
a79f2138c9 * libltdl/m4/libtool.m4 (AC_DEPLIBS_CHECK_METHOD)
[ sysv5OpenUNIX8, sysv5UnixWare7, sysv5uw[78], unixware7,
sysv4*uw2* ]: Match special cases before general case.
2005-09-06 08:18:10 +00:00
Ralf Wildenhues
b5c83ecbe5 * libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [ aix ]
<export_symbols_cmds>: Work around shell expansion issue in
func_show_eval by separating `$' and field number; drop then
unnecessary m4 quoting.
2005-09-04 16:32:41 +00:00
Gary V. Vaughan
00d9e84dac AC_BEFORE only works if declarations are made inside the macro
cited as the first argument:

* libltdl/m4/libtool.m4 (LT_OUTPUT): Move AC_BEFORE decls...
(LT_INIT, LT_LANG): ...to the macro that has to come first.
2005-09-02 17:42:14 +00:00
Peter O'Gorman
4d59a4c27e * libltdl/m4/libtool.m4 (old_postintall_cmds): chmod 644 before
running ranlib.
Reported by Gerald Pfeifer <gerald@pfeifer.com>
2005-09-01 16:05:49 +00:00
Ralf Wildenhues
2c0905f691 * libltdl/m4/libtool.m4 (_LT_PROG_CXX, _LT_PROG_F77)
(_LT_PROG_FC): aclocal-1.4 compatibility workaround.
2005-09-01 14:16:08 +00:00
Ralf Wildenhues
9af1d3e4e7 * libltdl/m4/ltoptions.m4 (_LT_SET_OPTIONS): m4_defun this..
* libltdl/m4/libtool.m4 (LT_INIT): so it can be m4_require'd
from here with user-supplied options.  Fixes output macro
ordering issue.
2005-09-01 11:41:26 +00:00
Ralf Wildenhues
0d0e4d3075 * libltdl/m4/ltoptions.m4 (_LT_SET_OPTIONS): Move option macro
dipatch..
(_LT_SET_OPTION): here.  Do not fail but warn on unknown
options.
(_LT_UNLESS_OPTIONS(win32-dll), LT_OPTION_DEFINE(dlopen)):
Add whitespace.
Reported by Robert Ögren <lists@roboros.com> and
Akim Demaille <akim@lrde.epita.fr>.
2005-08-31 11:50:46 +00:00
Ralf Wildenhues
9fab6deb7f * libltdl/m4/libtool.m4 [ solaris CC ]: Document issue with C++
standard libraries.
2005-08-31 07:37:26 +00:00
Gary V. Vaughan
b0dab86ae3 * libltdl/m4/ltoptions.m4 (AC_LIBTOOL_PIC_MODE): Renamed...
(AC_LIBTOOL_PICMODE): ...this in the backwards compatibility
code.  There never was an AC_LIBTOOL_PIC_MODE macro.
2005-08-30 14:31:40 +00:00
Gary V. Vaughan
cda98d4fe2 * libltdl/m4/libtool.m4 (_LT_SETUP): Remove duplicate
--enable-libtool-lock declaration.
2005-08-30 10:50:11 +00:00
Ralf Wildenhues
d9d0ea4b2e * libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
(_LT_PATH_TOOL_PREFIX, _LT_SYS_HIDDEN_LIBDEPS, _LT_DECL_EGREP):
Fix typos.
2005-08-29 15:36:26 +00:00
Gary V. Vaughan
2a7742ed61 * libltdl/m4/ltdl.m4 (LTDL_CONVENIENCE): Fix the comment to not
pretend that LIBLTDL and LTDLINCL are not AC_SUBSTed here.
2005-08-29 10:47:41 +00:00
Gary V. Vaughan
d7e4165333 Some macros had relied on accidentally correct ordering in order
for $MV to be defined before use.  Factor out setting of some
common file commands and m4_require it before use:

* libltdl/m4/libtool.m4 (_LT_FILEUTILS_DEFAULTS): Allow user to
override some common file commands at configure time.
(_LT_SETUP, _LT_CONFIG, _LT_COMPILER_OPTION, _LT_LINKER_OPTION)
(_LT_COMPILER_C_O, _LT_COMPILER_FILE_LOCKS)
(_LT_SYS_DYNAMIC_LINKER, _LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
(_LT_SYS_HIDDEN_DEPLIBS): m4_require it to ensure the commands are
defined before they are called.
2005-08-28 23:30:06 +00:00
Gary V. Vaughan
684fb2fa37 * libltdl/m4/libtool.m4, libltdl/m4/ltdl.m4: AU_DEFUN doesn't pass
arguments.  Use AU_ALIAS instead!
2005-08-28 22:55:40 +00:00
Ralf Wildenhues
5faec2f98a * libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
(_LT_LINKER_SHLIBS): Double-quote unsafe tag variable
descriptions: they are literals.
2005-08-26 09:58:39 +00:00
Ralf Wildenhues
f24610a07d * libltdl/m4/libtool.m4 (_LT_COMPILER_C_O): Send chmod warning to log. 2005-08-24 14:48:30 +00:00
Ralf Wildenhues
cbd5046d65 * libltdl/m4/ltdl.m4 (LT_SYS_SYMBOL_USCORE): Use _LT_EOF, not
EOF.
2005-08-24 11:13:18 +00:00