]> git.ipfire.org Git - thirdparty/libtool.git/log
thirdparty/libtool.git
13 years agomaint: don't run help2man on programs not-yet-built. libtool-next
Gary V. Vaughan [Fri, 24 Sep 2010 21:18:04 +0000 (04:18 +0700)] 
maint: don't run help2man on programs not-yet-built.

* Makefile.am (doc/libtool.1, doc/libtoolize.1): Added a
comment about why the dependencies here have to be a mite
bizarre.
(distcheck): Added a workaround for the bug described.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
13 years agotests: remove unused `aux_dir' variable from `getopt-m4sh.test'.
Gary V. Vaughan [Sun, 26 Sep 2010 11:25:36 +0000 (18:25 +0700)] 
tests: remove unused `aux_dir' variable from `getopt-m4sh.test'.

* tests/getopt-m4sh.at (aux_dir): Remove unused variable.

13 years agotests: DRYing out `tests/sh.test'.
Gary V. Vaughan [Sun, 26 Sep 2010 11:19:18 +0000 (18:19 +0700)] 
tests: DRYing out `tests/sh.test'.

* Makefile.am (libtool_m4): Canonical location of libtool.m4 file.
(lt_aclocal_m4_deps): Use it.
(check_scripts): New variable for list of scripts to be checked
by `tests/sh.test'.
(legacy_tests_edit): New sed script to substitute `libtool_m4'
and `check_scripts' into `tests/defs'.
(tests/defs.in): Use it.
* tests/defs.m4sh (scripts): Calculate absolute paths of each
entry in `check_scripts' before changing directories.
(libtool_m4): Save location of `libtool.m4'.
(macro_dir, aux_dir): Removed. No longer required by any test.
* tests/sh.test: Remove loop around just `$macro_dir/libtool.m4'
in favour of a single reference to `$libtool_m4' from above.

13 years agomaint: pass directory declarations in configure.ac into Makefile.
Gary V. Vaughan [Fri, 24 Sep 2010 21:01:56 +0000 (04:01 +0700)] 
maint: pass directory declarations in configure.ac into Makefile.

* configure.ac (AC_CONFIG_AUX_DIR, LT_CONFIG_LTDL_DIR)
(AC_CONFIG_MACRO_DIR): Append code to these functions to
capture and propagate their directory arguments to Makefile.
* Makefile.am (aux_dir, ltdl_dir, macro_dir): Remove declarations.
* bootstrap (my_sed_trace): Also capture LT_CONFIG_LTDL_DIR into
`$ltdl_dir'.
<Makefile>: Output the extracted values of `aux_dir', `ltdl_dir'
and `macro_dir' at the top of the quick'n'dirty bootstrap
Makefile.

14 years agomaint: factor out ltmain.sh variable deletion.
Gary V. Vaughan [Sun, 26 Sep 2010 09:21:10 +0000 (16:21 +0700)] 
maint: factor out ltmain.sh variable deletion.

* Makefile.am (ltmain_sh_edit): Expand upon bootstrap edit by
adding the extra line to delete boilerplate variable settings
from libltdl/config/general.m4sh that don't apply here.
(libltdl/config/ltmain.sh): Use it.

14 years agomaint: DRYing out `Makefile.am' file paths.
Gary V. Vaughan [Fri, 24 Sep 2010 20:40:27 +0000 (03:40 +0700)] 
maint: DRYing out `Makefile.am' file paths.

* Makefile.am (aux_dir, macro_dir): Include `$(srcdir)' in
declaration. Adjust all references.
(doc_dir, ltdl_dir, m4sh_dir, tests_dir): New single location
to hold directory paths, all including `$(srcdir)', to reduce
typing.
(LT_M4SH): Use `$m4sh_dir' as include directory.
(defs): This one is for a file in the build-tree, so no
leading `$(srcdir)'.

14 years agoCLEANUP: fix error from pushing too far up the branch.
Gary V. Vaughan [Fri, 24 Sep 2010 20:25:48 +0000 (03:25 +0700)] 
CLEANUP: fix error from pushing too far up the branch.

* Makefile.am (install-data-local): Undo character transposition
from too early push of untested v2.4-17-gaf74d58.
* ChangeLog (2010-09-16): Remove spurious entry.

14 years agomaint: use macro_dir consistently in all files.
Gary V. Vaughan [Fri, 24 Sep 2010 14:12:18 +0000 (21:12 +0700)] 
maint: use macro_dir consistently in all files.

* Makefile.am: Replace all uses of m4dir with macrodir to
match AC_CONFIG_MACRO_DIR.
* libltdl/config/libtoolize.m4sh: Replace all uses of macrodir
with macro_dir.
* tests/defs.m4sh, tests/sh.test: Likewise.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agomaint: use aux_dir consistently in all files.
Gary V. Vaughan [Fri, 24 Sep 2010 14:10:19 +0000 (21:10 +0700)] 
maint: use aux_dir consistently in all files.

* Makefile.am, Makefile.maint: Replace all uses of auxdir
with aux_dir to match AC_CONFIG_AUX_DIR.
* libltdl/config/libtoolize.m4sh: Likewise.
* tests/defs.m4sh, tests/getopt-m4sh.at: Likewise.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agoMakefile: try to be robust against shell meta-chars in filenames.
Gary V. Vaughan [Fri, 24 Sep 2010 13:58:39 +0000 (20:58 +0700)] 
Makefile: try to be robust against shell meta-chars in filenames.

* Makefile.am: In each rule body, unless a make variable needs
to be seen as multiple words by the shell (for word-splitting
loops, or because it contains several commands), quote it. Use
single quotes unless the shell needs to perform variable inter-
polation, in which case use double quotes.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agomaint: let make employ user's `SED' setting.
Gary V. Vaughan [Fri, 24 Sep 2010 13:26:36 +0000 (20:26 +0700)] 
maint: let make employ user's `SED' setting.

