]> git.ipfire.org Git - thirdparty/libtool.git/log
thirdparty/libtool.git
14 years agoModify --with-pic to support per-package configurations.
Ollie Wild [Wed, 10 Nov 2010 20:06:50 +0000 (21:06 +0100)] 
Modify --with-pic to support per-package configurations.

* libltdl/m4/libtool.m4:  Modify --with-pic to accept a list of
package names.  Modelled off --enable-shared.
* tests/with-pic.at: New test.
* Makefile.am (TESTSUITE_AT): Add tests/with-pic.at.
* doc/libtool.texi (LT_INIT): Enhance documentation of
--with-pic configure flag.
* NEWS (New features): Mention that --with-pic now accepts a
comma-separated list of package names.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix cwrapper test failure with --disable-static.
Ralf Wildenhues [Wed, 10 Nov 2010 18:28:11 +0000 (19:28 +0100)] 
Fix cwrapper test failure with --disable-static.

* tests/cwrapper.at (cwrapper and installed shared libraries):
Compile program source without libtool, so we can be sure a
non-PIC object will be created.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: Windows DLLs and headers.
Peter Rosin [Mon, 1 Nov 2010 09:10:36 +0000 (10:10 +0100)] 
docs: Windows DLLs and headers.

* doc/libtool.texi (Platform quirks): Add new subsection
'Windows DLLs'.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years ago* doc/libtool.texi (Platform quirks): Fix typo.
Peter Rosin [Mon, 1 Nov 2010 07:11:34 +0000 (08:11 +0100)] 
* doc/libtool.texi (Platform quirks): Fix typo.

14 years agodocs: mention shell requirement for libtool script.
Ralf Wildenhues [Wed, 27 Oct 2010 18:13:28 +0000 (20:13 +0200)] 
docs: mention shell requirement for libtool script.

* doc/libtool.texi (Invoking libtool): Document that the shell
used to invoke libtool needs to be the same used to configure
it.
* THANKS: Update.
Report by Markus Duft.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoMerge branch 'libtool-next' (early part)
Ralf Wildenhues [Fri, 15 Oct 2010 03:54:45 +0000 (05:54 +0200)] 
Merge branch 'libtool-next' (early part)

* 'libtool-next' (early part):
  libtool: remove redundant unsubstituted shell var defaults.
  maint: don't leak developer GREP, SED etc into distribution file.
  maint: rearrange Makefile.am in preparation for a follow-up patch.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix linking from only convenience archives with gfortran on Darwin.
Ralf Wildenhues [Thu, 14 Oct 2010 19:27:09 +0000 (21:27 +0200)] 
Fix linking from only convenience archives with gfortran on Darwin.

* libltdl/m4/libtool.m4 (_LT_DARWIN_LINKER_FEATURES): Update
macro comment header.
[darwin, F77, FC] <compiler_needs_object>: Set to yes if
whole_archive_flag_spec is nonempty.  Fixes convenience.at test
suite failures with gfortran 4.2 on Darwin.
* THANKS: Update.
Report by Paul Laight.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix bindir check logic, and relax non-bindir case for AIX.
Ralf Wildenhues [Thu, 14 Oct 2010 19:48:17 +0000 (21:48 +0200)] 
Fix bindir check logic, and relax non-bindir case for AIX.

* tests/bindir.at (bindir install tests): Rewrite checks for
place of the installed shared library in two separate tests,
depending on whether -bindir is supposed to have an effect or
not.  In the positive case, make the test stricter so that we
reject libraries in $libdir.  In the negative case, do not
require a major version number in the $libdir file name, for AIX
without runtimelinking.  If tmpdir creation fails, skip the
test.  Use fewer bindir directory names for testing, to speed
up the test.  Also mention MSVC style DLL name in comment.
Report by Peter Rosin.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agotests: remove unneeded 'bindir compile check' test.
Ralf Wildenhues [Thu, 14 Oct 2010 19:47:44 +0000 (21:47 +0200)] 
tests: remove unneeded 'bindir compile check' test.

* tests/bindir.at (bindir compile check): Remove.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agotests: fix $EXEEXT typo.
Peter Rosin [Thu, 14 Oct 2010 12:19:21 +0000 (14:19 +0200)] 
tests: fix $EXEEXT typo.

* tests/depdemo-relink.test (func_restore_files): Use $EXEEXT
instead of $EXEXT.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agodocs: improve description of -no-undefined.
Simon Josefsson [Sat, 9 Oct 2010 10:26:16 +0000 (12:26 +0200)] 
docs: improve description of -no-undefined.

* doc/libtool.texi (Link mode): Fix -no-undefined description.
(Inter-library dependencies): Use Windows not AIX as example
system.  Clarify need for symbol resolution at library creation
time.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoAdd missing sysroot resolution.
Paolo Bonzini [Sat, 9 Oct 2010 08:37:41 +0000 (10:37 +0200)] 
Add missing sysroot resolution.

* libltdl/config/ltmain.m4sh (func_mode_link): Resolve sysroot
when fetching the install directory of dependent libraries.
Reported by Lionel Landwerlin <llandwerlin@gmail.com>,
patch by Khem Raj <raj.khem@gmail.com>.
* THANKS: Reorder entries, add Khem and Lionel.

14 years agoAdd test case for 69e77671 (cwrapper PATH manipulation order)
Roumen Petrov [Sun, 3 Oct 2010 21:15:17 +0000 (17:15 -0400)] 
Add test case for 69e77671 (cwrapper PATH manipulation order)

* tests/cwrapper.at: Add new test 'cwrapper and installed shared
libraries.'

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agocwrapper: split long lines when dumping the wrapper script.
Peter Rosin [Mon, 4 Oct 2010 19:16:26 +0000 (21:16 +0200)] 
cwrapper: split long lines when dumping the wrapper script.

* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src): If
the wrapper script contains long lines, split them for
readability and to conform with C standards.
* tests/cwrapper.at (cwrapper string length): New test, making
sure we don't regress.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agomsvc: handle symbols from different files independently.
Peter Rosin [Mon, 4 Oct 2010 14:02:39 +0000 (16:02 +0200)] 
msvc: handle symbols from different files independently.

* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS)
<dumpbin, lt_cv_sys_global_symbol_pipe>: Make all sections
viable for symbol extraction again when the symbols from a new
file starts.  Fixes tests/tagdemo-make.test for MSVC 10.
* tests/dumpbin-symbols.at: New test, making sure we don't
regress.
* Makefile.am (TESTSUITE_AT): Update.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agotests: check if sys_lib_search_path_spec works on MSVC.
Peter Rosin [Mon, 27 Sep 2010 18:09:53 +0000 (20:09 +0200)] 
tests: check if sys_lib_search_path_spec works on MSVC.

* tests/sys-lib.at: New test, making sure v2.2.10-207-g09142ea
doesn't regress.
* Makefile.am (TESTSUITE_AT): Update.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoSkip need_lib_prefix.at on systems without lib prefix on libraries.
Peter Rosin [Mon, 27 Sep 2010 11:44:48 +0000 (13:44 +0200)] 
Skip need_lib_prefix.at on systems without lib prefix on libraries.

* tests/need_lib_prefix.at [MSVC, OS/2]: Skip this test on
systems that do not have libraries prefixed with lib.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agotests: clean up importing and exporting on w32.
Peter Rosin [Mon, 27 Sep 2010 08:06:44 +0000 (10:06 +0200)] 
tests: clean up importing and exporting on w32.

Makes the touched tests pass for MSVC when DLLs are built.

* tests/demo/Makefile.am, tests/pdemo/Makefile.am: Define
BUILDING_LIBHELLO when building libhello.la.
* tests/demo/foo.h, tests/pdemo/foo.h (nothing) <MSVC>: Export
variable when building the libhello dll and import when using
libhello.  For GCC and non-w32, and when building a static
libhello, leave as an ordinary extern.
* tests/pdemo/foo.h [Cygwin]: Remove unneeded and "dead" export
and import logic (LIBFOO_DLL is always undefined).
* tests/pdemo/longer_file_name_foo.c,
tests/pdemo/longer_file_name_foo2.c (_LIBFOO_COMPILATION_): Not
useful before, even less so now.  Removed.
* tests/depdemo/l1/Makefile.am: Define BUILDING_LIBL1 when
building libl1.la.
* tests/depdemo/l2/Makefile.am: Define BUILDING_LIBL2 when
building libl2.la.
* tests/depdemo/l3/Makefile.am: Define BUILDING_LIBL3 when
building libl3.la.
* tests/depdemo/l4/Makefile.am: Define BUILDING_LIBL4 when
building libl4.la.
* tests/depdemo/l1/l1.h, tests/depdemo/l2/l2.h,
tests/depdemo/l3/l3.h, tests/depdemo/l4/l4.h <MSVC>: Export
variables when building the associated library dll and import
when using the library.  For GCC and non-w32, and when building
static libraries, leave as an ordinary extern.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agodocs: do not refer to Libtool version with dlopen functionality.
Ralf Wildenhues [Sun, 26 Sep 2010 19:36:35 +0000 (21:36 +0200)] 
docs: do not refer to Libtool version with dlopen functionality.

* doc/libtool.texi (Dlopened modules): Remove broken reference
to what should have been Libtool 0.9g.
Report by Roumen Petrov.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agolibtool: remove redundant unsubstituted shell var defaults.
Gary V. Vaughan [Fri, 24 Sep 2010 05:51:36 +0000 (12:51 +0700)] 
libtool: remove redundant unsubstituted shell var defaults.

* Makefile.am (libltdl/config/ltmain.sh): Boilerplate code from
libltdl/config/general.m4 sets some default shell variables
designed to be substituted by `$(configure_edit)'.  Actually,
`libtool' uses the language tag values for those variables, and
`ltmain.m4sh' is not passed through `$(configure_edit)', so they
are just noise.  Edit them out at bootstrap time.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agomaint: don't leak developer GREP, SED etc into distribution file.
Gary V. Vaughan [Thu, 23 Sep 2010 10:00:08 +0000 (17:00 +0700)] 
maint: don't leak developer GREP, SED etc into distribution file.

* Makefile.am: Having rearranged the file, now apply the actual
changes to follow-up.
(edit): Split into two parts...
(bootstrap_edit): ...substitutions that should happen at bootstrap
time...
(configure_edit): ...and substitutions that should not happen until
configure time.
* Makefile.am (libltdl/m4/ltversion.m4, libltdl/config/ltmain.sh)
(libtoolize.in, tests/package.m4): Use bootstrap_edit.
(libtoolize, tests/defs): Use configure_edit.
* HACKING (Release Procedure): Remove the note to workaround the
bug fixed by this changeset.
* NEWS (Bug fixes): Mention that this bug is now fixed.
Reported by Joerg Sonnenberger.

14 years agomaint: rearrange Makefile.am in preparation for a follow-up patch.
Gary V. Vaughan [Wed, 1 Sep 2010 07:41:52 +0000 (14:41 +0700)] 
maint: rearrange Makefile.am in preparation for a follow-up patch.

* Makefile.am (Libtool scripts.): Move this section below the
`Bootstrap.' section...
(libtoolize.in): ...except this one which is generated at
bootstrap time, and was added into the `Bootstrap.' section.
(Libltdl.): Move this section below the `Libtool scripts.'
section.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agomsvc: don't try to export import descriptors.
Peter Rosin [Fri, 24 Sep 2010 06:44:24 +0000 (08:44 +0200)] 
msvc: don't try to export import descriptors.

* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [cygwin, mingw]
[pw32, cegcc] <cl*, exclude_expsyms>: Don't export symbols in
import libraries related to describing what dll(s) the import
library is importing. Fixes problem in tests/demo-make.test
and some other tests.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoFix regression in command-line length computation.
Ralf Wildenhues [Wed, 22 Sep 2010 18:18:54 +0000 (20:18 +0200)] 
Fix regression in command-line length computation.

* libltdl/m4/libtool.m4 (LT_CMD_MAX_LEN): Use `env echo' rather
than possibly-undefined func_fallback_echo, to ensure we fork
and exec for this test.
* NEWS: Update.
Regression introduced in v2.2.6-39-g9c3d4d8.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoPost-release administrivia.
Gary V. Vaughan [Wed, 22 Sep 2010 14:29:36 +0000 (21:29 +0700)] 
Post-release administrivia.

