Commit Graph

2399 Commits

Author SHA1 Message Date
Peter O'Gorman
92ee209330 * config/ltmain.m4sh (func_mode_link): Fix
inherited_linker_flags so it puts it on the link line when
linking shared libraries as well as when linking executables.
* tests/inherited_flags.at: test inherited_linker_flags.
* tests/Makefile.am: Add test.
* tests/testsuite.at: Add test.
Reported by: Albert Chin-A-Young <china@thewrittenword.com>
2005-01-10 15:44:13 +00:00
Ralf Wildenhues
cb791887dc * tests/sh.test: After set dummy [...]', check for shift'
within the same and following line.
* config/ltmain.m4sh (func_enable_tag, func_mode_install)
(func_mode_link): Sprinkle `shift's all over to conform to this.
2005-01-10 10:59:37 +00:00
Gary V. Vaughan
1ae0011deb * HACKING (Editing 'ChangeLog'): Follow the GCS with respect to
attributions, and mention how to handle tiny changes.
Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
2005-01-09 13:33:19 +00:00
Gary V. Vaughan
d18c461e54 * ChangeLog.2004: Trim 2005 entries.
* ChangeLog: Add missing entries.
2005-01-09 13:12:34 +00:00
Gary V. Vaughan
2d6f1623ad * ChangeLog: Move 2004 change logs from here...
* ChangeLog.2004: ...to here.
2005-01-08 21:34:28 +00:00
Gary V. Vaughan
42a1087ff2 * m4/argz.m4, m4/libtool.m4, m4/ltdl.m4, m4/ltoptions.m4,
m4/ltsugar.m4, m4/ltversion.m4, m4/lt~obsolete.m4: RMS says,
'I think the [license of autoconf macro files] should be:
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is
# preserved.'.
2005-01-08 21:17:57 +00:00
Gary V. Vaughan
c87d63481f * ChangeLog: Reformatting.
* HACKING: Fix section numbering.
(Editing 'ChangeLog'): New notes on ChangeLog entry format.
2005-01-08 19:05:19 +00:00
Ralf Wildenhues
6d51635bd8 * tests/am-subdir.at tests/testsuite.at (AT_BOOTSTRAP,
AT_LIBTOOLIZE, AT_CHECK_LIBTOOLIZE) Rename to ..
(LT_AT_BOOTSTRAP, LT_AT_LIBTOOLIZE, LT_AT_CHECK_LIBTOOLIZE)
and make use of new names.
2005-01-03 14:06:12 +00:00
Ralf Wildenhues
e49e871547 * config/getopt.m4sh (func_version, func_usage, func_help):
Use `$SED -n' instead of `$SED RANGE {..}; d' as AIX sed cannot
handle the latter.
(func_help): start autoconf and automake in subshells to avoid
error messages from ash or Bourne shell if not available.
2004-12-30 12:03:39 +00:00
Ralf Wildenhues
8782d88386 * config/general.m4sh (func_quote_for_eval): Move backslash to
beginning of character class, to work around old Bash bug.
(func_quote_for_expand): Also test to avoid unnecessary fork.
2004-12-28 15:16:33 +00:00
Ralf Wildenhues
52ba41bdad * Makefile.am, bootstrap, clcommit.m4sh, libtoolize.m4sh,
config/ltmain.m4sh: Replace `set --' with `set dummy [...]; shift'
for portability.  tests/sh.test: Test for this.
2004-12-28 13:50:23 +00:00
Ralf Wildenhues
6f8f4b5a86 * libtoolize.m4sh, config/ltmain.m4sh (most functions):
New variable $opt_debug is either `:' or `set -x' depending on --debug.
Execute at most function entries to cater for ksh which resets `-x'.
* tests/defs.m4sh: Ditto for VERBOSE=debug.
2004-12-28 13:31:12 +00:00
Ralf Wildenhues
9028c97fed * m4/libtool.m4 (_LT_LINKER_SHLIBS)
[cygwin, mingw, pw32 ]: _LT_TAGVAR missing for `fix_srcfile_path'.
[ sysv4, sysv5 ]: _LT_TAGVAR missing for `export_dynamic_flag_spec'.
2004-12-28 13:17:27 +00:00
Ralf Wildenhues
d39c2d120d * doc/libtool.texi (all over): Use @option and @command.
Some more minor formatting updates, typos.
2004-12-28 13:13:14 +00:00
Ralf Wildenhues
e6c9168b66 * m4/libtool.m4 (_LT_PROG_ECHO_BACKSLASH): Fix variable
quoting; allows lt_ECHO to match --fallback-echo again.
2004-12-28 12:56:47 +00:00
Ralf Wildenhues
50c4db3fb9 * config/ltmain.m4sh (func_extract_archives): Not all shells grok
`read -r' (unnecessary in this case).
Reported by Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>.
2004-12-28 12:54:49 +00:00
Ralf Wildenhues
38dc34aca8 * config/general.m4sh: New variable quote_scanset..
(func_quote_for_eval, func_quote_for_expand)  ..use it to work around
SunOS ksh `case' backslash-escaping bug: protect character class by
variable expansion.  Reported by Alexander Kurz <alexander.kurz@qsc.de>.
2004-12-28 12:40:43 +00:00
Ralf Wildenhues
eb276ec7c7 * tests/quote.test: Restart under the correct shell (the one
$ECHO was computed for).
2004-12-28 10:28:21 +00:00
Ralf Wildenhues
70f63a304a * libltdl/lt__dirent.c: Include lt__private.h.
* libltdl/libltdl/lt__private.h: Include lt__strl.h.
2004-12-21 22:18:06 +00:00
Peter O'Gorman
fc9914a1d1 * config/ltmain.m4sh (func_extract_archives,func_extract_an_archive):
On darwin, uniq can not take the flags -cd together, thanks to Ralf
for the fix, also ar does not accept N, so we use the fact that
ar x libfoo.a foo.o will always extract the first foo.o in the
archive and we then delete foo.o from the archive, which will also
delete only the first foo.o, then rinse and repeat. Also add markers
for the testuite.
* m4/libtool.m4 (_LT_CONFIG): Add a marker so that we can use a sed
expression to find the shell functions in libtool.
* tests/functests.at: Test this feature.
* tests/testsuite.at: Add the test.
* tests/Makefile.am: Add the test.
2004-12-20 15:03:39 +00:00
Ralf Wildenhues
d471094f21 * libtoolize.m4sh: Install `install-sh' as well, needed for configure ..
* Makefile.am, Makefile.maint: .. install, update it.
* NEWS, doc/libtool.texi (Distributing): .. document it.
Reported by Ross Boylan <ross@biostat.ucsf.edu>.
2004-12-20 13:08:35 +00:00
Ralf Wildenhues
f463368fa2 * m4/libtool.m4 [solaris] (_LT_LINKER_SHLIBS): Add '${wl}-z ${wl}text'
to archive_cmds and archive_expsyms_cmds.  I.e., do not allow nopic in
shared libraries.
2004-12-20 08:15:13 +00:00
Ralf Wildenhues
94b8d897d5 * m4/libtool.m4 [solaris] (_LT_LINKER_SHLIBS): Change no_undefined_flag
back to ' -z defs'.  Problems with linking against libgcc.a will have
to be resolved differently.
2004-12-20 08:06:21 +00:00
Ralf Wildenhues
67207187c7 * tests/demo-nopic.test [solaris, sunos]: Skip test. 2004-12-20 07:59:58 +00:00
Ralf Wildenhues
323fcff5d0 * libtool.m4 [linux] (_LT_COMPILER_PIC, _LT_LANG_CXX_CONFIG):
Match icpc* and ecpc* (ia64 version of icpc) instead of only icpc.
2004-12-18 21:53:01 +00:00
Ralf Wildenhues
36ce7f4a14 * libltdl/lt__dirent.c [mingw] (opendir): Fix write of constant
strings past end of buffer.
(opendir, readdir): Fix read past end of buffer.
2004-12-18 21:42:08 +00:00
Ralf Wildenhues
c870fff371 * HACKING: Update list of non-Libtool-owned files. 2004-12-17 13:31:02 +00:00
Akim Demaille
b4c26f428a * libtoolize.m4sh (func_copy_all_from_path): Remove spurious eval. 2004-12-17 13:03:11 +00:00
Ralf Wildenhues
445285d9a3 * libltdl/ltdl.c (trim): Return error rather than do bogus
null pointer arithmetic when parsing a malformed .la file.
2004-12-16 12:00:09 +00:00
Bob Friesenhahn
ced1775490 * libltdl/lt__strl.c, libltdl/libltdl/lt__strl.h: New files to
emulate strlcat and strlcpy, which support size-bounded string
copying and concatenation for improved security.
* libltdl/Makefile.am: Optionally build source files
libltdl/lt__strl.c and libltdl/libltdl/lt__strl.h.
* m4/ltdl.m4 (LTDL_INIT): Add checks for strlcat and strlcpy.
2004-12-13 21:09:19 +00:00
Albert Chin-A-Young
0401fed0dd * libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG):
Append -G to link command-line on AIX to honor -brtl on command-line
(runtime linking). Already done for IBM C/C++ compilers.
2004-12-13 16:23:11 +00:00
Patrick Welche
7c0f8fafa1 * configure.ac: Fix aclocaldir to use ${datadir}, not ${prefix}.
Necessary for removal of old libtool.m4 files.
2004-12-12 16:24:28 +00:00
Ralf Wildenhues
2b032cf4e2 file func_extract_archives.test was initially added on branch branch-1-5. 2004-12-11 14:40:25 +00:00
Ralf Wildenhues
6e7507d7b8 * config/ltmain.m4sh (func_extract_archive): Send stderr of $NM
to /dev/null.  Reported by Martin Waitz <tali@admingilde.org>.
2004-12-10 17:18:59 +00:00
Albert Chin-A-Young
27c1434f7d * config/ltmain.m4sh: Preserve -model [arg] option, used
with the Tru64 UNIX C++ compiler. This option selects the
layout of C++ classes, name mangling, and exception handling.
2004-12-09 17:59:15 +00:00
Ralf Wildenhues
d1a251240e * config/ltmain.m4sh (func_mode_finish) [solaris]: Fix [] escaping bug. 2004-12-09 17:18:48 +00:00
Ralf Wildenhues
5819188d83 * config/ltmain.m4sh (all over the map): Make use of func_basename and
func_dirname in most occasions.
2004-12-09 17:12:41 +00:00
Ralf Wildenhues
54af6ecd03 * m4/libtool.m4 (_LT_CHECK_XSI_SHELL, _LT_PROG_XSI_SHELLFNS): New macros
to detect at `configure' time whether the shell supports some XSI
extensions and to copy appropriate versions of new shell functions into
`libtool' through `config.status'.  Copied functions are Bourne and XSI
variants of func_basename, func_dirname (a variant of `dirname' suitable
for libtool).  (_LT_SETUP) Require _LT_CHECK_XSI_SHELL.
(_LT_CONFIG)  Use _LT_PROG_XSI_SHELLFNS to insert into `libtool' at marker.
2004-12-09 17:10:10 +00:00
Ralf Wildenhues
b7fc99d0c0 * config/ltmain.m4sh: Set marker for insertion of shell functions. 2004-12-09 17:07:28 +00:00
Ralf Wildenhues
20540cfb42 * config/general.m4sh (func_quote_for_eval): Only fork if the
substitution matches.
2004-12-09 17:05:10 +00:00
Gary V. Vaughan
9011d5103d * TODO: Paste Peter's summary of the TODO thread starting at
http://lists.gnu.org/archive/html/libtool/2004-11/msg00130.html.
2004-12-03 11:28:45 +00:00
Bob Friesenhahn
bf66ef8b8d * config/ltmain.m4sh: Remove code which is no longer needed
now that temp_rpath only contains fully-qualified elements.
2004-12-02 16:40:55 +00:00
Ralf Wildenhues
b430e15d24 * config/general.m4sh: basename sed-subst is anchored and thus
does not need the `g' flag.
(func_quote_for_eval): Return both the possibly double-quoted
backslashified as well as only the backslashified argument.
* config/ltmain.m4sh (func_mode_link): Use both return values,
to save another sed_quote_subst application per cmdline arg.
2004-11-30 20:46:23 +00:00
Ralf Wildenhues
81b4ad79e3 * config/ltmain.m4sh (func_lalib_p): Update function
description. (func_lalib_unsafe_p): New function with same
functionality but written without forks; this function is safe
to use for cases where the argument either does not exist or
is required to be a lalib for correct operation.
* NEWS: Mention the fact that stdin is not to be used.
* (func_mode_execute, func_mode_install, func_mode_link):
Use func_lalib_unsafe_p where appropriate.
* (func_mode_execute): For the program wrapper, use
func_ltwrapper_p instead of func_lalib_p.
2004-11-29 21:18:26 +00:00
Ralf Wildenhues
e5874b17a0 * m4/libtool.m4 (_LT_LINKER_SHLIBS): Treat linux-dietlibc with
the `diet' compiler wrapper (as opposed to the `diet-dyn'
wrapper) as a static-only platform.
* NEWS: Updated.
2004-11-29 21:12:41 +00:00
Ralf Wildenhues
5272d7fb5e * libltdl/ltdl.c (trim): Use memcpy instead of strncpy here, to
avoid problems with non-conforming strncpy.  This is safe here.
2004-11-29 21:06:24 +00:00
Ralf Wildenhues
60fbf440cb * m4/ltdl.m4 (LT_LIB_DLLOAD): Define HAVE_LIBDLLOADER if we
have a dlloader to preload.
* libltdl/ltdl.c (lt_dlinit): Only preload if HAVE_LIBDLLOADER, only
declare preloaded_symbols then.  Fixes libltdl on static platforms.
* NEWS: Updated.
2004-11-29 21:00:20 +00:00
Gary V. Vaughan
32f1e626b8 Add a search path option to libtoolize so that we can run it from
the testsuite without pulling in the last installed macros and
ltdl sources:

* libtoolize.m4sh:  Add a -I option to change libtoolize's search
path for macro files, and libltdl master sources.
(pkgvdatadir, pkgvmacrodir): Renamed...
(pkgvdatadirs, pkgvmacrodirs): ...as they can now contain a ':'
delimited list of directories.  Adjust all callers.
(func_copy_all_from_path): New function to search a ':' delimited
search path for a directory to copy.
(func_serial_update, func_ltmain_update, func_config_update): New
first parameter is a filename to search for.  srcdir parameter can
now be a ':' delimited search path.  Adjust all callers.
(func_copy_some_files): Ditto.
Put srcfile_spec first in parameter list for consistency with
other functions.  Adjust all callers.
(func_copy_cb): func_copy adapter function to call func_copy
correctly from func_copy_some_files.
(func_filename_path_search): Return the full path to the first
occurence of a named file found in a list of directories.
* tests/testsuite.at (LIBTOOLIZE): Wrap exported LIBTOOLIZE
initialisation in PREPARE_TESTS diversion to stop it being
discarded when testsuite is generated.
(AT_LIBTOOLIZE): Factor out libtoolize calls,
and set search path to find macros and libltdl source files from
the source tree.
(AT_CHECK_LIBTOOLIZE): Test it.
(AT_BOOTSTRAP): Adjust.  Split out call to make.
* tests/am-subdir.at: Call make explicitly.
(Makefile.am): Fix typo in ACLOCAL_AMFLAGS,
2004-11-29 13:50:54 +00:00
Ralf Wildenhues
6e51fb6c28 * config/ltmain.m4sh (func_mode_link): $dlsymsobj is really
$symfileobj, bug exposed only in the static preloading case
(symfileobj is created, but not linked into output).
2004-11-28 19:55:40 +00:00
Ralf Wildenhues
2400d0ba16 * tests/demo-relink.test, tests/depdemo-relink.test: SKIP, don't
FAIL if no shared libs available in demo/.  Do not try to access
nonexistent files.
2004-11-28 19:48:15 +00:00