* Makefile.am: Replace hard-coded `sed' with `$(SED)' through-
out.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agomaint: simplify and improve safety of bootstrap process.
Gary V. Vaughan [Thu, 2 Sep 2010 09:44:32 +0000 (16:44 +0700)] 
maint: simplify and improve safety of bootstrap process.

* Makefile.am (bootstrap_files): List files that need to be
generated at bootstrap time before `./configure && make' can
work.  It turns out that this is considerably fewer files than we
had thought necessary previously.
(bootstrap-deps-prep): Ensure minimum set of required substitution
variables are non-empty.
(bootstrap-deps): Depend on `bootstrap' files.
* bootstrap (Generate bootstrap dependencies): Now that
`Makefile.am' is entirely responsible for rebuilding files at
bootstrap time, we need only specify the new `bootstrap-deps'
target, and supply values for the substitutions checked by
`bootstrap-deps-prep'.
* configure.ac (AC_CONFIG_SRCDIR): `libtoolize.in' is not here yet
right after running `bootstrap'.  So rely on the presence of
`libltdl/config/libtoolize.m4sh', which is always there.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agobuild: eliminate superfluous temporary files from `Makefile.am'.
Gary V. Vaughan [Thu, 23 Sep 2010 12:53:48 +0000 (19:53 +0700)] 
build: eliminate superfluous temporary files from `Makefile.am'.

* Makefile.am (CLEANFILES): Remove temporary file entries.
(libtoolize.in, libltdl/config/ltmain.sh, libltdl/m4/ltversion.m4)
(tests/defs, tests/testsuite): Factor away temporary files.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agobuild: eliminate `ltmain.in' and `libtoolize.in' intermediate files.
Gary V. Vaughan [Thu, 23 Sep 2010 12:42:30 +0000 (19:42 +0700)] 
build: eliminate `ltmain.in' and `libtoolize.in' intermediate files.

* Makefile.am (libltdl/config/ltmain.sh, libtoolize.in): Pipe
the output of `$(LT_M4SH)' directly into `$(bootstrap_edit)' to
avoid use of superfluous intermediate file.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agobuild: don't hardcode repeated long paths in Makefile rules.
Gary V. Vaughan [Thu, 23 Sep 2010 12:31:10 +0000 (19:31 +0700)] 
build: don't hardcode repeated long paths in Makefile rules.