* configure.ac, libltdl/configure.ac (AC_INIT): Bump version
numbers to 2.4.1a.
* NEWS: Add header line for next release.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agoRelease 2.4. v2.4
Gary V. Vaughan [Wed, 22 Sep 2010 14:42:13 +0000 (21:42 +0700)] 
Release 2.4.

* libltdl/Makefile.inc (LTDL_VERSION_INFO): We've added the
static libprefix interface, so new version-info is C+1:0:R+1.
* configure.ac, libltdl/configure.ac (AC_INIT): Bump version
numbers.
* NEWS: Update version number.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agomanual: web-manual index.html clashes with @node Index.
Gary V. Vaughan [Wed, 22 Sep 2010 14:41:22 +0000 (21:41 +0700)] 
manual: web-manual index.html clashes with @node Index.

* doc/libtool.texi (Index): Renamed to `Combined Index'.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agotests: ISO C++ forbids declaration of 'v1' with no type.
Gary V. Vaughan [Wed, 22 Sep 2010 01:48:56 +0000 (08:48 +0700)] 
tests: ISO C++ forbids declaration of 'v1' with no type.

* tests/lt_dlexit.at (lt_dlexit unloading libs): Added an
explicit int type to declaration of 'v1' to prevent compilation
failure with C++.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agotests: reloadable objects do not work on MSVC, SKIP test.
Peter Rosin [Wed, 22 Sep 2010 07:58:47 +0000 (09:58 +0200)] 
tests: reloadable objects do not work on MSVC, SKIP test.

* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS)
[cygwin, mingw, pw32, cegcc] <cl*, reload_cmds>: Indicate that
reloadable objects do not work.
* tests/duplicate_conv.at: Skip last test if reloadable
objects do not work.
* doc/libtool.texi (libtool script contents) <reload_cmds>:
Document how to indicate that reloadable objects do not work.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agomsvc: eliminate spaces in the library search path.
Peter Rosin [Tue, 21 Sep 2010 18:31:37 +0000 (20:31 +0200)] 
msvc: eliminate spaces in the library search path.

* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [mingw, cygwin]
<cl*, sys_lib_search_path_spec>: The LIB path variable telling
where MSVC looks for libraries is likely to contain directory
names with spaces.  Convert those directory names to the short
8.3 DOS form (i.e. without spaces) when storing them in
sys_lib_search_path_spec, as that is a space separated variable.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoRevert to per-language libpath computation on AIX.
Ralf Wildenhues [Mon, 20 Sep 2010 19:51:55 +0000 (21:51 +0200)] 
Revert to per-language libpath computation on AIX.

* libltdl/m4/libtool.m4 (_LT_SYS_MODULE_PATH_AIX): Accept
tagname argument.  Use global cache variable lt_cv_aix_libpath
to override per-language tag variables for the libpath value.
Fix the sed script to remove trailing space.
(_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG): Pass tag argument to
_LT_SYS_MODULE_PATH_AIX.
Tracked down and reported by Rainer Tammer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agomaint: edit-readme-alpha shouldn't try to re-edit during dist.
Gary V. Vaughan [Tue, 21 Sep 2010 00:57:15 +0000 (07:57 +0700)] 
maint: edit-readme-alpha shouldn't try to re-edit during dist.

* libltdl/config/edit-readme-alpha: If README is non-writable
assume that it is being run from distcheck, and bail out with
a warning (to help diagnose cases where the heuristic is not
correct).  However, if README has already been edited to the
alpha text, quietly skip without an error message.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agomaint: drop autobuild requirement
Eric Blake [Mon, 20 Sep 2010 20:40:09 +0000 (14:40 -0600)] 
maint: drop autobuild requirement

* HACKING: Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agobuild: ship autobuild.m4, to reduce bootstrap requirement
Eric Blake [Mon, 20 Sep 2010 18:04:50 +0000 (12:04 -0600)] 
build: ship autobuild.m4, to reduce bootstrap requirement

Shipping a copy of autobuild.m4 makes it so that users need not
pre-install autobuild just for aclocal to find the macro AB_INIT.

* libltdl/m4/.gitignore: Drop autobuild.m4.
* libltdl/m4/autobuild.m4: New file, copied from autobuild.
* configure.ac (AB_INIT): Unconditionally call it.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agolibltdl: Make sure preloaded symbols are declared extern "C".
Peter Rosin [Mon, 20 Sep 2010 07:11:43 +0000 (09:11 +0200)] 
libltdl: Make sure preloaded symbols are declared extern "C".

* libltdl/ltdl.h (LTDL_SET_PRELOADED_SYMBOLS): Move the
declaration of lt__PROGRAM__LTX_preloaded_symbols to global
scope and make sure it has "C" linkage.  Makes exceptions.at
succeed on MSVC.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agotests: __declspec (dll{ex,im}port) in tests/exceptions.at
Peter Rosin [Mon, 20 Sep 2010 07:07:25 +0000 (09:07 +0200)] 
tests: __declspec (dll{ex,im}port) in tests/exceptions.at

* tests/exceptions.at (common.h, module.h, lib.h) [w32]: Use
__declspec (dllimport) and __declspec (dllexport) instead of
the less portable __attribute__ ((dllimport)) and
__attribute__ ((dllexport)).  Makes the test compile on MSVC.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agotests: Import items from liba1 for MSVC.
Peter Rosin [Sun, 19 Sep 2010 12:14:21 +0000 (14:14 +0200)] 
tests: Import items from liba1 for MSVC.

* tests/lt_dlexit.at (b1.c) [MSVC]: Import function f1 and
variable v1 from liba1 when using them from modb1.  Makes the
test pass on MSVC.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agomaint: use sed instead of maintaining 2 README files.
Gary V. Vaughan [Sat, 18 Sep 2010 05:08:13 +0000 (12:08 +0700)] 
maint: use sed instead of maintaining 2 README files.

* README.alpha: Deleted.  It was mostly identical to README.
* libltdl/config/edit-readme-alpha: New script to edit the
contents of README in the dist tree prior to tarring up.
* Makefile.am (dist-hook): Run it before rolling alpha release
tarball.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agomaint: improve README's `Obtaining the Latest Sources'.
Gary V. Vaughan [Sat, 18 Sep 2010 04:13:50 +0000 (11:13 +0700)] 
maint: improve README's `Obtaining the Latest Sources'.

