]> git.ipfire.org Git - thirdparty/libtool.git/log
thirdparty/libtool.git
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>
14 years agoSave and restore CFLAGS properly inside libtool.m4 macros.
Ralf Wildenhues [Sun, 29 Aug 2010 15:28:29 +0000 (17:28 +0200)] 
Save and restore CFLAGS properly inside libtool.m4 macros.

* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Use different
temporary variables for saved and restored values of $LIBS,
$CFLAGS, to avoid overlap with the *_CONFIG macros.
(_LT_LANG_CXX_CONFIG, _LT_LANG_F77_CONFIG, _LT_LANG_FC_CONFIG)
(_LT_LANG_GCJ_CONFIG, _LT_LANG_RC_CONFIG): Also save and restore
$CFLAGS, and override it with per-language flags, so that in
case output_verbose_link_cmd uses $CFLAGS, the right flags are
used.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoWork around yet another shell quoting portability issue.
Ralf Wildenhues [Sun, 29 Aug 2010 14:54:33 +0000 (16:54 +0200)] 
Work around yet another shell quoting portability issue.

* configure.ac: Avoid nonportable quoted alternate variable
value in unquoted here document, so Solaris 10 sh and Tru64
ksh do not print spurious extra quotes.

14 years agoMerge branch 'parallel-tests'
Ralf Wildenhues [Sun, 29 Aug 2010 07:12:28 +0000 (09:12 +0200)] 
Merge branch 'parallel-tests'

* parallel-tests:
  Silence order-only configure test for AIX make.

14 years agoSilence order-only configure test for AIX make. parallel-tests
Ralf Wildenhues [Sun, 29 Aug 2010 07:00:53 +0000 (09:00 +0200)] 
Silence order-only configure test for AIX make.

* configure.ac: Also drop standard output, for AIX 5.1 make.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoMerge branch 'sysroot'
Charles Wilson [Sun, 29 Aug 2010 00:16:02 +0000 (20:16 -0400)] 
Merge branch 'sysroot'

* sysroot:
  Minor sysroot fixups.

14 years agoMinor sysroot fixups. sysroot
Charles Wilson [Sat, 28 Aug 2010 22:27:15 +0000 (18:27 -0400)] 
Minor sysroot fixups.

* libltdl/m4/libtool.m4 (_LT_WITH_SYSROOT): Fix typo.
* tests/sysroot.at: Search also for crt0.o to accommodate cygwin.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agoMerge remote branch 'origin/master'
Charles Wilson [Sat, 28 Aug 2010 21:41:32 +0000 (17:41 -0400)] 
Merge remote branch 'origin/master'

14 years agoFix symlist variable path to use _WIN32 instead of __WINDOWS__.
Ralf Wildenhues [Sat, 28 Aug 2010 15:30:01 +0000 (17:30 +0200)] 
Fix symlist variable path to use _WIN32 instead of __WINDOWS__.

* libltdl/config/ltmain.m4sh, libltdl/libltdl/lt_system.h,
libltdl/m4/libtool.m4, tests/demo/foo.h, tests/pdemo/foo.h:
Change __WINDOWS__ to _WIN32.
Report by Charles Wilson.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoAdd $pic_flag to archive_cmds and archive_expsym_cmds.
Ralf Wildenhues [Sun, 4 Apr 2010 08:57:04 +0000 (10:57 +0200)] 
Add $pic_flag to archive_cmds and archive_expsym_cmds.

* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS)
<archive_cmds, archive_expsym_cmds>
[GNU ld, netbsd]: Add $pic_flag if ELF.
[GNU ld, solaris]: Likewise.
[GNU ld, default case]: Likewise.
[!GNU ld, freebsd, dragonfly]: Add $pic_flag.
[!GNU ld, GCC, hpux9]: Add $pic_flag.
[!GNU ld, GCC, hpux10]: Replace -fPIC with $pic_flag
[!GNU ld, GCC, hpux11, !hppa*64]: Replace -fPIC with $pic_flag.
[!GNU ld, GCC, irix5, irix6, nonstopux]: Add $pic_flag.
[!GNU ld, GCC, osf4, osf5]: Likewise.
[!GNU ld, GCC, solaris]: Likewise.
(_LT_LANG_CXX_CONFIG) <archive_cmds, archive_expsym_cmds>
[hpux9]: Add $pic_flag if $GXX.
[hpux10, hpux11, !hppa*64]: Replace -fPIC with $pic_flag.
[irix5, irix6]: Add $pic_flag if $GXX.
[osf4, osf5]: Likewise.
[solaris]: Add $pic_flag if $GXX and not GCC 2.7.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoUniform const'ness of symlist variable lt_preloaded_symbols.
Ralf Wildenhues [Sun, 4 Apr 2010 08:56:47 +0000 (10:56 +0200)] 
Uniform const'ness of symlist variable lt_preloaded_symbols.

