]> git.ipfire.org Git - thirdparty/libtool.git/log
thirdparty/libtool.git
15 years agoSet SCM version number to 2.2.9a.
Gary V. Vaughan [Fri, 4 Jun 2010 19:29:56 +0000 (02:29 +0700)] 
Set SCM version number to 2.2.9a.

* configure.ac, libltdl/configure.ac (AC_INIT): Bump version
number to 2.2.9a.
* NEWS: Updated.

15 years agoPrepare for next release. v2.2.8
Gary V. Vaughan [Fri, 4 Jun 2010 18:43:56 +0000 (01:43 +0700)] 
Prepare for next release.

* configure.ac, libltdl/configure.ac (AC_INIT): Bump version
number to 2.2.8.
* NEWS: Update version number.
* INSTALL, libltdl/config/install-sh, libltdl/config/config.guess,
libltdl/config/config.sub, libltdl/config/texinfo.tex: Updated
from canonical source.

15 years agoProvide an m4sh reimplementation of announce-gen.
Gary V. Vaughan [Fri, 4 Jun 2010 17:50:24 +0000 (00:50 +0700)] 
Provide an m4sh reimplementation of announce-gen.

* libltdl/config/getopt.m4sh (M4SH_GETOPTS): New macro that takes
a quoted m4 list of command line options to be parsed, and
generates the shell code to parse those options and collect the
results into appropriately named 'opt_xxx' shell variables.  Also,
add some private supporting macros, and improve the comments
radically.
* libltdl/config/announce-gen.m4sh: New file, to generate and
optionally post (an enhancement over the gnulib perl script of the
same name) a release announcement.
* Makefile.maint (announce-gen): Build a new announce-gen script
in the build directory, from the contents of
libltdl/config/announce-gen.m4sh.
* HACKING (Release Procedure): Update the instructions to use
announce-gen.
(Alpha release note template, Full release note template):
Removed.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
15 years agoSupport "git log --oneline" in generated commit messages.
Gary V. Vaughan [Sat, 22 May 2010 11:10:27 +0000 (18:10 +0700)] 
Support "git log --oneline" in generated commit messages.

* clcommit.m4sh (func_check_commit_msg): Insert an empty line
between the ChangeLog entry summary line and the ChangeLog entry
body, so that "git log --oneline" works properly.
Bump copyright and version number.
Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

15 years ago* HACKING: Set Reply-To: in announcement emails.
Ralf Wildenhues [Sat, 22 May 2010 09:29:48 +0000 (11:29 +0200)] 
* HACKING: Set Reply-To: in announcement emails.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoSet SCM version number to 2.2.7c.
Gary V. Vaughan [Thu, 20 May 2010 23:59:56 +0000 (06:59 +0700)] 
Set SCM version number to 2.2.7c.
* configure.ac, libltdl/configure.ac (AC_INIT): Bump version
number to 2.2.7c.
* NEWS: Updated.

GNU Libtool 2.2.7b  was released.

15 years agoPrepare for next release candidate. v2.2.7b
Gary V. Vaughan [Thu, 20 May 2010 21:24:18 +0000 (04:24 +0700)] 
Prepare for next release candidate.
* configure.ac, libltdl/configure.ac (AC_INIT): Bump version
number to 2.2.7b.
* libltdl/m4/libtool.m4, libltdl/m4/ltdl.m4,
libltdl/m4/ltoptions.m4, libltdl/m4/lt~obsolete.m4: These files
have been updated without a serial bump since the last release.
* libltdl/Makefile.inc (LTDL_VERSION_INFO): Bump Revision, to
account for bugfixes since the last release.
* libltdl/config/install-sh, libltdl/config/config.guess,
libltdl/config/config.sub, libltdl/config/texinfo.tex,
INSTALL: Updated from canonical source.
* NEWS: Update with missing entries from ChangeLog.
* HACKING: Note workaround for developer tool-path leakage bug.

15 years agoSkip some tests in --disable-ltdl-install mode.
Gary V. Vaughan [Thu, 20 May 2010 21:21:38 +0000 (04:21 +0700)] 
Skip some tests in --disable-ltdl-install mode.
* tests/dlloader-api.at, tests/exceptions.at,
tests/lalib-syntax.at, tests/loadlibrary.at,
tests/lt_dlopenext.at, tests/resident.at: Detect when these
tests try to link against the not installed libltdl.la, and
skip rather than FAIL.

15 years agoClarify versioning algorithm documentation.
Peter Rosin [Tue, 4 May 2010 18:36:52 +0000 (20:36 +0200)] 
Clarify versioning algorithm documentation.

* doc/libtool.texi (Updating version info): Be explicit
about setting age to zero on interface change.
Reported by Jef Driesen <jefdriesen@hotmail.com>

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoRanlib is required with -force_load and fat archives.
Peter O'Gorman [Tue, 4 May 2010 05:44:48 +0000 (00:44 -0500)] 
Ranlib is required with -force_load and fat archives.

* libltdl/m4/libtool.m4 (_LT_REQUIRED_DARWIN_CHECKS): Run
ranlib.
Reported by Jeremy Huddleston <jeremyhu@apple.com>

15 years agoFix incompatible struct declarations.
Ralf Wildenhues [Sun, 4 Apr 2010 08:56:27 +0000 (10:56 +0200)] 
Fix incompatible struct declarations.

* doc/libtool.texi (Dlpreopening): Remove broken documentation
of lt_dlsymbol and lt_dlsymlist.  Document typedef lt_dlsymlist
and symbol lt_preloaded_symbols according to the implementation.
* tests/demo/dlmain.c (lt_symlist): Make struct anonymous ...
(lt_dlsymlist): ... and typedef to this name.
(lt_preloaded_symbols, main): Adjust.
* tests/pdemo/longer_file_name_dlmain.c: Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoUse linker_flags not compiler_flags with $LD.
Ralf Wildenhues [Sun, 4 Apr 2010 07:32:56 +0000 (09:32 +0200)] 
Use linker_flags not compiler_flags with $LD.

* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [linux]
<archive_cmds, archive_expsym_cmds>: With xlf and bgxlf
compilers, when linking with $LD, use $linker_flags not
$compiler_flags.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAdd FAQ, and FAQ entry for flags stripped at library link time.
Ralf Wildenhues [Sun, 28 Mar 2010 16:04:10 +0000 (18:04 +0200)] 
Add FAQ, and FAQ entry for flags stripped at library link time.

* doc/libtool.texi (FAQ, Stripped link flags): New nodes.
(Wrapper executables): Replace bug address with macro.
(Compile mode, Link mode): Document `-Wc,' and `-Xcompiler '
semantics better.
* libltdl/config/ltmain.m4sh (func_mode_link): Rewrite comment
for the flags that are passed through.
Prompted by reports from Simon Richter <Simon.Richter@hogyros.de>,
Török Edwin <edwintorok@gmail.com> and
Åke Sandgren <ake.sandgren@hpc2n.umu.se>.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix preloader symbol list declaration in libltdl.
Ralf Wildenhues [Sun, 28 Mar 2010 17:14:05 +0000 (19:14 +0200)] 
Fix preloader symbol list declaration in libltdl.

* libltdl/ltdl.c (preloaded_symbols): Fix declaration to include
array brackets.
(lt_dlinit): Do not take address of preloaded_symbols.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix typo in libtool --help output.
Ralf Wildenhues [Sun, 28 Mar 2010 16:11:44 +0000 (18:11 +0200)] 
Fix typo in libtool --help output.

* libltdl/config/ltmain.m4sh (func_mode_help): Fix typo in help
output.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix a couple of documentation errors.
Ralf Wildenhues [Sun, 28 Mar 2010 16:03:09 +0000 (18:03 +0200)] 
Fix a couple of documentation errors.

* doc/libtool.texi (Autoconf macros): Improve hyphenation.
(Using libltdl): libltdl uses the Lesser General Public License,
not the Library General Public License.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoDo not use @sc nor @acronym in the manual.
Ralf Wildenhues [Sun, 28 Mar 2010 16:02:22 +0000 (18:02 +0200)] 
Do not use @sc nor @acronym in the manual.

* doc/libtool.texi: Remove all usage of @sc.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix ChangeLog entry.
Ralf Wildenhues [Sun, 28 Mar 2010 16:00:03 +0000 (18:00 +0200)] 
Fix ChangeLog entry.

15 years agoSort output of 'find' to enable deterministic builds.
Chris Demetriou [Fri, 19 Mar 2010 05:26:03 +0000 (06:26 +0100)] 
Sort output of 'find' to enable deterministic builds.

* libltdl/config/ltmain.m4sh (func_extract_archives): Sort
output of 'find'.
* libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Likewise.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoUnconditionally normalize LC_ALL, LANGUAGE in libtool script.
Ralf Wildenhues [Wed, 17 Mar 2010 21:44:25 +0000 (22:44 +0100)] 
Unconditionally normalize LC_ALL, LANGUAGE in libtool script.

* libltdl/config/ltmain.m4sh: Unconditionally set LC_ALL and
LANGUAGE to 'C', to avoid semantic differences on MinGW under
Chines locale.  SCO issues with e.g. LANG=C are not known to
be relevant today any more.
Report by Pete Batard <pbatard@gmail.com> and Xiaofan Chen
<xiaofanc@gmail.com>.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoPreserve the last error when restoring the error mode.
Peter Rosin [Wed, 17 Mar 2010 08:01:57 +0000 (09:01 +0100)] 
Preserve the last error when restoring the error mode.

* libltdl/loaders/loadlibrary.c (wm_open): Don't rely on
SetThreadErrorMode (or SetErrorMode) to not clobber the last
error.
Report by Ralf Wildenhues.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoUse Get/SetThreadErrorMode if they are available.
Peter Rosin [Wed, 17 Mar 2010 07:54:16 +0000 (08:54 +0100)] 
Use Get/SetThreadErrorMode if they are available.

* libltdl/loaders/loadlibrary.c (wrap_geterrormode): Replaced...
(wrap_getthreaderrormode): ...by this function that checks
first for GetThreadErrorMode, then GetErrorMode and makes use
of either of those or...
(fallback_getthreaderrormode): ...else falls back to this
replacement function that implements the old workaround, which
was previously implemented in...
(fallback_geterrormode): ...this now renamed function.
(geterrormode): Replaced...
(getthreaderrormode): ...by this function pointer that points
at either of wrap_getthreaderrormode, GetThreadErrorMode,
GetErrorMode or fallback_getthreaderrormode.
(wrap_setthreaderrormode): New function that checks if
SetThreadErrorMode is supported by the system and makes use of
it if it is.
(fallback_setthreaderrormode): New function that is used
otherwise that implements the old version using SetErrorMode.
(setthreaderrormode): New function pointer that points at
either of wrap_setthreaderrormode, SetThreadErrorMode or
fallback_setthreaderrormode.
(vm_open): Adjust to the above.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoDetect Sun compiler suite with 'sun'-prefixed names.
Ralf Wildenhues [Sun, 28 Feb 2010 12:38:34 +0000 (13:38 +0100)] 
Detect Sun compiler suite with 'sun'-prefixed names.

* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LANG_CXX_CONFIG)
(_LT_SYS_HIDDEN_LIBDEPS) [solaris]: Accept compiler names sunCC,
sunf77, sunf90, sunf95 in addition to CC, f77, f90, f95.
* NEWS: Update.
Report by Vadim Zeitlin.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix deplibs check fallback for 64-bit Windows and Windows CE.
Pierre Ossman [Mon, 22 Feb 2010 21:44:04 +0000 (22:44 +0100)] 
Fix deplibs check fallback for 64-bit Windows and Windows CE.