* README (Obtaining the Latest Sources): Add instructions for
obtaining stable, alpha and nightly snapshot tarballs.
* README.alpha (Obtaining the Latest Sources): Adjust to match.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agomaint: reformat README `The Test Suites' for consistency.
Gary V. Vaughan [Sat, 18 Sep 2010 03:46:09 +0000 (10:46 +0700)] 
maint: reformat README `The Test Suites' for consistency.

* README (The Test Suites): Reformatted for consistency.
* README.alpha (The Test Suites): Adjust to match.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agomaint: improve `Reporting Bugs' in README and README.alpha.
Gary V. Vaughan [Sat, 18 Sep 2010 03:38:10 +0000 (10:38 +0700)] 
maint: improve `Reporting Bugs' in README and README.alpha.

* README (Reporting Bugs): Rewritten to a more complete and
concise guide to providing a good bug report.
* README.alpha (Reporting Bugs): Adjust to match.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agomaint: consolidate Introductions of README and README.alpha.
Gary V. Vaughan [Sat, 18 Sep 2010 03:08:25 +0000 (10:08 +0700)] 
maint: consolidate Introductions of README and README.alpha.

* README (Introduction): Rewritten to a more logical order for
first time users, incorporating some additional text that was
previously only in README.alpha.
* README.alpha (Introduction): Adjust to match.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agomaint: copy the Version Numbering section into README.alpha.
Gary V. Vaughan [Sat, 18 Sep 2010 02:48:31 +0000 (09:48 +0700)] 
maint: copy the Version Numbering section into README.alpha.

* README.alpha (Version Numbering): No less useful for users
of alpha releases.  Copied from README.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agotests: avoid distcheck failure with --disable-ltdl-install.
Ralf Wildenhues [Sat, 18 Sep 2010 08:19:38 +0000 (10:19 +0200)] 
tests: avoid distcheck failure with --disable-ltdl-install.

* tests/ltdl-libdir.at (libdir of installed modules): Skip if
$LIBLTDL does not exist.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agomaint: improve README instructions for fetching latest version.
Gary V. Vaughan [Thu, 16 Sep 2010 02:47:45 +0000 (09:47 +0700)] 
maint: improve README instructions for fetching latest version.

* README, README-alpha (Obtaining the Latest Sources): New
section, describing use of savannah repositories and bootstrap.
* README.alpha (Reporting Bugs): Remove git instructions in
favour of a reference to the new `Obtaining the Latest Sources'
section.

14 years agotests: actually detect missing 'test' in 'if "$foo" = ...'.
Peter Rosin [Fri, 17 Sep 2010 20:31:08 +0000 (22:31 +0200)] 
tests: actually detect missing 'test' in 'if "$foo" = ...'.

* tests/sh.test: Remove extra backslash in regex.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoCopy over DLL_EXPORT handling from C to C++ for non-GCC on w32.
Peter Rosin [Fri, 17 Sep 2010 14:15:04 +0000 (16:15 +0200)] 
Copy over DLL_EXPORT handling from C to C++ for non-GCC on w32.

* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [mingw, cygwin, os2]
[pw32, cegcc]: Copy over the DLL_EXPORT handling from C to C++.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoMerge branch 'lto'
Ralf Wildenhues [Fri, 17 Sep 2010 19:48:00 +0000 (21:48 +0200)] 
Merge branch 'lto'

* lto:
  LTO: consistently accept -fwhopr* and -flto* for GCC.

14 years agoLTO: consistently accept -fwhopr* and -flto* for GCC. lto
Ralf Wildenhues [Fri, 17 Sep 2010 19:47:18 +0000 (21:47 +0200)] 
LTO: consistently accept -fwhopr* and -flto* for GCC.

* libltdl/config/ltmain.m4sh (func_mode_link): Accept -fwhopr*.
* libltdl/m4/libtool.m4 (_LT_SYS_HIDDEN_LIBDEPS): Also match
-flto*.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix order of PATH manipulation in cwrapper and shwrapper
Charles Wilson [Fri, 17 Sep 2010 16:23:28 +0000 (12:23 -0400)] 
Fix order of PATH manipulation in cwrapper and shwrapper

* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src:main): Call
lt_update_exe_path before lt_update_lib_path, to ensure that the
temporary rpath values (which include the OBJDIRs of uninstalled
libtool libraries) precede installation and final -rpath directories.
(func_emit_wrapper): Prepend $dllsearchpath to PATH before prepending
$temp_rpath to $shlibpath_var; similar rationale as above.
Reported by Jon Turney <jon.turney@dronecode.org.uk>

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agoDocument libtool variable to_host_file_cmd.
Charles Wilson [Fri, 17 Sep 2010 16:28:46 +0000 (12:28 -0400)] 
Document libtool variable to_host_file_cmd.

* doc/libtool.texi (libtool script contents:to_host_file_cmd): Document
variable.
(libtool script contents:to_tool_file_cmd): Prefer `build platform'
to `build system'; Ditto `host platform'.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agoFix sh.test failure introduced in 72064249
Charles Wilson [Fri, 17 Sep 2010 02:53:47 +0000 (22:53 -0400)] 
Fix sh.test failure introduced in 72064249