On some systems, lt_preloaded_symbols may not be declared
const due to relocation issues.  C99 requires qualification to
match for compatible declarations, so ensure we declare
const'ness in the same way everywhere; link-time optimization
may otherwise rightfully complain about inconsistencies.
Since ltdl.h may not depend upon config.h, rely on system
defines for choosing const'ness.

* NEWS: Update.
* doc/libtool.texi (Dlpreopening): Document this issue.
* libltdl/config/ltmain.m4sh (func_generate_dlsyms):
[__WINDOWS__, __CYGWIN__, _WIN32_WCE]: Define LT_DLSYM_CONST
according to system defines.  Remove old shell cruft.  Use
LT_DLSYM_CONST for lt_${my_prefix}_LTX_preloaded_symbols.
* libltdl/libltdl/lt_system.h (LT_DLSYM_CONST): Likewise,
define LT_DLSYM_CONST according to system defines.
* tests/demo/foo.h (LT_DLSYM_CONST): Likewise.
* tests/pdemo/foo.h (LT_DLSYM_CONST): Likewise.
* tests/demo/dlmain.c (lt_dlsymlist): Use LT_DLSYM_CONST.
* tests/pdemo/longer_file_name_dlmain.c (lt_dlsymlist):
Likewise.
* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Likewise
for configure test code.
* libltdl/ltdl.c (preloaded_symbols): Use LT_DLSYM_CONST.
* libltdl/ltdl.h (LTDL_SET_PRELOADED_SYMBOLS): Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoEnsure cwrapper magic string is not optimized away.
Dave Korn [Sat, 28 Aug 2010 12:43:02 +0000 (14:43 +0200)] 
Ensure cwrapper magic string is not optimized away.

* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src):
Declare MAGIC_EXE as volatile.
Report by Charles Wilson.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix quoting in non-XSI func_xform, for IRIX sh.
Ralf Wildenhues [Sat, 28 Aug 2010 12:17:20 +0000 (14:17 +0200)] 
Fix quoting in non-XSI func_xform, for IRIX sh.

* libltdl/config/ltmain.m4sh (func_xform): Remove spurious extra
M4 quotes.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix response file test for unreliable exit status of IRIX ar.
Ralf Wildenhues [Sat, 28 Aug 2010 10:22:36 +0000 (12:22 +0200)] 
Fix response file test for unreliable exit status of IRIX ar.