* libltdl/m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD): Accept file formats
'pe-arm-wince' and 'pe-x86-64'.  Add note about consistency with ...
* libltdl/config/ltmain.m4sh (func_win32_libid): ... the respective
pattern here; sync pattern from the former.
* tests/deplibs-mingw.at (deplibs without file command): New
file, new test.
* Makefile.am (TESTSUITE_AT): Update.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoUpdate search path on Haiku for legacy system directory.
Scott McCreary [Wed, 24 Feb 2010 21:10:52 +0000 (22:10 +0100)] 
Update search path on Haiku for legacy system directory.

* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [haiku]
<sys_lib_dlsearch_path_spec>: Replace legacy
/boot/beos/system/lib directory with /boot/system/lib.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agomanual: fix detailmenu ordering.
Ralf Wildenhues [Mon, 22 Feb 2010 21:05:14 +0000 (22:05 +0100)] 
manual: fix detailmenu ordering.

* doc/libtool.texi (Top): Add section for `Linking executables'
in the detailmenu.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoGuard against strerror()==NULL
Charles Wilson [Sun, 21 Feb 2010 21:56:44 +0000 (16:56 -0500)] 
Guard against strerror()==NULL

* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src:main):
Check return value of strerror() using nonnull().
(func_emit_cwrapperexe_src:find_executable): Ditto.
(func_emit_cwrapperexe_src:chase_symlinks): Ditto.

15 years agoDocument wrapper changes.
Charles Wilson [Sun, 12 Jul 2009 22:49:06 +0000 (18:49 -0400)] 
Document wrapper changes.

* NEWS: Indicate new feature and incompatibility.
* doc/libtool.texi [detailmenu]: Add reference to subsection
'Wrapper executables for programs', in Platform Quirks category.
[Linking executables]: Mention wrapper executables, in
addition to wrapper scripts. Add menu referencing subsection
'Wrapper executables for programs'.
[Wrapper executables for programs]: New subsection. Documents
cwrapper rationale and command line options.

15 years agoAdd --lt-* options to shell wrapper
Charles Wilson [Sun, 12 Jul 2009 21:40:26 +0000 (17:40 -0400)] 
Add --lt-* options to shell wrapper

* libltdl/config/ltmain.m4sh (func_emit_wrapper): Call
func_parse_lt_options early. Use func_exec_program.
(func_emit_wrapper:func_parse_lt_options): New function.
(func_emit_wrapper:func_lt_dump_args): New function.
(func_emit_wrapper:func_exec_program_core): New function.
(func_emit_wrapper:func_exec_program): New function.

15 years agoEnable runtime cwrapper debugging; add tests
Charles Wilson [Sun, 12 Jul 2009 18:30:44 +0000 (14:30 -0400)] 
Enable runtime cwrapper debugging; add tests

* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src):
Update comments. Initialize program_name. Eliminate _LENGTH
variables for string constants. In debug mode, print a
banner with known content before any other output. Remove
LTWRAPPER_DEBUGPRINTF macro. Add constants and variables
to support new --lt-debug option.
(func_emit_cwrapperexe_src:ltwrapper_debugprintf): Renamed to...
(func_emit_cwrapperexe_src:lt_debugprintf): this. Only print
messages if lt_debug != 0. Ensure appearance of messages
conforms to GCS.
(func_emit_cwrapperexe_src:lt_fatal): Ditto.
(func_emit_cwrapperexe_src:lt_error_core): Ditto.
(func_emit_cwrapperexe_src): Update all callers to lt_fatal.
Update all users of LTWRAPPER_DEBUGPRINTF (()) to call
lt_debugprintf () directly.
(func_emit_cwrapperexe_src:main): Consolidate option parsing.
Ensure first use of lt_debugprintf occurs after option parsing.
Add stanza to parse for --lt-debug and set lt_debug variable.
Use strcmp rather than strncmp, where safe.
* tests/cwrapper.at: Add new tests for --lt-debug and
-DLT_DEBUGWRAPPER.

15 years agoUse --email with gendocs.sh.
Ralf Wildenhues [Sun, 31 Jan 2010 12:39:48 +0000 (13:39 +0100)] 
Use --email with gendocs.sh.

* Makefile.maint (web-manual): Pass bug reporting address to
gendocs.sh.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoMake testsuite code C++ clean again.
Ralf Wildenhues [Sun, 31 Jan 2010 14:31:52 +0000 (15:31 +0100)] 
Make testsuite code C++ clean again.

* tests/resident.at (resident modules): Fix for C++.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoTestsuite exposure for dlloader API.
Peter Rosin [Fri, 29 Jan 2010 08:04:13 +0000 (09:04 +0100)] 
Testsuite exposure for dlloader API.

* tests/dlloadet-api.at: New file, new test.
* Makefile.am (TESTSUITE_AT): Update.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years ago* tests/loadlibrary.at: Fix C++ issues.
Peter Rosin [Fri, 29 Jan 2010 07:49:45 +0000 (08:49 +0100)] 
* tests/loadlibrary.at: Fix C++ issues.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoReport proper errors from the loadlibrary loader.
Peter Rosin [Thu, 21 Jan 2010 07:42:12 +0000 (08:42 +0100)] 
Report proper errors from the loadlibrary loader.

* libltdl/loaders/loadlibrary.c (loadlibraryerror): New
helper function that returns the latest Windows error as a
string, or the provided default string on failure to do so.
(LOADLIB_SETERROR): New macro that wraps previous to make it
easy to use.
(vm_open, vm_close, vm_sym): Make use of previous.
(LOCALFREE): New macro to help free the Windows error string.
(vl_exit): Make use of previous.
* tests/loadlibarry.at: New file, new test that makes sure
the loadlibrary loader reports non-standard error messages.
* Makefile.am (TESTSUITE_AT): Add above test.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoUse GetErrorMode if it is available.
Peter Rosin [Mon, 18 Jan 2010 08:48:23 +0000 (09:48 +0100)] 
Use GetErrorMode if it is available.

* libltdl/loaders/loadlibrary.c (wrap_geterrormode): New
function that checks if GetErrorMode is supported by the
system and makes use of it if it is.
(fallback_geterrormode): New function that is used otherwise
that implements the old workaround.
(geterrormode): New function pointer that points at either
of the above or directly at GetErrorMode.
(vm_open): Make use of the above.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoEnsure functions from resident modules work in atexit handlers.
Ralf Wildenhues [Mon, 11 Jan 2010 20:56:23 +0000 (21:56 +0100)] 
Ensure functions from resident modules work in atexit handlers.

* tests/resident.at (resident modules): New file, new test.
* Makefile.am (TESTSUITE_AT): Adjust.
Report by Bob Friesenhahn.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoTestsuite exposure for relative output file names and deplibs.
Ralf Wildenhues [Mon, 11 Jan 2010 20:45:58 +0000 (21:45 +0100)] 
Testsuite exposure for relative output file names and deplibs.

* tests/deplib-in-subdir.at (deplib in subdir): New file, new
test.
* Makefile.am (TESTSUITE_AT): Update.
Prompted by report from Bob Friesenhahn.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoTestsuite exposure for C++ exception handling.
Ralf Wildenhues [Sun, 10 Jan 2010 08:06:57 +0000 (09:06 +0100)] 
Testsuite exposure for C++ exception handling.

* tests/exceptions.at (C++ exception handling): New file, new
test.
* Makefile.am (TESTSUITE_AT): Update.
Report by Bob Friesenhahn.

15 years agoBump copyright years.
Ralf Wildenhues [Wed, 6 Jan 2010 07:03:33 +0000 (08:03 +0100)] 
Bump copyright years.

* ChangeLog.2009: New, rotated from ...
* ChangeLog: ... here.
* Makefile.am (EXTRA_DIST): Add ChangeLog.2009.
* NEWS, libltdl/config/ltmain.m4sh: Bump copyright years.
* libltdl/m4/libtool.m4 (_LT_COPYING, LT_OUTPUT): Likewise.
* libtoolize.m4sh: Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years ago* libltdl/ltdl.c (lt_dlerror): Remove meaningless conditional.
Peter Rosin [Wed, 30 Dec 2009 02:18:19 +0000 (03:18 +0100)] 
* libltdl/ltdl.c (lt_dlerror): Remove meaningless conditional.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years ago* libltdl/ltdl.c (file_not_found): Fix typos in code comment.
Peter Rosin [Tue, 29 Dec 2009 18:00:58 +0000 (19:00 +0100)] 
* libltdl/ltdl.c (file_not_found): Fix typos in code comment.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoReplace last __oline__ instance.
Ralf Wildenhues [Sat, 12 Dec 2009 07:51:02 +0000 (08:51 +0100)] 
Replace last __oline__ instance.

* libltdl/m4/libtool.m4 (_LT_TRY_DLOPEN_SELF): Replace last
__oline__ instance with $LINENO.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoImprove parsing of .la files in libltdl.
Ralf Wildenhues [Wed, 9 Dec 2009 06:28:59 +0000 (07:28 +0100)] 
Improve parsing of .la files in libltdl.

* libltdl/ltdl.c (trim): Do not dump core upon missing quote in
module .la file.
* tests/lalib-syntax.at (syntax of .la files): New file, new
test.
* Makefile.am (TESTSUITE_AT): Add tests/lalib-syntax.at.
Report by Bob Friesenhahn.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoSane fallback initialization of $ECHO from $as_echo.
Ralf Wildenhues [Wed, 2 Dec 2009 22:01:56 +0000 (23:01 +0100)] 
Sane fallback initialization of $ECHO from $as_echo.

* libltdl/config/general.m4sh: Use 'printf %s\n' if $as_echo is
unset.
* tests/testsuite.at: Likewise.
* THANKS: Update.
Report by Vadim Zeitlin and Peter Rosin.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agolt_dlloader_remove and lt_dlloader_find accept const arguments.
Ralf Wildenhues [Wed, 2 Dec 2009 22:12:27 +0000 (23:12 +0100)] 
lt_dlloader_remove and lt_dlloader_find accept const arguments.

* libltdl/lt_dlloader.c (lt_dlloader_remove, lt_dlloader_find):
Accept `const char *' arguments, as documented.  Cast them to
`void *' for the slist machinery.
* libltdl/libltdl/lt_dlloader.h: Adjust prototypes.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoTest and fix slist.c.
Ralf Wildenhues [Wed, 2 Dec 2009 22:11:23 +0000 (23:11 +0100)] 
Test and fix slist.c.

* libltdl/libltdl/slist.h: Include stddef.h, for size_t.
(slist_remove): Return pointer to SList, not void.
* libltdl/slist.c: Include stdlib.h, for malloc and free.
(slist_remove): Adjust prototype as above.
(slist_sort): Do not loop forever on one-item list.
* tests/slist.at (SList functionality): New file, new test.
* Makefile.am (TESTSUITE_AT): Add tests/slist.at.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoPlease C++ compilers when calling strrchr.
Peter Rosin [Mon, 30 Nov 2009 19:20:36 +0000 (14:20 -0500)] 
Please C++ compilers when calling strrchr.

* libltdl/ltdl.c (has_library_ext): Match the return type of
strrchr with the first argument to please C++ compilers.
Report by Peter O'Gorman.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoFix bindir and dlopen tests for C++ compilers (CC=g++).
Ralf Wildenhues [Sun, 29 Nov 2009 22:03:14 +0000 (23:03 +0100)] 
Fix bindir and dlopen tests for C++ compilers (CC=g++).

* tests/bindir.at (bindir basic lib test, bindir install tests):
Include stdlib.h rather than declaring abort.
* tests/lt_dlopenext.at (lt_dlopenext error messages): Use
`extern "C"' annotation for dlsym'ed function in C++ mode.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoEnable symbol versioning with the GNU gold linker.
Ralf Wildenhues [Tue, 24 Nov 2009 11:22:13 +0000 (12:22 +0100)] 
Enable symbol versioning with the GNU gold linker.

* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS): Accept 'GNU gold'
in the version string.
* NEWS, THANKS: Update.
Report by Peter Fritzsche.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix cross build issue in execute mode test.
Peter Rosin [Wed, 25 Nov 2009 22:29:34 +0000 (17:29 -0500)] 
Fix cross build issue in execute mode test.

* tests/execute-mode.at: Skip test for cross builds.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoTighten regex for Portland C++ compiler for version 10.
Ralf Wildenhues [Tue, 24 Nov 2009 14:22:57 +0000 (15:22 +0100)] 
Tighten regex for Portland C++ compiler for version 10.

* libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG) [linux]:
Match a dot after version 1 through 5, so 10 and up don't match,
and use weak symbols.
* THANKS: Update.
Report by Jeff Squyres and Brent Leback.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoUpdate libltdl version to match 2.2.6b release.
Peter O'Gorman [Mon, 16 Nov 2009 15:26:29 +0000 (09:26 -0600)] 
Update libltdl version to match 2.2.6b release.

libltdl/Makefile.inc: Make version 9:1:2

15 years agoDon't load module.la from current directory by default.
Bob Friesenhahn [Sat, 14 Nov 2009 19:52:24 +0000 (13:52 -0600)] 
Don't load module.la from current directory by default.

* libltdl/ltdl.c (try_dlopen): Do not attempt to load an
unqualified module.la file from the current directory (by
default) since doing so is insecure and is not compliant with
the documentation.
* tests/testsuite.at: Qualify access to module.la file in
current directory so that test passes.