* libltdl/config/ltmain.m4sh (func_mode_link): Avoid poor syntax.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agotests: avoid localization failure due to unstable compiler messages.
Ralf Wildenhues [Thu, 16 Sep 2010 20:02:50 +0000 (22:02 +0200)] 
tests: avoid localization failure due to unstable compiler messages.

* tests/testsuite.at (LT_AT_NORMALIZE_COMPILER_OUTPUT):
Attempt to normalize temporary file names in error messages.
Fixes 'localized compiler messages' test failure on Darwin when
creating fat (multi-ABI) libraries.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoPrefer $NM @file when the toolchain isn't native to $build.
Peter Rosin [Mon, 13 Sep 2010 07:48:57 +0000 (09:48 +0200)] 
Prefer $NM @file when the toolchain isn't native to $build.

* libltdl/config/ltmain.m4sh (func_mode_link): Avoid calculating
the command line length and take the @file branch *if* the file
names needs to be converted for the toolchain and the @file
branch works.  Fixes problems in stresstest.at when doing a cross
from Cygwin to MinGW using MinGW native tools (a.k.a. a "faked"
cross), and for the specific case of MSVC on Cygwin it makes the
test pass.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoRemove obsolete .cvs ignore files.
Gary V. Vaughan [Thu, 16 Sep 2010 02:05:28 +0000 (09:05 +0700)] 
Remove obsolete .cvs ignore files.

* .cvsignore, doc/.cvsignore, libltdl/.cvsignore,
libltdl/config/.cvsignore, libltdl/loaders/.cvsignore,
libltdl/m4/.cvsignore, tests/.cvsignore,
tests/cdemo/.cvsignore, tests/demo/.cvsignore,
tests/depdemo/l1/.cvsignore, tests/depdemo/l2/.cvsignore,
tests/depdemo/l3/.cvsignore, tests/depdemo/l4/.cvsignore,
tests/f77demo/.cvsignore, tests/fcdemo/.cvsignore,
tests/mdemo/.cvsignore, tests/mdemo2/.cvsignore,
tests/pdemo/.cvsignore, tests/tagdemo/.cvsignore: Deleted. Even
when using savannah's CVS readonly mirror there's no way to commit
back to the real repo, so this files are not worth maintaining
or keeping around.

14 years agomaint: ship .xz, not .lzma
Eric Blake [Mon, 13 Sep 2010 21:33:13 +0000 (15:33 -0600)] 
maint: ship .xz, not .lzma

* configure.ac (AM_INIT_AUTOMAKE): Prefer better file format.
* Makefile.maint (git-release, git-dist, prev-tarball)
(new-tarball, diffs): Use correct extension.
* HACKING: Update instructions.
* .gitignore: Ignore .xz files.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodoc: avoid long lines in input and output, indexing fixes.
Ralf Wildenhues [Mon, 13 Sep 2010 19:52:03 +0000 (21:52 +0200)] 
doc: avoid long lines in input and output, indexing fixes.

* doc/libtool.texi (Linking libraries)
(Module loaders for libltdl): Manually line-wrap examples, to
avoid long lines.
(Libltdl interface, User defined module data)
(Module loaders for libltdl): Wrap long @deftypefun input lines
using trailing '@'.  Use @deftypefun rather than @deftp where
appropriate, and add spaces in @deftypefun lines to fix the
index entries generated from these lines.
(Cheap tricks): Use @smallexample rather than @example, to avoid
long lines.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agodocs: @file and @option markup fixes.
Ralf Wildenhues [Mon, 13 Sep 2010 19:28:52 +0000 (21:28 +0200)] 
docs: @file and @option markup fixes.

* doc/libtool.texi (Creating object files, Linking libraries)
(Linking executables, Link mode, Finish mode, Autoconf macros)
(Using Automake, Inter-library dependencies, Dlpreopening)
(Linking with dlopened modules, Finding the dlname)
(Libltdl interface, Test descriptions, Multiple dependencies):
Add @option where needed, replace @samp with @file as
appropriate.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years ago* .gitignore: Ignore *.obj files for MSVC (and w32 in general).
Peter Rosin [Sun, 12 Sep 2010 16:43:11 +0000 (18:43 +0200)] 
* .gitignore: Ignore *.obj files for MSVC (and w32 in general).

14 years agoAdjust to moved auxiliary files and add compile.
Peter Rosin [Sun, 12 Sep 2010 16:23:53 +0000 (18:23 +0200)] 
Adjust to moved auxiliary files and add compile.

* HACKING (Maintenance Notes): Adjust to moved files.  Add the
compile script.
* Makefile.maint (fetch): Also fetch the compile script.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agotests: avoid empty AT_DATA contents, for zsh.
Ralf Wildenhues [Sun, 12 Sep 2010 15:25:59 +0000 (17:25 +0200)] 
tests: avoid empty AT_DATA contents, for zsh.

* tests/libtoolize.at (libtoolize macro serial update)
(libtoolize config files serial update, LIBTOOLIZE_OPTIONS):
Do not create empty files with AT_DATA, the latter is documented
to require a final newline.  Fixes testsuite failures with zsh
4.3.10.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoWhen assigning $linklib value, honor [-all]-static[-libtool-libs]
Charles Wilson [Sun, 12 Sep 2010 13:19:51 +0000 (09:19 -0400)] 
When assigning $linklib value, honor [-all]-static[-libtool-libs]

* libltdl/config/ltmain.m4sh (func_mode_link): When prefer_static_libs
and static library exists, ensure old_library name is used as $linklib.
Fixes failure on mingw when both static and shared libraries are
present.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agotests: work around zsh use of $options variable.
Ralf Wildenhues [Sun, 12 Sep 2010 14:38:46 +0000 (16:38 +0200)] 
tests: work around zsh use of $options variable.