* libltdl/m4/libtool.m4 (_LT_PROG_AR): IRIX ar will not fail
over a command-line argument specifying a nonexistent file (such
as `@FILE'), so ensure failure with a reponse file containing
a nonexistent file.  Also, use lt_* variable prefix for
temporary variables.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix AC_LANG_PROGRAM warnings from git Autoconf.
Ralf Wildenhues [Sat, 28 Aug 2010 09:34:24 +0000 (11:34 +0200)] 
Fix AC_LANG_PROGRAM warnings from git Autoconf.

* libltdl/m4/libtool.m4 (_LT_SYS_MODULE_PATH_AIX): Fix
underquoted AC_LANG_PROGRAM call.
(LT_PROG_AR): Use AC_LANG_PROGRAM.
(_LT_LINKER_SHLIBS) [irix, GCC]: Use the right source for the
given language.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoMerge branch 'sysroot'
Ralf Wildenhues [Sat, 28 Aug 2010 08:39:40 +0000 (10:39 +0200)] 
Merge branch 'sysroot'

* sysroot:
  Add ChangeLog entries for the sysroot branch.
  fix AIX testsuite regression
  fix --mode=finish
  improve code for sysroot --mode=finish
  add libtool --mode=finish mode for sysroot
  reorganize parsing of --mode=finish arguments
  fix sysroot handling for deplibs of preopened libtool libs
  fix sysroot tests to pass on Fedora 13
  initial version of the NEWS entry
  add sysroot test
  emit sysrooted paths when installing .la files
  process postdeps to include sysrooted paths
  handle sysrooted paths when reading dependencies to la files
  teach libtool -L= and -R=
  add --with-sysroot
  handle sysroot flags

14 years agoMerge branch 'parallel-tests'
Ralf Wildenhues [Sat, 28 Aug 2010 08:24:33 +0000 (10:24 +0200)] 
Merge branch 'parallel-tests'

* parallel-tests:
  Fix NEWS entry for bootstrapping requirements.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix NEWS entry for bootstrapping requirements.
Ralf Wildenhues [Fri, 27 Aug 2010 17:34:57 +0000 (19:34 +0200)] 
Fix NEWS entry for bootstrapping requirements.

* NEWS: Only bootstrapping needs new Automake and Autoconf.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoAdd ChangeLog entries for the sysroot branch.
Ralf Wildenhues [Sat, 28 Aug 2010 08:16:50 +0000 (10:16 +0200)] 
Add ChangeLog entries for the sysroot branch.

14 years ago[cygwin|mingw|cross-compile]: Path conversion support.
Charles Wilson [Mon, 19 Jul 2010 01:07:01 +0000 (21:07 -0400)] 
[cygwin|mingw|cross-compile]: Path conversion support.

* configure.ac: Ensure to_host_file_cmd is available to Makefile.
* TODO: Document QoI issue with file name conversion functions.
* libltdl/m4/libtool.m4 (_LT_PATH_CONVERSION_FUNCTIONS): New function
sets libtool variable $to_host_file_cmd, and employs cache.
(_LT_SETUP): Require it.
* tests/testsuite.at: Ensure to_host_file_cmd is passed as a
variable setting on the configure line for (new testsuite) tests.
* Makefile.am (TESTS_ENVIRONMENT): Ensure to_host_file_cmd is
included so that it is passed to (old testsuite) tests.
* libltdl/config/general.m4sh: Define $lt_sed_naive_backslashify here.
* libltdl/config/ltmain.m4sh ($to_host_file_cmd, $to_host_path_cmd):
New variables.
(func_cygpath): New function.
(func_init_to_host_path_cmd): New function.
(func_to_host_path): Renamed to...
(func_to_host_file): Refactored to... (now uses $to_host_file_cmd).
(func_convert_core_file_wine_to_w32): Here. New function.
(func_convert_core_msys_to_w32): Here. New function.
(func_convert_file_check): Here. New function.
(func_convert_file_noop): Here. New function.
(func_convert_file_msys_to_w32): Here. New function.
(func_convert_file_cygwin_to_w32): Here. New function.
(func_convert_file_nix_to_w32): Here. New function.
(func_convert_file_msys_to_cygwin): New function.
(func_convert_file_nix_to_cygwin): New function.
(func_to_host_pathlist): Renamed to...
(func_to_host_path): Refactored to... (now uses $to_host_path_cmd
and func_init_to_host_path_cmd).
(func_convert_path_check): Here. New function.
(func_convert_path_front_back_pathsep): Here. New function.
(func_convert_core_path_wine_to_w32): Here. New function.
(func_convert_path_noop): Here. New function.
(func_convert_path_msys_to_w32): Here. New function.
(func_convert_path_cygwin_to_w32): Here. New function.
(func_convert_path_nix_to_w32): Here. New function.
(func_convert_path_msys_to_cygwin): New function.
(func_convert_path_nix_to_cygwin): New function.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agoMerge branch 'parallel-tests'
Ralf Wildenhues [Fri, 27 Aug 2010 05:31:49 +0000 (07:31 +0200)] 
Merge branch 'parallel-tests'

* parallel-tests:
  check-interactive and check-noninteractive for both testsuites.
  Adjust docs for renaming and for parallel-tests.
  Update VERBOSE handling for parallel-tests driver.
  Enable parallel-tests test driver for the old testsuite.
  New alias scripts for old tests run more than once.
  Require Automake 1.11.1 for Libtool, enable color-tests.

14 years agoFix syntax for cygwin-cross
Charles Wilson [Mon, 23 Aug 2010 05:18:18 +0000 (01:18 -0400)] 
Fix syntax for cygwin-cross

libltdl/m4/argz.m4: Add quotes around variable, which
may contain the multiword value 'guessing no'.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
14 years agoconfigure: use Autobuild AB_INIT if available.
Ralf Wildenhues [Sun, 22 Aug 2010 18:33:49 +0000 (20:33 +0200)] 
configure: use Autobuild AB_INIT if available.

* configure.ac: Call AB_INIT if it is defined, with
$autobuild_mode as argument, to be set at configure time.
Set AB_VERSION to the Libtool version string.
* HACKING: Update.
* libltdl/m4/.gitignore: Ignore autobuild.m4.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoFix getopt tests to skip with Autoconf < 2.61.
Ralf Wildenhues [Sat, 21 Aug 2010 04:56:37 +0000 (06:56 +0200)] 
Fix getopt tests to skip with Autoconf < 2.61.

* tests/getopt-m4sh.at (_LT_AT_GETOPT_M4SH_SETUP): Skip the test
if 'autom4te --language=m4sh' exits 63 because version 2.61 is
required.  Allows the testsuite to complete successfully with
Autoconf 2.59 and Automake 1.9.6.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agocheck-interactive and check-noninteractive for both testsuites.
Ralf Wildenhues [Sun, 22 Aug 2010 04:32:39 +0000 (06:32 +0200)] 
check-interactive and check-noninteractive for both testsuites.

* Makefile.am (COMMON_TESTS, TESTS): Split into ...
(NONINTERACTIVE_TESTS, INTERACTIVE_TESTS): ... these new
variables.
(check-interactive-new): Rename from check-interactive.
(check-noninteractive-new): Rename from check-noninteractive.
(check-interactive-old, check-noninteractive-old): New targets.
(check-interactive, check-noninteractive): Depend on the
respective targets for the old and the new test suites.
* doc/libtool.texi (Test descriptions): Simplify description
about check-interactive and check-noninteractive.  Add index
entries.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoAdjust docs for renaming and for parallel-tests.
Ralf Wildenhues [Sun, 22 Aug 2010 04:31:27 +0000 (06:31 +0200)] 
Adjust docs for renaming and for parallel-tests.

* README: Update example TESTS setting.
* README.alpha: Likewise.
* NEWS: Update.
* doc/libtool.texi (Test descriptions): Update for test renaming,
adjust descriptions accordingly.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoTidy and fix clean and distclean rules for old testsuite.
Ralf Wildenhues [Sun, 22 Aug 2010 04:14:06 +0000 (06:14 +0200)] 
Tidy and fix clean and distclean rules for old testsuite.

* Makefile.am (clean-local-legacy): Use $(CONF_SUBDIRS) instead
of hard-coding the list of test directories.  Use
$(AM_MAKEFLAGS).
(fake-distclean-legacy): New phony rule, to create fake Makefile
files if needed so that the automake-generated
distclean-recursive rule can work properly.
(distclean_recursive): New helper variable.
(distclean-recursive): Depend on fake-distclean-legacy.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoMerge branch 'master' into sysroot
Paolo Bonzini [Sun, 22 Aug 2010 07:54:55 +0000 (09:54 +0200)] 
Merge branch 'master' into sysroot

14 years agoFix sed_make_literal_regex.
Paolo Bonzini [Sun, 15 Aug 2010 17:04:08 +0000 (19:04 +0200)] 
Fix sed_make_literal_regex.

* libltdl/config/general.m4sh (sed_make_literal_regex): Fix
definition.

14 years agofix AIX testsuite regression
Ralf Wildenhues [Sun, 22 Aug 2010 07:42:51 +0000 (09:42 +0200)] 
fix AIX testsuite regression

* libltdl/config/ltmain.m4sh (func_resolve_sysroot): Partly
revert v2.2.10-83-gc45a288: Do not absolutize path here, only do
sysroot replacement.
(func_mode_link): Adjust.

14 years agoMerge remote branch 'origin/master' into sysroot
Paolo Bonzini [Sun, 22 Aug 2010 07:29:24 +0000 (09:29 +0200)] 
Merge remote branch 'origin/master' into sysroot

* libltdl/config/ltmain.m4sh (func_mode_finish): Use sed_make_literal_regex.

14 years agofix --mode=finish
Charles Wilson [Sun, 22 Aug 2010 07:39:21 +0000 (09:39 +0200)] 
fix --mode=finish

* libltdl/config/ltmain.m4sh (func_mode_finish): Invert then/else
blocks of the "if $opt_dry_run" conditional.

14 years agoFactor the sed command used to make a regex from a literal.
Paolo Bonzini [Sun, 15 Aug 2010 17:04:08 +0000 (19:04 +0200)] 
Factor the sed command used to make a regex from a literal.

* libltdl/config/general.m4sh (sed_make_literal_regex): New.
* libltdl/config/ltmain.m4sh (func_generate_dlsyms,
func_cygming_dll_for_implib_fallback_core): Use it.  Suggested
by Ralf Wildenhues.

14 years agoUpdate VERBOSE handling for parallel-tests driver.
Ralf Wildenhues [Sun, 22 Aug 2010 04:30:25 +0000 (06:30 +0200)] 
Update VERBOSE handling for parallel-tests driver.

* tests/defs.m4sh: Default to verbose output, drop now-unneeded
handling of 'VERBOSE=no'.
* README: Update example usage.
* README.alpha: Likewise.
* doc/libtool.texi (Test descriptions, When tests fail): Remove
unneeded VERBOSE recommendations.  Point to per-test log files
and test-suite.log summary file.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoEnable parallel-tests test driver for the old testsuite.
Ralf Wildenhues [Sun, 22 Aug 2010 04:29:41 +0000 (06:29 +0200)] 
Enable parallel-tests test driver for the old testsuite.

* configure.ac: New configure test to find out whether `make'
supports order-only prerequisites; set @ORDER@ accordingly.
(AM_INIT_AUTOMAKE): Enable parallel-tests option.
* tests/defs.m4sh (prefix): Derive install prefix for tests
from the test name, to avoid clashes.
* Makefile.am (CXX_TESTS, F77_TESTS, FC_TESTS, COMMON_TESTS):
Reformat.  Adjust for renamed tests.  Add dependencies between
the respective log files of the tests, to ensure proper ordering.
Use order-only dependencies if possible, between test groups that
use the same directory.
(clean-local-legacy): Remove `_inst-*' directories as well.
Prompted by suggestion from Bob Friesenhahn.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoNew alias scripts for old tests run more than once.
Ralf Wildenhues [Sun, 22 Aug 2010 04:28:30 +0000 (06:28 +0200)] 
New alias scripts for old tests run more than once.

* tests/cdemo-shared-exec.test, tests/cdemo-shared-make.test,
tests/cdemo-static-exec.test, tests/cdemo-static-make.test,
tests/cdemo-undef-exec.test, tests/cdemo-undef-make.test,
tests/demo-nofast-exec.test, tests/demo-nofast-inst.test,
tests/demo-nofast-make.test, tests/demo-nofast-unst.test,
tests/demo-nopic-exec.test, tests/demo-nopic-make.test,
tests/demo-pic-exec.test, tests/demo-pic-make.test,
tests/demo-shared-exec.test, tests/demo-shared-inst.test,
tests/demo-shared-make.test, tests/demo-shared-unst.test,
tests/demo-static-exec.test, tests/demo-static-inst.test,
tests/demo-static-make.test, tests/demo-static-unst.test,
tests/depdemo-nofast-exec.test, tests/depdemo-nofast-inst.test,
tests/depdemo-nofast-make.test, tests/depdemo-nofast-unst.test,
tests/depdemo-shared-exec.test, tests/depdemo-shared-inst.test,
tests/depdemo-shared-make.test, tests/depdemo-shared-unst.test,
tests/depdemo-static-exec.test, tests/depdemo-static-inst.test,
tests/depdemo-static-make.test, tests/depdemo-static-unst.test,
tests/f77demo-shared-exec.test, tests/f77demo-shared-make.test,
tests/f77demo-static-exec.test, tests/f77demo-static-make.test,
tests/fcdemo-shared-exec.test, tests/fcdemo-shared-make.test,
tests/fcdemo-static-exec.test, tests/fcdemo-static-make.test,
tests/mdemo-shared-exec.test, tests/mdemo-shared-inst.test,
tests/mdemo-shared-make.test, tests/mdemo-shared-unst.test,
tests/mdemo-static-exec.test, tests/mdemo-static-inst.test,
tests/mdemo-static-make.test, tests/mdemo-static-unst.test,
tests/tagdemo-shared-exec.test, tests/tagdemo-shared-make.test,
tests/tagdemo-static-exec.test, tests/tagdemo-static-make.test,
tests/tagdemo-undef-exec.test, tests/tagdemo-undef-make.test:
New files.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoRequire Automake 1.11.1 for Libtool, enable color-tests.
Ralf Wildenhues [Sun, 22 Aug 2010 04:26:50 +0000 (06:26 +0200)] 
Require Automake 1.11.1 for Libtool, enable color-tests.

* configure.ac (AM_INIT_AUTOMAKE): Require 1.11.1.  Enable
color-tests.
(LTDL_SUBDIR_LIBOBJS): Remove now-obsolete conditional and
feature test for Autoconf 2.59 and Automake 1.9.x workaround.
* Makefile.am: Simplify accordingly.
* bootstrap: Remove obsolete WORKING_LIBOBJ_SUPPORT workarounds
for Autoconf 2.59 and Automake 1.9.6.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoAvoid issues with AIX resident shared libraries in old testsuite.
Rainer Tammer [Sat, 21 Aug 2010 08:02:29 +0000 (10:02 +0200)] 
Avoid issues with AIX resident shared libraries in old testsuite.

* tests/defs.m4sh [aix]: Remove file mode permission for others,
so shared libraries are not kept in memory after execution.
Fixes failures of repeated mdemo-inst.test with on AIX 5.3.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoSkip part of versioning test on AIX.
Ralf Wildenhues [Fri, 6 Aug 2010 22:23:22 +0000 (00:23 +0200)] 
Skip part of versioning test on AIX.

* tests/versioning.at (versioning): The AIX linker always
records the unversioned library name, even with runtimelinking,
so skip the execution test for the incompatibly upgraded
library.
Report by Rainer Tammer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoRemove dead code from versioning test.
Ralf Wildenhues [Fri, 6 Aug 2010 21:45:23 +0000 (23:45 +0200)] 
Remove dead code from versioning test.

* tests/versioning.at (versioning): No need to build unused
prog3.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoDon't hide the table of contents in the manual.
Ralf Wildenhues [Fri, 20 Aug 2010 05:02:46 +0000 (07:02 +0200)] 
Don't hide the table of contents in the manual.

* doc/libtool.texi: Move the table of contents to the beginning.
Prompted by patch from Bruno Haible against Automake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoRemove superfluous dependency in Makefile.am.
Ralf Wildenhues [Fri, 20 Aug 2010 05:06:58 +0000 (07:06 +0200)] 
Remove superfluous dependency in Makefile.am.

* Makefile.am (tests/demo-conf.test): Remove dependency on
libtool, this test is a primary source and not generated.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoBump copyright years in manual.
Ralf Wildenhues [Fri, 20 Aug 2010 05:01:20 +0000 (07:01 +0200)] 
Bump copyright years in manual.

* doc/libtool.texi: Bump copyright years.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14 years agoimprove code for sysroot --mode=finish
Paolo Bonzini [Sun, 15 Aug 2010 16:54:02 +0000 (18:54 +0200)] 
improve code for sysroot --mode=finish

* libltdl/config/ltmain.m4sh (func_mode_finish): Change sysroot_regex
and sysroot_cmd delimiter from pipe to slash.  Wrap the entire for
loop with "if $opt_dry_run...fi" and print an explanatory message
for the --dry-run case.

14 years agoadd libtool --mode=finish mode for sysroot
Paolo Bonzini [Wed, 11 Aug 2010 19:35:54 +0000 (15:35 -0400)] 
add libtool --mode=finish mode for sysroot

* doc/libtool.texi (Finish mode): Document behavior when *.la files
are passed.
* libltdl/config/ltmain.m4sh (func_mode_finish): Eliminate sysroot
or `=' signs representing it from files in $libs.
* tests/sysroot.at (SYSROOT_TESTS): Test for presence of sysroot
references before running libtool --mode=finish, and for absence
afterwards.

14 years agoreorganize parsing of --mode=finish arguments
Paolo Bonzini [Wed, 11 Aug 2010 19:10:50 +0000 (15:10 -0400)] 
reorganize parsing of --mode=finish arguments

* libltdl/config/ltmain.m4sh (func_mode_finish): Split arguments for
directories and *.la files.

14 years agofix sysroot handling for deplibs of preopened libtool libs
Paolo Bonzini [Thu, 12 Aug 2010 16:06:07 +0000 (12:06 -0400)] 
fix sysroot handling for deplibs of preopened libtool libs

* libltdl/config/ltmain.m4sh: Pass $dependency_libs of preopened libtool
through func_resolve_sysroot.