15 years agoOnly use preopen loader to load preopened archives
Peter O'Gorman [Sat, 14 Nov 2009 19:47:10 +0000 (13:47 -0600)] 
Only use preopen loader to load preopened archives

* libltdl/ltdl.c: Limit checking of .a to preopen loader.
* tests/lt_dlopen_a.at: Add test.
* Makefile.am: Add test.

15 years agoRecognize `pgfortran' as Portland compiler.
Ralf Wildenhues [Sat, 14 Nov 2009 10:32:18 +0000 (11:32 +0100)] 
Recognize `pgfortran' as Portland compiler.

* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LINKER_SHLIBS):
Accept `pgfortran*' too.
Report by Jeff Squyres.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix verbose link extraction for multiply reconfigured GCC.
Alexandre Oliva [Sun, 1 Nov 2009 17:41:43 +0000 (18:41 +0100)] 
Fix verbose link extraction for multiply reconfigured GCC.

* libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG)
<output_verbose_link_cmd>: Drop GCC lines "Configured with" that
may contain unrelated flags.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAllow gcc builds with -Wall -Werror.
Eric Blake [Mon, 2 Nov 2009 18:58:28 +0000 (11:58 -0700)] 
Allow gcc builds with -Wall -Werror.

* libltdl/ltdl.c (try_dlopen): Use strlen rather than LT_STRLEN on
an array that will never be NULL.

Signed-off-by: Eric Blake <ebb9@byu.net>
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix func_normal_abspath sed script for Solaris.
Ralf Wildenhues [Sun, 1 Nov 2009 10:41:34 +0000 (11:41 +0100)] 
Fix func_normal_abspath sed script for Solaris.

* libltdl/config/general.m4sh (pathcar, pathcdr, removedotparts)
(collapseslashes, finalslash): Use single quotes, for clarity.
(removedotparts): Avoid \{N,M\} after subexpression \(...\), for
Solaris /bin/sed.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoImprove versioning algorithm documentation.
Ralf Wildenhues [Sun, 1 Nov 2009 10:38:23 +0000 (11:38 +0100)] 
Improve versioning algorithm documentation.

* doc/libtool.texi (Updating version info): Repeat the
algorithms in different, hopefully simpler terms.
* THANKS: Update.
Prompted by Richard B. Kreckel.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoSupport for the Haiku operating system.
Ingo Weinhold [Sun, 1 Nov 2009 09:53:23 +0000 (10:53 +0100)] 
Support for the Haiku operating system.

* libltdl/config/ltmain.m4sh (func_mode_link): Add cases for
`*-*-haiku*' alongside `*-*-beos*'.
* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
(_LT_CHECK_MAGIC_METHOD, LT_LIB_M, _LT_COMPILER_PIC)
(_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG): Add cases for
`haiku*'.
* NEWS, THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix quoting of AS, DLLTOOL, and OBJDUMP for the libtool script.
Ralf Wildenhues [Sun, 1 Nov 2009 08:26:51 +0000 (09:26 +0100)] 
Fix quoting of AS, DLLTOOL, and OBJDUMP for the libtool script.

* libltdl/m4/ltoptions.m4 (AC_LIBTOOL_DLOPEN): Quote values of
$AS, $DLLTOOL, and $OBJDUMP, so they can contain arguments.
* THANKS: Update.
Report by Matthijs Kooijman.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoInitial support for the Cuda Compiler Driver on Linux.
Ralf Wildenhues [Sun, 13 Sep 2009 09:00:31 +0000 (11:00 +0200)] 
Initial support for the Cuda Compiler Driver on Linux.

* libltdl/config/ltmain.m4sh (func_mode_compile): Accept source
file extensions `.cu' and `.cup'.
* libltdl/m4/libtool.m4 (_LT_COMPILER_NO_RTTI, _LT_COMPILER_PIC)
(_LT_LINKER_SHLIBS): Support for `nvcc' compiler driver.
* NEWS, THANKS: Update.
Report by Mahesh Narayanamurthi.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoControl where win32 DLLs get installed.
Dave Korn [Sat, 12 Sep 2009 06:01:38 +0000 (08:01 +0200)] 
Control where win32 DLLs get installed.

* libltdl/config/general.m4sh (func_normal_abspath): New function.
(func_relative_path): Likewise.
* libltdl/config/ltmain.m4sh (func_mode_help): Document "-bindir".
(func_mode_link): Accept new "-bindir" option and use it, if
supplied, to place Windows DLLs.
* tests/bindir.at: New file for install tests using "-bindir".
* Makefile.am (TESTSUITE_AT): Add bindir.at.
* doc/libtool.texi (Link Mode): Update documentation.
* NEWS, THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agolibtool: clean libconftest.a.
Akim Demaille [Fri, 11 Sep 2009 11:14:29 +0000 (13:14 +0200)] 
libtool: clean libconftest.a.

* libltdl/m4/libtool.m4 (_LT_REQUIRED_DARWIN_CHECKS): Here.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agofunc_win32_libid doesn't work with MS dumpbin
Peter Rosin [Thu, 10 Sep 2009 07:51:15 +0000 (09:51 +0200)] 
func_win32_libid doesn't work with MS dumpbin

* libltdl/m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD): The $NM
interface is assumed to be BSD nm in func_win32_libid, so
check for that before using it.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoAllow dlopen self test to work with gcc's -fvisibility=hidden.
Ralf Wildenhues [Mon, 7 Sep 2009 19:27:08 +0000 (21:27 +0200)] 
Allow dlopen self test to work with gcc's -fvisibility=hidden.

* libltdl/m4/libtool.m4 (_LT_TRY_DLOPEN_SELF): Declare default
visibility for the symbol we are going to test dlopen (NULL)
when a GCC version is used that understands the visibility
attribute, under the assumption that if -fvisibility=hidden
will be used, the user code will be sufficiently annotated
for visibility of needed symbols from the main executable.
* THANKS: Update.
Report by Josh Hursey against OpenMPI.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix and split recent testsuite addition for compile/link flags.
Ralf Wildenhues [Mon, 7 Sep 2009 19:08:50 +0000 (21:08 +0200)] 
Fix and split recent testsuite addition for compile/link flags.

* tests/flags.at (passing flags through libtool): Split into ...
(passing CC flags through libtool)
(passing CXX flags through libtool)
(passing F77 flags through libtool)
(passing FC flags through libtool)
(passing GCJ flags through libtool): ... these five tests,
factorized with m4_foreach.  Fix F77 and FC compile and link
commands; add GCJ tag.  Use LT_AT_TAG to correctly skip tags
for which no compiler exists.  Use $EXEEXT where appropriate.
Drop unneeded use of reload_cmds.
Reports by Peter Rosin and Peter O'Gorman.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix redirect in test case.
Peter O'Gorman [Mon, 7 Sep 2009 20:17:03 +0000 (15:17 -0500)] 
Fix redirect in test case.

tests/darwin.at: Fix stderr redirect.

15 years agoUse darwin's -force_load flag if available for whole_archive_flag_spec
Peter O'Gorman [Mon, 7 Sep 2009 05:41:58 +0000 (00:41 -0500)] 
Use darwin's -force_load flag if available for whole_archive_flag_spec

* libltdl/m4/libtool.m4 (_LT_REQUIRED_DARWIN_CHECKS): Check for
-force_load and use it if there.
* tests/darwin.at: Add a simple test.

15 years agoTestsuite keyword 'interactive' and check-* rules.
Ralf Wildenhues [Sun, 6 Sep 2009 17:38:06 +0000 (19:38 +0200)] 
Testsuite keyword 'interactive' and check-* rules.

* Makefile.am (testsuite_deps, testsuite_deps_uninstalled):
New variables.
(check-local, installcheck-local): Use them.
(check-interactive, check-noninteractive): New rules.
* tests/link-order2.at (Link order of deplibs),
tests/static.at (static linking flags for programs): Add keyword
`interactive'.
* doc/libtool.texi (Test descriptions): Document all keywords
used in the Libtool test suite.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoFix failure test in the presence of --with-pic or -prefer-pic.
Ralf Wildenhues [Sun, 6 Sep 2009 10:42:34 +0000 (12:42 +0200)] 
Fix failure test in the presence of --with-pic or -prefer-pic.