* tests/getopt-m4sh.at: Rename $options to $opts, the former is
special for zsh 4.3.10.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix AC_NO_EXECUTABLES test failure on IRIX 6.5.
Ralf Wildenhues [Sun, 12 Sep 2010 09:25:36 +0000 (11:25 +0200)] 
Fix AC_NO_EXECUTABLES test failure on IRIX 6.5.

* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [irix]: Cache result
of link check for -Wl,-exported_symbol.
* tests/no-executables.at (AC_NO_EXECUTABLES): Set
lt_cv_irix_exported_symbol, to avoid link check.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoInitial support for the NAG Fortran compiler on GNU/Linux.
Jürgen Reuter [Sun, 12 Sep 2010 10:15:18 +0000 (12:15 +0200)] 
Initial support for the NAG Fortran compiler on GNU/Linux.

* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux] <nagfor>:
New set of entries, for NAG Fortran 5.1 and 5.2.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix getopt.m4sh to require Autoconf 2.62 or newer.
Ralf Wildenhues [Sun, 12 Sep 2010 09:40:36 +0000 (11:40 +0200)] 
Fix getopt.m4sh to require Autoconf 2.62 or newer.

* libltdl/config/getopt.m4sh (m4_version_prereq): Require 2.62,
not 2.61.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoMerge branch 'lto'
Ralf Wildenhues [Sun, 12 Sep 2010 08:59:01 +0000 (10:59 +0200)] 
Merge branch 'lto'

* lto:
  Support GCC LTO on GNU/Linux.
  Disable GCC LTO for verbose library extraction.
  Save and restore CFLAGS properly inside libtool.m4 macros.

14 years agoCorrect typo: $sharedlib_from_linklib_cmd missing '_cmd'
Charles Wilson [Sat, 11 Sep 2010 05:02:29 +0000 (01:02 -0400)] 
Correct typo: $sharedlib_from_linklib_cmd missing '_cmd'

* libltdl/config/ltmain.m4sh (func_generate_dlsyms): Fix obvious
typo, $sharedlib_from_linklib_cmd missing '_cmd'.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agoConvert file name to toolchain format when invoking $NM.
Peter Rosin [Fri, 10 Sep 2010 13:04:17 +0000 (15:04 +0200)] 
Convert file name to toolchain format when invoking $NM.

* libltdl/config/ltmain.m4sh (func_generate_dlsyms)
(func_win32_libid, func_cygming_gnu_implib_p)
(func_cygming_ms_implib_p): When using the name lister to find
symbols in files, convert the file names to a format appropriate
for the tool. Fixes testsuite issues in mdemo-static-make.test
and mdemo-make.test when doing a cross from Cygwin/Wine to MinGW
using MinGW native tools (a.k.a. a "faked" cross).

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoFix dependency tracking for MSYS/MinGW.
Peter Rosin [Thu, 9 Sep 2010 18:51:27 +0000 (20:51 +0200)] 
Fix dependency tracking for MSYS/MinGW.

* libltdl/config/ltmain.m4sh (func_to_tool_file): Add lazy
argument which allows the user to specify conversions that are
not desired.
(func_mode_compile): Don't convert source files on MSYS, as
MSYS does it for us. This fixes a regression introduced by
"Use func_to_tool_file instead of fix_srcfile_path".
Reported by Charles Wilson.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoMention adjustment of naming of MSVC import libraries in NEWS.
Peter Rosin [Wed, 8 Sep 2010 11:39:52 +0000 (13:39 +0200)] 
Mention adjustment of naming of MSVC import libraries in NEWS.

* NEWS: Mention the change in import library naming on MSVC.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoAdjust naming of MSVC import libraries.
Peter Rosin [Tue, 7 Sep 2010 16:31:18 +0000 (18:31 +0200)] 
Adjust naming of MSVC import libraries.

* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [mingw, cygwin]
[pw32, cegcc] <cl*, library_names_spec>: Adjust naming of the
import library from foo-<major-version>.lib to foo.dll.lib, to
avoid clashes with the static library for unversioned libraries.
(_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG) [mingw, cygwin, pw32]
[cegcc] <cl*, archive_expsym_cmds>: Explicitely name the import
library to match the above.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoFixup texi typo in previous.
Peter Rosin [Tue, 7 Sep 2010 09:07:10 +0000 (11:07 +0200)] 
Fixup texi typo in previous.

* doc/libtool.texi (libtool script content) <postlink_cmds>:
Add missing 'code' command.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoConvert POSIX file names to toolchain format for MSVC
Peter Rosin [Tue, 7 Sep 2010 05:04:49 +0000 (07:04 +0200)] 
Convert POSIX file names to toolchain format for MSVC

* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
[cygwin, mingw, pw32, cegcc] <cl*, postlink_cmds>: Make
sure the -outputresource: file name for the manifest tool is
in w32 format.
<cl*, archive_expsym_cmds>: Likewise for the MSVC command file
containing the exports and the output file name.
* libltdl/config/ltmain.m4sh (func_mode_link): Precalculate the
toolchain format of the output_objdir file name and store it in
the tool_output_objdir variable. Also replace any occurrence of
@TOOL_OUTPUT@ in postlink_cmds with the toolchain version of the
@OUTPUT@ content.
* doc/libtool.texi (libtool script content): Update description
of postlink_cmds to mention @TOOL_OUTPUT@.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoUse func_to_tool_file instead of fix_srcfile_path.
Peter Rosin [Mon, 6 Sep 2010 08:40:25 +0000 (10:40 +0200)] 
Use func_to_tool_file instead of fix_srcfile_path.

* libltdl/config/ltmain.m4sh (func_mode_compile): Replace the
fix_srcfile_path hook with a call to func_to_tool_file.
* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [cygwin,mingw,pw32]
[cegcc]: Drop fix_srcfile_path.
* doc/libtool.texi (libtool script contents): Likewise.
* NEWS: Mention that fix_srcfile_path has been replaced.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoConvert file names to toolchain format in $NM and $AR @files.
Peter Rosin [Mon, 6 Sep 2010 08:39:10 +0000 (10:39 +0200)] 
Convert file names to toolchain format in $NM and $AR @files.