According to the DRY principle, scattering several copies of
something across a file or project leads to pain.  Let's not
do that!
* Makefile.am (Makefile_in, Makefile_inc, defs_in, defs_m4sh),
(libtoolize_in, ltmain_m4sh, ltversion_in): New variables to
hold the location of important files and targets.
(EXTRA_DIST): Add the distributed ones by variable.
(libtoolize, libltdl/Makefile.am, libltdl/m4/ltversion.m4)
(libltdl/config/ltmain.sh, libltdl/stamp-mk, tests/defs)
(tests/defs.in): Use the new variables to reduce noise and
repetition.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agobuild: make better use of automatic variables in `Makefile.am'.
Gary V. Vaughan [Thu, 23 Sep 2010 11:30:36 +0000 (18:30 +0700)] 
build: make better use of automatic variables in `Makefile.am'.

* Makefile.am (libtoolize, libtoolize.in, libltdl/Makefile.am)
(libltdl/config/mkstamp, libltdl/config/ltmain.m4sh)
(libltdl/m4/ltversion.m4, tests/testsuite, tests/defs.in):
Make better use of automatic variables.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agobuild: name temporary files in `Makefile.am' consistently.
Gary V. Vaughan [Thu, 23 Sep 2010 11:44:16 +0000 (18:44 +0700)] 
build: name temporary files in `Makefile.am' consistently.

Sadly, we still have to jump through hoops for MICROS~1's very
old, very broken 8.3 naming convention, so we have to be careful
to be unique in the first 8 letters, and not to use two periods
in a filename, otherwise we could use the much more elegent
`temporary files use "$@T"' idiom:
* Makefile.am (libltdl/m4/ltversion.m4): Rename temporary file
to `ltversion.tmp'.
(libltdl/config/ltmain.sh): Rename temporary file to
`libltdl/config/ltmain.tmp'.
(libtoolize): Rename temporary file to `libtoolize.tmp'.
(tests/defs): Rename temporary file to `tests/defs.tmp'
(tests/testsuite): Rename temporary file to `tests/testsuite.tmp'.
(CLEANFILES): Append temporary files as we create rules that
use them.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agobuild: factor Makefile.am `m4sh' invocations to LT_M4SH.
Gary V. Vaughan [Thu, 23 Sep 2010 11:06:09 +0000 (18:06 +0700)] 
build: factor Makefile.am `m4sh' invocations to LT_M4SH.

* Makefile.am (LT_M4SH): Now that all directories are listed as
fully qualified paths, the search path argument to M4SH is always
the same, so factor it out into a variable.  Adjust all callers.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agobuild: avoid unnecessary directory changes in Makefile rules.
Gary V. Vaughan [Thu, 23 Sep 2010 11:02:12 +0000 (18:02 +0700)] 
build: avoid unnecessary directory changes in Makefile rules.

* Makefile.am (doc/notes.txt, libltdl/m4/ltversion.m4,
(libltdl/config/ltmain.m4sh, libtoolize.in, libltdl/Makefile.am)
(libltdl/config/mkstamp, tests/testsuite, tests/defs.in): Avoid
unnecessary `cd' commands by using fully qualified paths to files
outside of current directory.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
14 years agobuild: compare `revision' rather than `correctver' in Makefile.am.
Gary V. Vaughan [Thu, 23 Sep 2010 10:37:00 +0000 (17:37 +0700)] 
build: compare `revision' rather than `correctver' in Makefile.am.

* Makefile.am (rebuild): Set the shell variable `revision' rather
than `correctver' for clarity of purpose.
(bootstrap_edit, libltdl/config/ltmain.sh): Adjust.
(libltdl/m4/ltversion.m4): Likewise, and alse, instead of munging
the serial number comment line with set, extract `macro_version'
from this file, and compare it directly with `revision'.
(libtool): Likewise for `package_revision'.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
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>