* tests/fail.at (Failure tests): Run non-PIC failure test only
if pic_mode is 'default' or 'no', rather than 'default' or 'yes'
and also -prefer-pic has not been passed in $CFLAGS.
* THANKS: Update.
Report by Donn Washburn.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoAdd testsuite exposure for passing of compiler and linker flags.
Ralf Wildenhues [Sun, 6 Sep 2009 07:48:33 +0000 (09:48 +0200)] 
Add testsuite exposure for passing of compiler and linker flags.

* tests/flags.at (passing flags through libtool): New file, new
test, for bug fixed in previous commit.
* Makefile.am (TESTSUITE_AT): Add tests/flags.at.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoMake -Wc,FLAG behave like -Xcompiler FLAG in link mode.
Peter Rosin [Fri, 4 Sep 2009 20:19:36 +0000 (22:19 +0200)] 
Make -Wc,FLAG behave like -Xcompiler FLAG in link mode.

* libltdl/config/ltmain.m4sh (func_mode_link): Remove "-Wc,"
instead of replacing it with "$wl" when linking programs
through the compiler driver, just as is the case when linking
libraries.
* NEWS: Update.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
15 years agoShut up prototype warnings with recent GCC and -Wstrict-prototypes.
Lennart Poettering [Sun, 23 Aug 2009 05:19:26 +0000 (07:19 +0200)] 
Shut up prototype warnings with recent GCC and -Wstrict-prototypes.

* libltdl/config/ltmain.m4sh (func_generate_dlsyms): Use recent
GCC's diagnostic pragma to override a -Wstrict-prototypes
setting for the symbol list code.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 years agoRemove __oline__ from macros, for less spurious configure diffs.
Ralf Wildenhues [Sun, 23 Aug 2009 05:12:30 +0000 (07:12 +0200)] 
Remove __oline__ from macros, for less spurious configure diffs.

* libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK, _LT_COMPILER_OPTION)
(_LT_COMPILER_C_O, LT_PATH_NM): Replace __oline__ instances with
$LINENO.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFixup 'execute mode' test for w32.
Roumen Petrov [Fri, 24 Jul 2009 20:59:46 +0000 (22:59 +0200)] 
Fixup 'execute mode' test for w32.

* tests/execute-mode.at (execute mode): Add missing $EXEEXT.
(LDFLAGS): Add -no-undefined.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years ago[CXX] Use correct export_dynamic_flag_spec for PE-COFF $hosts
Yaakov Selkowitz [Tue, 30 Jun 2009 12:26:20 +0000 (08:26 -0400)] 
[CXX] Use correct export_dynamic_flag_spec for PE-COFF $hosts

* libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG) [cygwin*|mingw*|pw32*|cegcc*]:
Define export_dynamic_flag_spec as -Wl,--export-all-symbols here as well
(see commit 5f2bbb494a2753afb2878c399cfd8316b7403a5b).

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
16 years ago[mingw] Improve sys_lib_search_path_spec detection.
Charles Wilson [Mon, 29 Jun 2009 01:51:42 +0000 (21:51 -0400)] 
[mingw] Improve sys_lib_search_path_spec detection.

* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): Fix handling
of dos-style paths when parsing $CC -print-search-dirs output.

16 years agoFinish adding alias for obsoleted AC_LIBTOOL_RC macro.
Charles Wilson [Sun, 28 Jun 2009 22:50:30 +0000 (18:50 -0400)] 
Finish adding alias for obsoleted AC_LIBTOOL_RC macro.

* libltdl/m4/libtool.m4: Add reminder comment concerning
aclocal-1.4 backwards compatibility.
* libltdl/m4/lt~obsolete.m4: Remove unnecessary AC_DEFUN.

16 years agoAdd alias for obsoleted AC_LIBTOOL_RC macro.
Charles Wilson [Wed, 24 Jun 2009 00:32:16 +0000 (20:32 -0400)] 
Add alias for obsoleted AC_LIBTOOL_RC macro.

* libltdl/m4/libtool.m4: Add alias for obsoleted
macro AC_LIBTOOL_RC.

16 years agoRemove unneeded functions and options from cwrapper
Charles Wilson [Mon, 22 Jun 2009 00:07:13 +0000 (20:07 -0400)] 
Remove unneeded functions and options from cwrapper

* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src)
[lt_opt_process_env_set]: Remove.
[lt_opt_process_env_prepend]: Remove.
[lt_opt_process_env_append]: Remove.
[lt_split_name_value]: Remove.
[file scope]: Don't declare removed functions. Remove
constants and defines related to eliminated commandline
options.
[main]: Remove code related to eliminated commandline
options --lt-env-set, --lt-env-prepend, --lt-env-append.

16 years agoEnsure LT_PATH_LD works when called before LT_INIT
Yaakov Selkowitz [Fri, 19 Jun 2009 17:33:22 +0000 (13:33 -0400)] 
Ensure LT_PATH_LD works when called before LT_INIT

* libltdl/m4/libtool.m4 (LT_PATH_LD): AC_REQUIRE _LT_PROG_ECHO_BACKSLASH.

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
16 years agoAdd versioning tests.
Ralf Wildenhues [Sun, 14 Jun 2009 10:03:31 +0000 (12:03 +0200)] 
Add versioning tests.

* tests/versioning.at (versioning): New file, new test.
* Makefile.am (TESTSUITE_AT): Adjust.
Prompted by bug report from Mike Gorchak.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix versioning computation for QNX.
Mike Gorchak [Sun, 14 Jun 2009 09:42:09 +0000 (11:42 +0200)] 
Fix versioning computation for QNX.

* libltdl/config/ltmain.m4sh (func_mode_link): Set `$current'
and `$age' properly for version_type `qnx'.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoAvoid spurious localization testsuite failure on HP-UX/ia64.
Ralf Wildenhues [Sun, 14 Jun 2009 09:35:59 +0000 (11:35 +0200)] 
Avoid spurious localization testsuite failure on HP-UX/ia64.

* tests/localization.at (localized compiler messages): Skip test
if the compiler warning output contains `locale', for HP-UX.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix concurrent extraction of convenience libraries on Darwin.
Ralf Wildenhues [Wed, 10 Jun 2009 17:47:33 +0000 (19:47 +0200)] 
Fix concurrent extraction of convenience libraries on Darwin.

* libltdl/m4/libtool.m4 (_LT_CMD_OLD_ARCHIVE): New libtool
variable `lock_old_archive_extraction', set to `yes' on darwin.
* doc/libtool.texi (libtool script contents): Document it.
* libltdl/config/ltmain.m4sh (func_extract_an_archive): Lock
`ar x' invocation if `lock_old_archive_extraction' is yes.
* tests/darwin.at (darwin concurrent library extraction): New
test.
* NEWS: Update.
Report by Akim Demaille.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix testsuite failure of lt_dlopenadvise test on FreeMiNT.
Ralf Wildenhues [Sun, 7 Jun 2009 14:35:11 +0000 (16:35 +0200)] 
Fix testsuite failure of lt_dlopenadvise test on FreeMiNT.

* tests/lt_dladvise.at (lt_dlopenadvise library loading): Do not
build moddepend for systems without shared libraries.
Report by Alan Hourihane.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agotestsuite: avoid failures due to old Automake.
Ralf Wildenhues [Sun, 7 Jun 2009 10:01:56 +0000 (12:01 +0200)] 
testsuite: avoid failures due to old Automake.