* libltdl/config/ltmain.m4sh (func_mode_link): When listing
symbols and when creating archives using command files (or
response files), make sure that both the name of the command
file and the content are made up of file names in a format
appropriate for the tool. Fixes stresstest.at on MSYS when
run with low command line length.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoConvert file names to toolchain format when linking.
Peter Rosin [Mon, 6 Sep 2010 08:38:34 +0000 (10:38 +0200)] 
Convert file names to toolchain format when linking.

* libltdl/config/ltmain.m4sh (func_mode_link): When exporting
symbols and when linking using command files (or response
files), make sure that both the name of the command file and
the content are made up of file names in a format appropriate
for the tool. Fixes problems in stresstest.at on MSYS when run
with low command line length.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoAdd file name conversion from $build to toolchain.
Peter Rosin [Mon, 6 Sep 2010 06:23:52 +0000 (08:23 +0200)] 
Add file name conversion from $build to toolchain.

* configure.ac: Ensure to_tool_file_cmd is available to Makefile.
* libltdl/m4/libtool.m4 (_LT_PATH_CONVERSION_FUNCTIONS): Add
cache variable lt_cv_to_tool_file_cmd that describes how to
convert file names from $build to toolchain format.
* libltdl/config/ltmain.m4sh (func_to_tool_file): New function
that utilizes the above.
* Makefile.am: Ensure to_tool_file_cmd is included in
TEST_ENVIRONMENT so that it is passed to (old testsuite) tests.
* testsuite.at: Ensure to_tool_file_cmd is passed as a variable
setting on the configure line for (new testsuite) tests.
* doc/libtool.texi (libtool script content): Update with
to_tool_file_cmd description.
(Cygwin to MinGW Cross): Update to mention lt_cv_to_tool_file_cmd.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoMerge remote branch 'origin/master'
Ralf Wildenhues [Thu, 2 Sep 2010 19:12:02 +0000 (21:12 +0200)] 
Merge remote branch 'origin/master'

14 years agoMerge branch 'master' into lto
Ralf Wildenhues [Thu, 2 Sep 2010 19:06:43 +0000 (21:06 +0200)] 
Merge branch 'master' into lto

14 years agotests: avoid spurious test failure due to library mode on HP-UX.
Ralf Wildenhues [Thu, 2 Sep 2010 06:18:12 +0000 (08:18 +0200)] 
tests: avoid spurious test failure due to library mode on HP-UX.

* tests/help.at (debug tracing): Use $lt_INSTALL not cp for
install mode, the latter will not overwrite an existing library
with mode 555.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoPath conversion documentation
Charles Wilson [Mon, 30 Aug 2010 06:20:56 +0000 (02:20 -0400)] 
Path conversion documentation

* doc/libtool.texi (Platform quirks): Add new subsections
'Cross compiling' and 'File name conversion'.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agotests: avoid spurious pic_flag test failure on HP-UX 10.20.
Ralf Wildenhues [Wed, 1 Sep 2010 20:24:37 +0000 (22:24 +0200)] 
tests: avoid spurious pic_flag test failure on HP-UX 10.20.

* tests/pic_flag.at (override pic_flag at configure time):
Match HP-UX 10.20 cc warning about unknown options, to skip
the test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agotests: fix localization test for GCC on HP-UX 11.00.
Ralf Wildenhues [Wed, 1 Sep 2010 20:12:13 +0000 (22:12 +0200)] 
tests: fix localization test for GCC on HP-UX 11.00.

* tests/localization.at (localized compiler messages): Be sure
to switch the locale only for the actual compiler commands, so
we don't pick up warnings from helper tools such as diff which
may not have the locale installed.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoAvoid leaking make flags into testsuite results.
Ralf Wildenhues [Wed, 1 Sep 2010 19:30:30 +0000 (21:30 +0200)] 
Avoid leaking make flags into testsuite results.

* tests/defs.m4sh: Unset MFLAGS, MAKEFLAGS, MAKELEVEL, __MKLVL__
and MAKE_JOBS_FIFO.
* tests/testsuite.at: Likewise.
Fixes warnings in test logs when the user uses 'make -jN check'
and inner $MAKE invocations can't connect to the job server.
Fixes spurious failures of configure-iface.at and of
demo-noinst-link tests with BSD and Tru64 make if the user uses
'make -k', as the exit status of the latter is not reliable.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoRemove announce-gen.m4sh and mailnotify.m4sh.
Gary V. Vaughan [Wed, 1 Sep 2010 05:13:47 +0000 (12:13 +0700)] 
Remove announce-gen.m4sh and mailnotify.m4sh.

* libltdl/config/announce-gen.m4sh: Removed.  This script has
no apparent connection to libtool functionality, and mostly
duplicates the better maintained gnulib announce-gen script.
* libltdl/config/mailnotify.sh: Removed. This script was used
by only clcommit.m4sh and announce-gen.m4sh, both of which are
now removed too.
* Makefile.maint (announce-gen, libltdl/config/mailnotify):
Targets removed.
* bootstrap: Remove the mailnotify regeneration warning.
* HACKING (Release Procedure): Remove references to
announce-gen.
(Alpha release note template, Full release note template):
Reinstated from before announce-gen was introduced.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agoRemove clcommit.m4sh.
Gary V. Vaughan [Wed, 1 Sep 2010 03:11:40 +0000 (10:11 +0700)] 
Remove clcommit.m4sh.

* clcommit.m4sh: Removed. This script was written to help keep
ChangeLog and commit messages in sync when committing to CVS,
and is an anachronism now that Libtool uses git.
* Makefile.maint (commit): Target removed.
* bootstrap: Don't generate commit.
* HACKING (Release Procedure): Adjusted.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agoarchive-in-archive.at passes with Microsoft lib.
Peter Rosin [Tue, 31 Aug 2010 18:59:11 +0000 (20:59 +0200)] 
archive-in-archive.at passes with Microsoft lib.

* tests/archive-in-archive.at: Tighten test to check that the desired
object files are indeed part of the archive. Microsoft lib still
passes, so remove the expected failure for that case.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoDump archiver output to the log when testing @file support.
Peter Rosin [Tue, 31 Aug 2010 17:04:22 +0000 (19:04 +0200)] 
Dump archiver output to the log when testing @file support.

* libltdl/m4/libtool.m4 (_LT_PROG_AR): Redirect stdout to config.log
when testing for @file support.
Suggested by Ralf Wildenhues.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoSilence archiver output when testing @file support.
Peter Rosin [Tue, 31 Aug 2010 10:40:01 +0000 (12:40 +0200)] 
Silence archiver output when testing @file support.

* libltdl/m4/libtool.m4 (_LT_PROG_AR): Redirect stdout and stderr
to the bit bucket when testing for @file support.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoRemove double `Generated from foo.m4sh' lines.
Gary V. Vaughan [Tue, 31 Aug 2010 10:54:10 +0000 (17:54 +0700)] 
Remove double `Generated from foo.m4sh' lines.

We now require a modern Autoconf to bootstrap libtool, which
will add the `Generated by ...' boiler-plate automatically,
so we can remove the hand-rolled @configure_input@
substitutions we had been doing:
* clcommit.m4sh, libtoolize.m4sh, tests/defs.sh,
libltdl/config/announce-gen.m4sh, libltdl/config/ltmain.m4sh,
libltdl/config/mailnotify.m4sh: Remove @configure_input@.
* Makefile.am (edit): Remove configure_input substitution.
(libtoolize, libltdl/config/ltmain.sh, libltdl/m4/ltversion.m4)
(tests/defs): Don't set `$input' shell variable.
* Makefile.maint (announce_gen, libltdl/config/mailnotify)
(commit): Likewise.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agoExtract the archive name from the .la file and use $AR (not ar).
Peter Rosin [Tue, 31 Aug 2010 09:48:28 +0000 (11:48 +0200)] 
Extract the archive name from the .la file and use $AR (not ar).

* Makefile.am: Pass AR through to the testsuite.
* tests/archive-in-archive.at: Bump copyright year. Extract archive
name from the .la file instead of hardcoding the name, and allow
different archivers. Also clarify that the tested functionality is
currently broken.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agotests: skip -Wall -Werror with Tru64 cc in cwrapper test.
Ralf Wildenhues [Mon, 30 Aug 2010 21:04:03 +0000 (23:04 +0200)] 
tests: skip -Wall -Werror with Tru64 cc in cwrapper test.

* tests/cwrapper.at (cwrapper for uninstalled executables):
Use a link test rather than a compile test to flesh out unknown
compiler flags starting with -W; Tru64/OSF1 cc will happily
accept `-Wall -Werror' as indication to pass flags on to
subprocesses.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agotests: avoid getopt-m4sh failures when autom4te is not available.
Ralf Wildenhues [Mon, 30 Aug 2010 20:51:02 +0000 (22:51 +0200)] 
tests: avoid getopt-m4sh failures when autom4te is not available.

* tests/getopt-m4sh.at (_LT_AT_GETOPT_M4SH_SETUP):
Check $M4SH --version, skip on failure.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agotests: mark 'syntax of .la files' as XFAIL, expose failure.
Ralf Wildenhues [Mon, 30 Aug 2010 20:42:11 +0000 (22:42 +0200)] 
tests: mark 'syntax of .la files' as XFAIL, expose failure.

* tests/lalib-syntax.at (syntax of .la files): Assert that the
string returned by lt_dlerror after a failure is non-NULL, so
the failure shows up on systems other than Solaris.  Mark test
as expected to fail.
Suggested by Bob Friesenhahn.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoSimplify recent configure quoting portability workaround.
Eric Blake [Mon, 30 Aug 2010 19:32:35 +0000 (21:32 +0200)] 
Simplify recent configure quoting portability workaround.

* configure.ac: Simplify setting of timestamp_string.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoUpdate path conversion warning messages
Charles Wilson [Mon, 30 Aug 2010 06:04:33 +0000 (02:04 -0400)] 
Update path conversion warning messages

* libltdl/config/ltmain.m4sh (func_convert_file_check): Update
comments and warning message.
(func_convert_path_check): Update warning message.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agoFix typo when renaming path conversion functions.
Peter Rosin [Sun, 29 Aug 2010 16:17:45 +0000 (18:17 +0200)] 
Fix typo when renaming path conversion functions.

* tests/testsuite.at: Ensure to_host_file_cmd is passed as a
variable setting on the configure line for (new testsuite) tests.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
14 years agoSupport GCC LTO on GNU/Linux.
Ralf Wildenhues [Sun, 29 Aug 2010 15:31:29 +0000 (17:31 +0200)] 
Support GCC LTO on GNU/Linux.

* libltdl/config/ltmain.m4sh (func_mode_link): Allow through
flags matching -O*, -flto*, -fwhopr, -fuse-linker-plugin.
* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Drop symbols
starting with __gnu_lto.
(_LT_LINKER_SHLIBS) [linux] <archive_cmds, archive_expsyms_cmds>:
Add $pic_flag for GCC.
(_LT_LANG_CXX_CONFIG) [linux] <archive_cmds, archive_expsyms_cmds>:
Likewise.
(_LT_SYS_HIDDEN_LIBDEPS): Ignore files matching *.lto.o.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoDisable GCC LTO for verbose library extraction.
Ralf Wildenhues [Sun, 29 Aug 2010 15:30:19 +0000 (17:30 +0200)] 
Disable GCC LTO for verbose library extraction.

* libltdl/m4/libtool.m4 (_LT_SYS_HIDDEN_LIBDEPS): Temporarily
append -fno-lto or -fno-whopr to CFLAGS if CC or CFLAGS (which
are substituted with the per-language variables here) contain
-flto or match -fwhopr*, respectively.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>