* tests/configure-iface.at (installable libltdl)
(--with-ltdl-include/lib, --with-included-ltdl):
Speficy libmodule_la_SOURCES in Makefile.am as the default
source file naming scheme changed in Automake 1.8.
* tests/nonrecursive.at (_LT_AT_LTDL_SETUP): Require Automake
1.9.6.
* THANKS: Update.
Report by Robert Garron.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agotestsuite: add missing @LIBS@ in a link command line.
Ralf Wildenhues [Sun, 7 Jun 2009 09:58:59 +0000 (11:58 +0200)] 
testsuite: add missing @LIBS@ in a link command line.

* tests/old-m4-iface.at (AC_WITH_LTDL): Use @LIBS@ when linking.
Report by Patrice Fromy.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agotestsuite: cope when some installed libltdl.la has been removed.
Ralf Wildenhues [Sun, 7 Jun 2009 09:42:17 +0000 (11:42 +0200)] 
testsuite: cope when some installed libltdl.la has been removed.

* tests/old-m4-iface.at (AC_WITH_LTDL): Pass --with-included-ltdl
to configure, to ensure we do not accidentally link against a
previously installed libltdl.so where the corresponding .la
file has been removed, thus we do not add a run path, and the
runtime linker then fails to find libltdl.so.7.
* tests/configure-iface.at (--with-ltdl-include/lib): Remove -L
flags from LDFLAGS to avoid picking up an installed libltdl
outside of the default locations.
* THANKS: Update.
Prompted by report from Patrice Fromy.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix C wrapper invocation for ceGCC hosts (cegcc and mingw32ce).
Vincent Torri [Sun, 7 Jun 2009 07:25:45 +0000 (09:25 +0200)] 
Fix C wrapper invocation for ceGCC hosts (cegcc and mingw32ce).

* libltdl/config/ltmain.m4sh (func_mode_link): do not generate
C wrapper for cegcc and mingw32ce hosts.
(func_emit_cwrapperexe_src): remove useless check on
__MINGW32CE__.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoDon't pick up double-quotes from /etc/ld.so.conf on Ubuntu.
Ralf Wildenhues [Sun, 7 Jun 2009 07:01:12 +0000 (09:01 +0200)] 
Don't pick up double-quotes from /etc/ld.so.conf on Ubuntu.

* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]
<sys_lib_dlsearch_path_spec>: Remove embedded double quotes from
paths picked up from /etc/ld.so.conf.  Fixes libltdl compile
failure on Ubuntu 7.10.
* THANKS: Update.
Report by Camilo La Rota.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoFix GNU nm invocation for AIX.
Richard Sandiford [Sat, 6 Jun 2009 06:50:38 +0000 (08:50 +0200)] 
Fix GNU nm invocation for AIX.

* libldtl/m4/libtool.m4 (_LT_LINKER_SHLIBS)
<export_symbols_cmds>: Modify the GNU-nm-on-AIX version so that
it adds weak defined symbols to the export list.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoBuild AIX shared libraries with binutils 2.19.50+.
Richard Sandiford [Sat, 6 Jun 2009 06:48:44 +0000 (08:48 +0200)] 
Build AIX shared libraries with binutils 2.19.50+.

* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
<lt_use_gnu_ld_interface>: New variable to control whether the
GNU ld or native ld interface is used.  Set to "no" for GNU ld
2.19.50+ on AIX, otherwise mirror $with_gnu_ld.  Update the
warning message that is printed when using GNU ld on AIX.
Adjust the whole_archive_flag_spec value for GNU ld on AIX.
* NEWS, THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoDon't run compiler checks twice.
Peter O'Gorman [Wed, 27 May 2009 19:19:57 +0000 (14:19 -0500)] 
Don't run compiler checks twice.

libltdl/m4/libtool.m4 (_LT_PROG_FC, _LT_PROG_F77,
_LT_PROG_CXX): Remove these macros.
libltdl/m4/lt~obsolete.m4: Add removed macros here.
libltdl/m4/libtool.m4 (_LT_LANG_FC_CONFIG, _LT_LANG_F77_CONFIG,
_LT_LANG_CXX_CONFIG): Remove references to removed macros, and
move functionality here.
NEWS: Update.

16 years agoFix cross compilation for HPPA/64 with a BSD file command.
Rainer Emrich [Tue, 5 May 2009 20:51:03 +0000 (22:51 +0200)] 
Fix cross compilation for HPPA/64 with a BSD file command.

* libltdl/m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD)
[hpux10.20*, hpux11*, !ia64] <lt_cv_deplibs_check_method>:
Match the dot in `PA-RISC 2.0' literally.  Adjust hppa*64*
pattern to also match BSD `file' output, used in cross
compilation setups.
* THANKS: Update.
Report and initial patch by Rainer Emrich, refined by Peter
Rosin.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agolibtoolize: ignore trailing junk on scriptversion line.
Ralf Wildenhues [Tue, 5 May 2009 05:39:16 +0000 (07:39 +0200)] 
libtoolize: ignore trailing junk on scriptversion line.

* libtoolize.m4sh (func_install_update): Ignore semi-colon or
comment-sign and all following characters when parsing a
`scriptversion' line in one of the auxiliary scripts; recent
Automake-provided script have a stylized comment to induce
Emacs to use UTC.
Exposed by the `libtoolize config files serial update' test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoSkip localization test when setlocale is not functional.
Ralf Wildenhues [Sat, 2 May 2009 08:55:23 +0000 (10:55 +0200)] 
Skip localization test when setlocale is not functional.

* tests/localization.at (localized compiler messages): Skip
test when there is a warning about `LC_ALL'.
* THANKS: Update.
Report by Maciej Helminiak.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16 years agoImproved support for FreeMiNT.
Alan Hourihane [Sat, 2 May 2009 08:42:39 +0000 (10:42 +0200)] 
Improved support for FreeMiNT.

* libltdl/m4/libtool.m4 (LT_CMD_MAX_LEN) [mint]: Hard-code
command line length limit to 8192, to avoid long test.
* NEWS, THANKS: Update.

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