From MAILER-DAEMON Wed Jan 06 02:08:20 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1NSQ0C-0008CR-4N
	for mharc-libtool-commit@gnu.org; Wed, 06 Jan 2010 02:08:20 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NSQ08-0008A3-3P
	for libtool-commit@gnu.org; Wed, 06 Jan 2010 02:08:16 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1NSQ04-00088K-DE
	for libtool-commit@gnu.org; Wed, 06 Jan 2010 02:08:15 -0500
Received: from [199.232.76.173] (port=36408 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NSQ04-00088H-6I
	for libtool-commit@gnu.org; Wed, 06 Jan 2010 02:08:12 -0500
Received: from savannah.gnu.org ([199.232.41.3]:47450 helo=sv.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1NSQ03-0007NP-4W
	for libtool-commit@gnu.org; Wed, 06 Jan 2010 02:08:11 -0500
Received: from [10.1.0.109] (helo=cvs.savannah.gnu.org)
	by sv.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NSQ02-0002cI-7a
	for libtool-commit@gnu.org; Wed, 06 Jan 2010 07:08:10 +0000
Received: from rwild by cvs.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NSQ01-0002bn-P6
	for libtool-commit@gnu.org; Wed, 06 Jan 2010 07:08:10 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 78f270a9ab4b56dc9c09020282e77a3b861099a1
X-Git-Newrev: 4d9381c8e169234431b50002eb95672ee7cc1850
Message-Id: <E1NSQ01-0002bn-P6@cvs.savannah.gnu.org>
Date: Wed, 06 Jan 2010 07:08:09 +0000
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-173-g4d9381c
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Wed, 06 Jan 2010 07:08:16 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  4d9381c8e169234431b50002eb95672ee7cc1850 (commit)
      from  78f270a9ab4b56dc9c09020282e77a3b861099a1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4d9381c8e169234431b50002eb95672ee7cc1850
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Wed Jan 6 08:03:33 2010 +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>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                   |  874 +------------------------------------------
 ChangeLog => ChangeLog.2009 |    0
 Makefile.am                 |    4 +-
 NEWS                        |    2 +-
 libltdl/config/ltmain.m4sh  |    2 +-
 libltdl/m4/libtool.m4       |    8 +-
 libtoolize.m4sh             |    2 +-
 7 files changed, 14 insertions(+), 878 deletions(-)
 copy ChangeLog => ChangeLog.2009 (100%)

diff --git a/ChangeLog b/ChangeLog
index 6c07b7f..bb79597 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,879 +1,13 @@
-2009-12-30  Peter Rosin  <peda@lysator.liu.se>
-
-	* libltdl/ltdl.c (lt_dlerror): Remove meaningless conditional.
-
-2009-12-29  Peter Rosin  <peda@lysator.liu.se>
-
-	* libltdl/ltdl.c (file_not_found): Fix typos in code comment.
-
-2009-12-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Replace last __oline__ instance.
-	* libltdl/m4/libtool.m4 (_LT_TRY_DLOPEN_SELF): Replace last
-	__oline__ instance with $LINENO.
-
-2009-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-2009-12-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-	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.
-
-2009-11-30  Peter Rosin  <peda@lysator.liu.se>
-
-	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.
-
-2009-11-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-2009-11-25  Peter Rosin  <peda@lysator.liu.se>
-
-	Fix cross build issue in execute mode test.
-	* tests/execute-mode.at: Skip test for cross builds.
-
-2009-11-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-	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.
-
-2009-11-16  Peter O'Gorman  <peter@pogma.com>
-
-	Update libltdl version to match 2.2.6b release.
-	* libltdl/Makefile.inc: Make version 9:1:2
-
-2009-11-14  Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>
-
-	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.
-
-2009-11-14  Peter O'Gorman  <peter@pogma.com>
-
-	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.
-
-2009-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Recognize `pgfortran' as Portland compiler.
-	* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LINKER_SHLIBS):
-	Accept `pgfortran*' too.
-	Report by Jeff Squyres.
-
-2009-11-04  Alexandre Oliva  <aoliva@redhat.com>
-	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-2009-11-02  Eric Blake  <ebb9@byu.net>
-
-	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.
-
-2009-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-	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.
-
-2009-11-01  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
-
-	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.
-
-2009-11-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-2009-09-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-2009-09-12  Dave Korn  <dave.korn.cygwin@googlemail.com>
-
-	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.
-
-2009-09-11  Akim Demaille  <demaille@gostai.com>
-
-	libtool: clean libconftest.a.
-	* libltdl/m4/libtool.m4 (_LT_REQUIRED_DARWIN_CHECKS): Here.
-
-2009-09-10  Peter Rosin  <peda@lysator.liu.se>
-
-	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.
-
-2009-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-	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.
-
-2009-09-07  Peter O'Gorman  <peter@pogma.com
-
-	Fix redirect in test case.
-	* tests/darwin.at: Fix stderr redirect.
-
-	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.
-
-2009-09-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-	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.
-
-	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.
-
-2009-09-04  Peter Rosin  <peda@lysator.liu.se>
-
-	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.
-
-2009-08-23  Lennart Poettering  <lennart@poettering.net>  (tiny change)
-
-	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.
-
-2009-08-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-2009-07-24  Roumen Petrov  <bugtrack@roumenpetrov.info>  (tiny change)
-
-	Fixup 'execute mode' test for w32.
-	* tests/execute-mode.at (execute mode): Add missing $EXEEXT.
-	(LDFLAGS): Add -no-undefined.
-
-2009-07-01  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net> (tiny change)
-	    Charles Wilson  <libtool@cwilson.fastmail.fm>
-
-	[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).
-
-2009-06-29  Charles Wilson  <libtool@cwilson.fastmail.fm>
-
-	[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.
-
-2009-06-28  Charles Wilson  <libtool@cwilson.fastmail.fm>
-
-	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.
-
-2009-06-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
-
-	Add alias for obsoleted AC_LIBTOOL_RC macro.
-	* libltdl/m4/libtool.m4: Add alias for obsoleted
-	macro AC_LIBTOOL_RC.
-
-2009-06-21  Charles Wilson  <libtool@cwilson.fastmail.fm>
-
-	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.
-
-2009-06-19  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net> (tiny change)
-	    Charles Wilson  <libtool@cwilson.fastmail.fm>
-
-	Ensure LT_PATH_LD works when called before LT_INIT
-	* libltdl/m4/libtool.m4 (LT_PATH_LD): AC_REQUIRE _LT_PROG_ECHO_BACKSLASH.
-
-2009-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Add versioning tests.
-	* tests/versioning.at (versioning): New file, new test.
-	* Makefile.am (TESTSUITE_AT): Adjust.
-	Prompted by bug report from Mike Gorchak.
-
-2009-06-14  Mike Gorchak  <mike@malva.ua>  (tiny change)
-	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Fix versioning computation for QNX.
-	* libltdl/config/ltmain.m4sh (func_mode_link): Set `$current'
-	and `$age' properly for version_type `qnx'.
-
-2009-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-2009-06-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-2009-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-	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.
-
-	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.
-
-	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.
-
-2009-06-07  Vincent Torri  <vtorri@univ-evry.fr>  (tiny change)
-
-	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__.
-
-2009-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-2009-06-06  Richard Sandiford  <richards@transitive.com>
-
-	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.
-
-	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.
-
-2009-05-27  Peter O'Gorman  <peter@pogma.com>
-
-	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.
-
-2009-05-05  Rainer Emrich  <r.emrich@de.tecosim.com>  (tiny change)
-	    Peter Rosin  <peda@lysator.liu.se>
-	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-2009-05-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	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.
-
-2009-05-02  Alan Hourihane  <alanh@fairlite.co.uk>  (tiny change)
-
-	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.
-
-2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Initial port for BlueGene BG/L.
-	* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
-	(_LT_LANG_CXX_CONFIG) [linux]: Detect bgxl*, bgf*, mpixl*
-	compilers.
-	* NEWS, THANKS: Update.
-	Report, feedback and testing by John R. Cary and Christian
-	Rössel.
-
-	manual: fix grammaros.
-	* doc/libtool.texi (Dlpreopening): Fix grammaro.
-	(C header files): Remove duplicate word.
-
-	Allow through -tp=* at link time, for pgcc.
-	* libltdl/config/ltmain.m4sh (func_mode_link): Portlant Group
-	pgcc uses `-tp=PROCESSOR' for target processor selection; allow
-	the flag through at link time.
-	Report by Ethan Mallove.
-
-	Fix quoting of eval'ed variable.
-	* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Double-quote
-	$lt_cv_sys_global_symbol_pipe for eval, like we do in ltmain,
-	in order to preserve TABs and multiple adjacent whitespace.
-	Report by Bruno Haible.
-
-2009-04-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Cope better with missing `makeinfo' in `bootstrap'.
-	* bootstrap: Update `./doc/notes.txt' last so missing `makeinfo'
-	does not cause a broken tree.
-	* THANKS: Update.
-	Report by Christian Rössel.
-
-2009-03-29  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>  (tiny change)
-	    Charles Wilson  <libtool@cwilson.fastmail.fm>
-
-	[cygwin] Improve operation with gcc4
-	* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [cygwin*]:
-	Add w32api to sys_lib_search_path_spec without overriding gcc's
-	own search path.
-
-2009-03-29  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>  (tiny change)
-	    Charles Wilson  <libtool@cwilson.fastmail.fm>
-
-	Use correct export_dynamic_flag_spec for PE-COFF $hosts
-	* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) 
-	[cygwin*|mingw*|pw32*|cegcc*]: Define export_dynamic_flag_spec
-	as -Wl,--export-all-symbols, as required by GNU ld for PE-COFF.
-
-2009-03-29  Charles Wilson  <libtool@cwilson.fastmail.fm>
-
-	Improve compatibility with older automake
-	* libltdl/m4/lt~obsolete.m4: Add AC_DEFUNs for
-	_LT_PREPARE_SED_QUOTE_VARS and _LT_PROG_ECHO_BACKSLASH.
-	Report by Yaakov Selkowitz.
-
-2009-03-20  Peter Rosin  <peda@lysator.liu.se>
-
-	LT_OUTPUT should always create the libtool script.
-	* libltdl/m4/libtool.m4 (LT_OUTPUT): Make LT_OUTPUT ignore the
-	--no-create configure option, and assume that the user wants
-	to use an up-to-date libtool script if the LT_OUTPUT macro is
-	present.
-	* tests/early-libtool.at: Make sure we do not regress.
-
-2009-01-26  Peter Rosin  <peda@lysator.liu.se>
-
-	Don't settle for any dumpbin/link program as name lister.
-	* libltdl/m4/libtool.m4 (LT_PATH_NM): When locating dumpbin or
-	link -dump, check if they appear to really be capable of name
-	listing, in order to eliminate e.g. link from coreutils. This
-	makes the name lister decision fall back on nm as the default if
-	no acceptable candidate is found, which mainly happens on
-	(arguably broken) cross compiles.
-	* NEWS: Update
-	* THANKS: Update
-	Reports by Rudolf Leitgeb and Peter Kjellerstedt.
-
-2009-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Document INNER_TESTSUITEFLAGS, drop leading space.
-	* README: Document INNER_TESTSUITEFLAGS.
-	* tests/cmdline_wrap.at (Run tests with low max_cmd_len):
-	When using INNER_TESTSUITEFLAGS on the testsuite invocation,
-	drop leading space after "-k libtool", so that the user may
-	further limit the set of tests to be run.
-
-2009-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Fix low max_cmd_len template test on UnixWare.
-	* libltdl/config/ltmain.m4sh (func_mode_link): When expanding
-	$reload_cmds, always put objects in $reload_objs rather than
-	adding them to the command line, to allow more general command
-	lines in reload_cmds.  Ensure $reload_objs contains a leading
-	space.
-	* libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG) [sysv5*,
-	sco3.2v5*, sco5v6*] <reload_cmds>: For CC, invoke prelinker
-	before creating reloadable object.
-	(_LT_CMD_RELOAD) <reload_cmds, reload_flag>: Declare as
-	_LT_TAGDECL, not _LC_DECL.
-	(_LT_LANG_CXX_CONFIG, _LT_LANG_F77_CONFIG, _LT_LANG_FC_CONFIG)
-	(_LT_LANG_GCJ_CONFIG) <reload_cmds, reload_flag>: Initialize
-	from default (C tag) value.
-	* THANKS: Update.
-	Report and analysis by Tim Rice and John Wolfe.
-
-2009-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	* doc/libtool.texi (Distributing libltdl, Test descriptions):
-	Add missing parentheses.
-
-2009-02-28  Tim Rice  <tim@multitalents.net>
-
-	Fix C++ template handling for old archives on UnixWare 7.1.4.
-	* libltdl/m4/libtool.m4 (_LT_LANG_CXX_CONFIG) [sysv5*,
-	sco3.2v5*, sco5v6*] <old_archive_cmds>: For CC, add template
-	prelink step before archiving.  Fixes template.at test failures.
-
-2009-02-28  Török Edwin  <edwintorok@gmail.com>  (tiny change)
-	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Do not add bogus directory arguments to link command lines.
-	* libltdl/config/ltmain.m4sh (func_mode_link): Ensure $path is
-	always initialized before it is used.  Reported for zsh, for
-	which $path contains $PATH entries even after "emulate sh", see
-	<http://bugs.debian.org/517501>.
-
-2009-02-28  Andreas Schwab  <schwab@suse.de>
-	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Remove remaining references to CVS.
-	* bootstrap: Remove references to CVS.
-	* README.alpha: Likewise.
-	* clcommit.m4sh: Likewise.
-	* doc/libtool.texi: Bump copyright years.
-	(libtool script contents): Describe macro_revision as revision
-	without reference to CVS.
-
-2009-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Do not pass $INSTALL via TESTS_ENVIRONMENT.
-	* Makefile.am (TESTS_ENVIRONMENT): Set lt_INSTALL, not INSTALL,
-	so that a bogus relative path to the install-sh script in the
-	source tree is not propagated to the configure scripts of the
-	old test suite.
-	* tests/testsuite.at: Adjust.
-	* tests/install.at (Install tests): Likewise.
-
-2009-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-	    Kurt Roeckx <kurt@roeckx.be>
-
-	New test for lt_dlopenext error message.
-	* tests/lt_dlopenext.at (lt_dlopenext error messages): New file,
-	with new test, with sources taken from the Autobook example.
-	* Makefile.am: Update.
-
-2009-02-03  Kurt Roeckx <kurt@roeckx.be>
-
-	lt_dlopenext sets error upon successful library load.
-	* libltdl/ltdl.c (lt_dlopenadvise): Fix bogus error on
-	successful loading of library with lt_dlopenext.
-	Report by Kaiwang Chen in <http://bugs.debian.org/510006>.
-
-2009-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Fix sed script in install.at.
-	* tests/install.at (Install tests): Fix typo in sed script,
-	fixes test failure on HP-UX.
-
-	Fix $INSTALL in testsuite with relative path to install-sh.
-	* tests/testsuite.at: If `$INSTALL' points to in-tree
-	install-sh, override a possibly-relative path to it with an
-	absolute one.
-
-	install mode: do not pass `-m $install_override_mode' to cp.
-	* libltdl/config/ltmain.m4sh (func_mode_install): New variable
-	$install_cp, factor test when `cp' is used for installation.
-	Do not pass mode override to cp.  Fixes `libtool --mode=install
-	cp ...' on HP-UX; cp should not be used for libraries that might
-	be needed by programs invoked during the installation process.
-
-	Fix sed script portability issue in func_version.
-	* libltdl/config/getopt.m4sh (func_version): Remove space in
-	`/\./! {' sed command, to please HP-UX sed.
-
-2009-01-31  Jeff Squyres <jsquyres@cisco.com>
-	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	New test for bogus lt_dlopen error message.
-	* tests/lt_dlopen.at (lt_dlopen error messages): New file, new
-	test, marked as XFAIL for now.
-	* Makefile.am: Adjust.
-	Report and reproducible test case by Jeff Squyres.
-
-2009-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	execute mode: do not transform *.lo or *.la arguments.
-	* libltdl/config/ltmain.m4sh (func_mode_execute): Do not check
-	arguments matching *.lo or *.la for script wrappers.
-	* tests/execute-mode.at (execute mode): Add tests.
-	* NEWS, THANKS: Update.
-	Report by Paul Biggar.
-
-	Nonexistent `main' does not guarantee link failure.
-	* tests/fail.at (Failure tests): Use an unresolved symbol,
-	rather than non-presence of `main', to provoke a link failure
-	also on QNX.  Only check for failure of the libtool script if
-	the link without libtool would have failed, too.
-	Report by Mike Gorchak.
-
-	Use AT_CHECK more liberally in duplicate members test.
-	* tests/duplicate_members.at (duplicate members in archive
-	tests): Wrap link commands in AT_CHECK, they might fail, as seen
-	on QNX.
-	* THANKS: Update.
-	Report by Mike Gorchak.
-
-2009-01-30  Akim Demaille  <demaille@gostai.com>
-
-	Fix cwrapper warnings from MSVC 2005.
-	* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src)
-	[file scope]: define _CRT_SECURE_NO_DEPRECATE.
-
-2009-01-29  Akim Demaille  <demaille@gostai.com>
-
-	Fix bootstrap with older libtool.m4 in reach of aclocal.
-	* libltdl/m4/lt~obsolete.m4: Add stub definitions for
-	_LT_REQUIRED_DARWIN_CHECKS and _LT_AC_PROG_CXXCPP.
-
-	Fix func_exec_init.
-	* tests/defs.m4sh (func_exec_init): Instead of using the undefined
-	my_dir, call func_dirname_and_basename and use its result.
-	(func_make): For consistency, don't use the useless local variable
-	my_dir.
-
-2009-01-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Document --mode short-hands better, and test them.
-	* doc/libtool.texi (Invoking libtool): Give examples for using
-	the `--mode=MODE' short-hand `MODE', or abbreviations thereof.
-	* libltdl/config/ltmain.m4sh: Mention the short-hand for MODE
-	in the --help output.
-	* tests/help.at (mode short-hands): New test group.
-	Suggestion by Bruno Haible.
-
-	func_version copes with multi-line copyright headers.
-	* libltdl/config/getopt.m4sh (func_version): Slurp in copyright
-	lines until a period is found.
-	* libltdl/config/ltmain.m4sh: Multi-line copyright is ok to use
-	now.
-	* tests/help.at (standard command line options): New file, new
-	tests.  Make this test group the first one for libtool tests,
-	moving the banner ...
-	* tests/duplicate_members.at: ... from here.
-	* Makefile.am (TESTSUITE_AT): Add tests/help.at.
-
-2009-01-29  Akim Demaille  <demaille@gostai.com>
-	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Normalize compiler output due to compiler wrappers.
-	* tests/testsuite.at (LT_AT_NORMALIZE_COMPILER_OUTPUT): New
-	macro, to normalize ccache and distcc output.
-	* tests/localization.at (localized compiler messages): Use it.
-
-2009-01-29  Peter Rosin  <peda@lysator.liu.se>
-
-	Make modified libtool script in cwrapper test executable
-	* tests/cwrapper.at: Make modified libtool script executable.
-	Report by Roumen Petrov.
-
-2009-01-28  Akim Demaille  <demaille@gostai.com>
-
-	Clean space uses.
-	* libtoolize.m4sh: Remove trailing spaces.
-	Use <tab><sp>, as some editors remove "useless" spaces in
-	<sp><tab>.
-
-2009-01-26  Peter Rosin  <peda@lysator.liu.se>
-
-	AWK is required, make sure it is set.
-	* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS: Make sure
-	AWK is set (automake brings it in, but is not always used).
-	Fixes old-m4-iface.at on MSYS/MSVC.
-
-2009-01-25  Mike Frysinger  <vapier@gentoo.org>
-
-	Fix typo in libtool install mode documentation.
-	* libltdl/config/ltmain.m4sh (func_mode_help): Change -inst-prefix
-	to -inst-prefix-dir.
-	* doc/libtool.texi (Install mode): Likewise.
-
-2009-01-24  Charles Wilson  <libtool@cwilson.fastmail.fm>
-
-	Add -Wall to cwrapper tests.
-	* tests/cwrapper.at: Add -Wall existing tests. Add additional
-	round of tests with -Wall alone.
-
-2009-01-24  Charles Wilson  <libtool@cwilson.fastmail.fm>
-
-	[cygwin|mingw] cwrapper cleanups.
-	* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src)
-	[file scope]: re-organized includes and portability
-	macros. Avoid oldnames on MINGW32 and MSVC for
-	setmode/stat/chmod/getcwd/putenv. Declare _putenv on
-	MINGW32 when -ansi. Use namespaced macro LT_DEBUGWRAPPER.
-
-2009-01-24  Peter Rosin  <peda@lysator.liu.se>
-
-	Expand exit status test in LT_AT_NOINST_EXEC_CHECK correctly
-	* tests/testsuite.at (LT_AT_NOINST_EXEC_CHECK): STATUS is
-	argument $3, not $2.
-
-2009-01-23  Charles Wilson  <libtool@cwilson.fastmail.fm>
-
-	Add tests for cwrapper with -std=c89 and -std=c99
-	* tests/cwrapper.at: New file.
-	* Makefile.am: Add tests/cwrapper.at.
-
-2009-01-22  Peter Rosin  <peda@lysator.liu.se>
-
-	Unify line endings in localization test.
-	* tests/testsuite.at: Update copyright year.
-	(LT_AT_UNIFY_NL): Add macro that unifies line endings on
-	platforms that suffer from such confusion.
-	* tests/localization.at: Use it. Update copyright year. Fixes
-	the test on MSYS/MSVC.
-
-2009-01-21  Charles Wilson  <libtool@cwilson.fastmail.fm>
-
-	[cygwin|mingw] Fix compile warnings when -std=c89.
-	* libltdl/config/ltmain.m4sh (func_emit_wrapper_part1):
-	move contents to...
-	(func_emit_wrapper_part2): move contents to...
-	(func_emit_wrapper): here.
-	(func_emit_cwrapperexe_src) [file scope]: Remove
-	variables script_text_part1 and script_text_part2.
-	(func_emit_cwrapperexe_src) [lt_dump_script]: New function.
-	(func_emit_cwrapperexe_src) [main]: Call it.
-
-2009-01-21  Charles Wilson  <libtool@cwilson.fastmail.fm>
-
-	Minor cygwin cleanup
-	* libltdl/config/ltmain.m4sh (func_generate_dlsyms): Correct
-	case pattern for cygwin.
-
-2009-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Avoid failure due to Cygwin path detection bug.
-	* tests/execute-mode.at (execute mode): Ignore noise on stderr;
-	Cygwin might consider `d\"e' to be a DOS-style path and warn.
-	Report by Charles Wilson.
-
-2009-01-19  Robert Millan  <rmh@aybabtu.com>
-
-	Support GNU/kOpenSolaris.
-	* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
-	(_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
-	(_LT_LANG_CXX_CONFIG) [kopensolaris*-gnu]: Recognize
-	GNU/kOpenSolaris.
-	* libltdl/m4/ltdl.m4 (LT_SYS_DLOPEN_DEPLIBS): Likewise.
-	* NEWS, THANKS: Update.
-
-2009-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	Another LT_AT_EXEC_CHECK fixup.
-	* tests/shlibpath.at (shlibpath_overrides_runpath): Use
-	LT_AT_EXEC_CHECK instead of AT_CHECK.
-
-2009-01-19  Roumen Petrov  <bugtrack@roumenpetrov.info>  (tiny change)
-
-	Add missing $EXEEXT to java test.
-	* tests/convenience.at (Java convenience archives): Add $EXEEXT.
-
-2009-01-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Bump copyright years.
-	* ChangeLog.2008: New, rotated from ...
+	* ChangeLog.2009: New, rotated from ...
 	* ChangeLog: ... here.
-	* Makefile.am (EXTRA_DIST): Add ChangeLog.2008.
+	* 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.
 
-2009-01-14  Peter Rosin  <peda@lysator.liu.se>
-
-	Fix flakey mdemo-dryrun test on MSYS (again!)
-	* tests/mdemo-dryrun.test: ls -l in MSYS sometimes shows year,
-	not time, for really fresh files. Add sleep 1 call at yet another
-	strategic position. Makes the test pass reliably for MSYS/MinGW.
-
-Continued in ChangeLog.2008
+Continued in ChangeLog.2009
 
 vim:tw=72
diff --git a/ChangeLog b/ChangeLog.2009
similarity index 100%
copy from ChangeLog
copy to ChangeLog.2009
diff --git a/Makefile.am b/Makefile.am
index 5c570b5..54018ee 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
 ## Makefile.am -- Process this file with automake to produce Makefile.in
 ##
-##   Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free
+##   Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010  Free
 ##   Software Foundation, Inc.
 ##   Written by Gary V. Vaughan, 2003
 ##
@@ -146,7 +146,7 @@ EXTRA_DIST     += bootstrap $(srcdir)/libtoolize.in $(auxdir)/ltmain.m4sh \
 		  ChangeLog.1999 ChangeLog.2000 ChangeLog.2001 \
 		  ChangeLog.2002 ChangeLog.2003 ChangeLog.2004 \
 		  ChangeLog.2005 ChangeLog.2006 ChangeLog.2007 \
-		  ChangeLog.2008
+		  ChangeLog.2008 ChangeLog.2009
 CLEANFILES     += libtool libtoolize libtoolize.tmp \
 		  $(auxdir)/ltmain.tmp $(m4dir)/ltversion.tmp
 
diff --git a/NEWS b/NEWS
index 7087cdd..d41db5e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,6 @@
 NEWS - list of user-visible changes between releases of GNU Libtool
 
-New in 2.2.8 2009-??-??: git version 2.2.7a, Libtool team:
+New in 2.2.8 2010-??-??: git version 2.2.7a, Libtool team:
 
 * New features:
 
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 91d0800..80a1ff3 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -5,7 +5,7 @@ m4_divert_push([SCRIPT])# @configure_input@
 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
-# 2007, 2008, 2009 Free Software Foundation, Inc.
+# 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index cd8afce..29f1222 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -1,7 +1,8 @@
 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 #
 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
-#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
+#                 Inc.
 #   Written by Gordon Matzigkeit, 1996
 #
 # This file is free software; the Free Software Foundation gives
@@ -10,7 +11,8 @@
 
 m4_define([_LT_COPYING], [dnl
 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
-#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
+#                 Inc.
 #   Written by Gordon Matzigkeit, 1996
 #
 #   This file is part of GNU Libtool.
@@ -632,7 +634,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
 configured by $[0], generated by m4_PACKAGE_STRING.
 
-Copyright (C) 2009 Free Software Foundation, Inc.
+Copyright (C) 2010 Free Software Foundation, Inc.
 This config.lt script is free software; the Free Software Foundation
 gives unlimited permision to copy, distribute and modify it."
 
diff --git a/libtoolize.m4sh b/libtoolize.m4sh
index bff700a..8cbc6a6 100644
--- a/libtoolize.m4sh
+++ b/libtoolize.m4sh
@@ -5,7 +5,7 @@ AS_INIT[]m4_divert_push([HEADER-COPYRIGHT])dnl
 # libtoolize (GNU @PACKAGE@@TIMESTAMP@) @VERSION@
 # Written by Gary V. Vaughan <gary@gnu.org>, 2003
 
-# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Mon Jan 11 15:32:33 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1NUQwD-0004tS-1w
	for mharc-libtool-commit@gnu.org; Mon, 11 Jan 2010 15:32:33 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NUQwB-0004sq-CT
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 15:32:31 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1NUQw6-0004qH-I0
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 15:32:30 -0500
Received: from [199.232.76.173] (port=45588 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NUQw6-0004q9-6K
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 15:32:26 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:40208
	helo=internal.in.savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1NUQw5-0006qA-QX
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 15:32:26 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NUQw4-0001QJ-S1
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 20:32:24 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NUQw4-0003GX-OQ
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 20:32:24 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 4d9381c8e169234431b50002eb95672ee7cc1850
X-Git-Newrev: 85223ba6a414f591924f904fb217919439760ac8
Message-Id: <E1NUQw4-0003GX-OQ@vcs-noshell.in.savannah.gnu.org>
Date: Mon, 11 Jan 2010 20:32:24 +0000
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-174-g85223ba
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Jan 2010 20:32:31 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  85223ba6a414f591924f904fb217919439760ac8 (commit)
      from  4d9381c8e169234431b50002eb95672ee7cc1850 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 85223ba6a414f591924f904fb217919439760ac8
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sun Jan 10 09:06:57 2010 +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.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |    9 ++
 Makefile.am         |    1 +
 tests/exceptions.at |  268 +++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 278 insertions(+), 0 deletions(-)
 create mode 100644 tests/exceptions.at

diff --git a/ChangeLog b/ChangeLog
index bb79597..68da218 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+	    Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>
+
+	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.
+
 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Bump copyright years.
diff --git a/Makefile.am b/Makefile.am
index 54018ee..445d01d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -493,6 +493,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/recursive.at \
 		  tests/template.at \
 		  tests/ctor.at \
+		  tests/exceptions.at \
 		  tests/early-libtool.at \
 		  tests/no-executables.at \
 		  tests/deplibs-ident.at \
diff --git a/tests/exceptions.at b/tests/exceptions.at
new file mode 100644
index 0000000..920b30e
--- /dev/null
+++ b/tests/exceptions.at
@@ -0,0 +1,268 @@
+# exception.at -- test C++ exception handling with libtool  -*- Autotest -*-
+#
+#   Copyright (C) 2010 Free Software Foundation, Inc.
+#
+#   This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING.  If not, a copy
+# can be downloaded from  http://www.gnu.org/licenses/gpl.html,
+# or obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+####
+
+AT_SETUP([C++ exception handling])
+AT_KEYWORDS([libtool])
+AT_KEYWORDS([libltdl])
+: ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
+: ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
+CPPFLAGS="$LTDLINCL $CPPFLAGS"
+
+AT_DATA([module.h],
+[[#include <exception>
+#include <string>
+class modexc : public std::exception {
+public:
+  modexc (std::string str) : message (str) { }
+  ~modexc () throw () { }
+  virtual const char *what () const throw ()
+  {
+    return message.c_str ();
+  }
+private:
+  std::string message;
+};
+extern "C" int modfoo () throw (modexc);
+]])
+
+AT_DATA([module.cpp],
+[[#include <iostream>
+#include "module.h"
+
+int modbar (void) throw (modexc)
+{
+  throw modexc ("exception in module");
+}
+
+extern "C"
+int modfoo (void) throw (modexc)
+{
+  try {
+    modbar ();
+  }
+  catch (modexc e) {
+    std::cerr << "caught inside module: " << e.what () << '\n';
+    throw modexc ("exception from module");
+  }
+  return 0;
+}
+]])
+
+AT_DATA([lib.h],
+[[#include <exception>
+#include <string>
+class libexc : public std::exception {
+public:
+  libexc (std::string str) : message (str) { }
+  ~libexc () throw () { }
+  virtual const char *what () const throw ()
+  {
+    return message.c_str ();
+  }
+private:
+  std::string message;
+};
+int libfoo () throw (libexc);
+]])
+
+AT_DATA([lib.cpp],
+[[#include <iostream>
+#include "lib.h"
+
+int libbar (void) throw (libexc)
+{
+  throw libexc ("exception in library");
+}
+
+int libfoo (void) throw (libexc)
+{
+  try {
+    libbar ();
+  }
+  catch (libexc e) {
+    std::cerr << "caught inside lib: " << e.what () << '\n';
+    throw libexc ("exception from library");
+  }
+  return 0;
+}
+]])
+
+AT_DATA([main.cpp],
+[[#include <ltdl.h>
+#include <cstdlib>
+#include <iostream>
+#include <exception>
+#include <string>
+#include "lib.h"
+#include "module.h"
+
+class exc : public std::exception {
+public:
+  exc (std::string str) : message (str) { }
+  ~exc () throw () { }
+  virtual const char *what () const throw ()
+  {
+    return message.c_str ();
+  }
+private:
+  std::string message;
+};
+
+int foo (void) throw (exc)
+{
+  throw exc ("exception in program");
+  return 0;
+}
+
+int exceptions_in_prog (void)
+{
+  std::cerr << "exceptions_in_prog\n";
+  try {
+    foo ();
+  }
+  catch (exc e) {
+     std::cerr << "caught: " << e.what () << '\n';
+    return 0;
+  }
+  return 1;
+}
+
+int exceptions_in_lib (void)
+{
+  std::cerr << "exceptions_in_lib\n";
+  try {
+    libfoo ();
+  }
+  catch (libexc e) {
+     std::cerr << "caught: " << e.what () << '\n';
+    return 0;
+  }
+  return 1;
+}
+
+int exceptions_in_module (void)
+{
+  std::cerr << "exceptions_in_module\n";
+
+  if (lt_dlinit ())
+    {
+      std::cerr << "init error: " << lt_dlerror () << '\n';
+      return 1;
+    }
+
+  // Some systems need RTLD_GLOBAL for exceptions to work in modules.
+  lt_dladvise advise;
+  if (lt_dladvise_init (&advise) || lt_dladvise_global (&advise))
+    {
+      std::cerr << "error setting advise global\n";
+      return 1;
+    }
+
+  lt_dlhandle handle = lt_dlopenadvise ("module.la", advise);
+  if (handle == NULL)
+    {
+      std::cerr << "dlopen failed: " << lt_dlerror () << '\n';
+      return 1;
+    }
+  lt_dladvise_destroy (&advise);
+
+  typedef int (*pfun) (void);
+  pfun pf = (pfun) lt_dlsym (handle, "modfoo");
+  if (pf == NULL)
+    {
+      std::cerr << "dlsym failed: " << lt_dlerror () << '\n';
+      return 1;
+    }
+
+  try {
+    (*pf) ();
+  }
+  catch (modexc e) {
+    std::cerr << "caught: " << e.what () << '\n';
+    if (lt_dlclose (handle))
+      {
+        std::cerr << "dlclose failed: " << lt_dlerror () << '\n';
+	return 1;
+      }
+    if (lt_dlexit ())
+      {
+        std::cerr << "lt_dlexit failed: " << lt_dlerror () << '\n';
+	return 1;
+      }
+    return 0;
+  }
+  return 1;
+}
+
+int main (void)
+{
+  if (exceptions_in_prog ())
+    return 1;
+  if (exceptions_in_lib ())
+    return 1;
+  if (exceptions_in_module ())
+    return 1;
+  return 0;
+}
+]])
+
+inst=`pwd`/inst
+libdir=$inst/lib
+bindir=$inst/bin
+moddir=$inst/mod
+mkdir l m $inst $libdir $bindir $moddir
+
+# If the C++ compiler isn't capable, don't bother.
+AT_CHECK([$CXX $CPPFLAGS $CXXFLAGS -c main.cpp || exit 77], [], [ignore], [ignore])
+
+for file in lib.cpp module.cpp; do
+  AT_CHECK([$LIBTOOL --mode=compile --tag=CXX $CXX $CPPFLAGS $CXXFLAGS -c $file],
+	   [], [ignore], [ignore])
+done
+AT_CHECK([$LIBTOOL --mode=link --tag=CXX $CXX $CXXFLAGS $LDFLAGS -o l/liba.la ]dnl
+	 [lib.lo -no-undefined -version-info 1:0:0 -rpath $libdir],
+	 [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=link --tag=CXX $CXX $CXXFLAGS $LDFLAGS -o m/module.la ]dnl
+	 [module.lo -module -avoid-version -no-undefined -rpath $moddir],
+	 [], [ignore], [ignore])
+
+# We need -export-dynamic for the exception handling in modules to work.
+AT_CHECK([$LIBTOOL --mode=link --tag=CXX $CXX $CXXFLAGS $LDFLAGS -o main$EXEEXT ]dnl
+	 [main.$OBJEXT l/liba.la -dlopen m/module.la $LIBLTDL -export-dynamic],
+	 [], [ignore], [ignore])
+
+LT_AT_NOINST_EXEC_CHECK([./main], [-dlopen m/module.la], [], [ignore], [ignore])
+
+AT_CHECK([$LIBTOOL --mode=install cp l/liba.la $libdir],
+	 [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=install cp m/module.la $moddir],
+	 [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=install cp main$EXEEXT $bindir],
+	 [], [ignore], [ignore])
+rm -rf l m main$EXEEXT
+
+LTDL_LIBRARY_PATH=$moddir
+export LTDL_LIBRARY_PATH
+LT_AT_EXEC_CHECK([$bindir/main], [], [ignore], [ignore])
+
+AT_CLEANUP


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Mon Jan 11 15:50:22 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1NURDR-00062j-So
	for mharc-libtool-commit@gnu.org; Mon, 11 Jan 2010 15:50:21 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NURDP-0005xl-Gc
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 15:50:19 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1NURDK-0005me-Av
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 15:50:19 -0500
Received: from [199.232.76.173] (port=33955 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NURDK-0005mN-5x
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 15:50:14 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:38466
	helo=internal.in.savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1NURDJ-0003V1-Qj
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 15:50:13 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NURDI-0001ht-PD
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 20:50:12 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NURDI-0004Ga-Ch
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 20:50:12 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 85223ba6a414f591924f904fb217919439760ac8
X-Git-Newrev: 574b79474a2a8f5b83ff40c3cd3adacbaeea32fe
Message-Id: <E1NURDI-0004Ga-Ch@vcs-noshell.in.savannah.gnu.org>
Date: Mon, 11 Jan 2010 20:50:12 +0000
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-175-g574b794
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Jan 2010 20:50:19 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  574b79474a2a8f5b83ff40c3cd3adacbaeea32fe (commit)
      from  85223ba6a414f591924f904fb217919439760ac8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 574b79474a2a8f5b83ff40c3cd3adacbaeea32fe
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Mon Jan 11 21:45:58 2010 +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>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                 |    8 ++
 Makefile.am               |    1 +
 tests/deplib-in-subdir.at |  157 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 166 insertions(+), 0 deletions(-)
 create mode 100644 tests/deplib-in-subdir.at

diff --git a/ChangeLog b/ChangeLog
index 68da218..415a02f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,12 @@
 2010-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	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.
+
+2010-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 	    Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>
 
 	Testsuite exposure for C++ exception handling.
diff --git a/Makefile.am b/Makefile.am
index 445d01d..0190841 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -471,6 +471,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/execute-mode.at \
 		  tests/bindir.at \
 		  tests/cwrapper.at \
+		  tests/deplib-in-subdir.at \
 		  tests/infer-tag.at \
 		  tests/localization.at \
 		  tests/install.at \
diff --git a/tests/deplib-in-subdir.at b/tests/deplib-in-subdir.at
new file mode 100644
index 0000000..048512a
--- /dev/null
+++ b/tests/deplib-in-subdir.at
@@ -0,0 +1,157 @@
+# deplib-in-subdir.at --                         -*- Autotest -*-
+
+#   Copyright (C) 2010 Free Software Foundation, Inc.
+#
+#   This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING.  If not, a copy
+# can be downloaded from  http://www.gnu.org/licenses/gpl.html,
+# or obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+####
+
+# It should be possible to use a nontrivial relative path to the output
+# file name when creating libraries and programs.  The deplibs of these
+# might have relative paths as well.  When executing uninstalled programs,
+# the paths relative to $PWD at build time needs to be translated to a
+# path valid at execution time.
+#
+# Also test installing these libraries and programs; however,
+# use consistent relative paths between `libtool --mode=link' and
+# `libtool --mode=install' in this test.
+
+AT_SETUP([deplib in subdir])
+AT_KEYWORDS([libtool])
+
+AT_DATA([a1.c],
+[[int a1 () { return 0; }
+]])
+AT_DATA([a2.c],
+[[int a2 () { return 0; }
+]])
+AT_DATA([a3.c],
+[[int a3 () { return 0; }
+]])
+AT_DATA([b1.c],
+[[extern int a1 ();
+int b1 () { return a1 (); }
+]])
+AT_DATA([b2.c],
+[[extern int a2 ();
+int b2 () { return a2 (); }
+]])
+AT_DATA([b3.c],
+[[extern int a3 ();
+int b3 () { return a3 (); }
+]])
+AT_DATA([m.c],
+[[extern int b1 ();
+extern int b2 ();
+extern int b3 ();
+int main () { return b1 () + b2 () + b3 (); }
+]])
+
+cwd=`pwd`
+instdir=$cwd/inst
+lib1dir=$instdir/lib1
+lib2dir=$instdir/lib2
+bindir=$instdir/bin
+addrunpath=$cwd/foobar
+LDFLAGS="$LDFLAGS -no-undefined"
+
+flags='-export-symbols-regex ".*"'
+
+mkdir -p sub1 sub2/subsub sub3/subsub $instdir $lib1dir $lib2dir $bindir
+
+for file in a1.c a2.c a3.c b1.c b2.c b3.c; do
+  $LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file
+done
+$CC $CPPFLAGS $CFLAGS -c m.c
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub1/liba1.la a1.lo -rpath $lib1dir],
+	 [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub1/liba2.la a2.lo -rpath $lib1dir],
+	 [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub1/liba3.la a3.lo -rpath $lib1dir],
+	 [], [ignore], [ignore])
+
+AT_CHECK([eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub2/subsub/libb1.la b1.lo ]dnl
+	 [-rpath $lib2dir sub1/liba1.la' "$flags"],
+	 [], [ignore], [ignore])
+cd sub2
+AT_CHECK([eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o subsub/libb2.la ../b2.lo ]dnl
+	 [-rpath $lib2dir ../sub1/liba2.la' "$flags"],
+	 [], [ignore], [ignore])
+cd subsub
+AT_CHECK([eval '$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libb3.la ../../b3.lo ]dnl
+	 [-rpath $lib2dir ../../sub1/liba3.la' "$flags"],
+	 [], [ignore], [ignore])
+cd ../..
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o sub3/subsub/m1$EXEEXT m.$OBJEXT ]dnl
+	 [sub2/subsub/libb1.la sub2/subsub/libb2.la sub2/subsub/libb3.la],
+	 [], [ignore], [ignore])
+cd sub3
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o subsub/m2$EXEEXT ../m.$OBJEXT ]dnl
+	 [../sub2/subsub/libb1.la ../sub2/subsub/libb2.la ../sub2/subsub/libb3.la],
+	 [], [ignore], [ignore])
+cd subsub
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m3$EXEEXT ../../m.$OBJEXT ]dnl
+	 [../../sub2/subsub/libb1.la ../../sub2/subsub/libb2.la ../../sub2/subsub/libb3.la],
+	 [], [ignore], [ignore])
+cd ../..
+
+for i in 1 2 3; do
+  LT_AT_EXEC_CHECK([./sub3/subsub/m$i])
+  cd sub3
+  LT_AT_EXEC_CHECK([./subsub/m$i])
+  cd subsub
+  LT_AT_EXEC_CHECK([./m$i])
+  cd ../..
+done
+
+for i in 1 2 3; do
+  AT_CHECK([$LIBTOOL --mode=install cp sub1/liba$i.la $lib1dir/liba.la], [], [ignore], [ignore])
+done
+
+AT_CHECK([$LIBTOOL --mode=install cp sub2/subsub/libb1.la $lib2dir/libb1.la], [], [ignore], [ignore])
+cd sub2
+AT_CHECK([$LIBTOOL --mode=install cp subsub/libb2.la $lib2dir/libb2.la], [], [ignore], [ignore])
+cd subsub
+AT_CHECK([$LIBTOOL --mode=install cp libb3.la $lib2dir/libb3.la], [], [ignore], [ignore])
+cd ../..
+
+AT_CHECK([$LIBTOOL --mode=install cp sub3/subsub/m1$EXEEXT $bindir/m1$EXEEXT], [], [ignore], [ignore])
+cd sub3
+AT_CHECK([$LIBTOOL --mode=install cp subsub/m2$EXEEXT $bindir/m2$EXEEXT], [], [ignore], [ignore])
+cd subsub
+AT_CHECK([$LIBTOOL --mode=install cp m3$EXEEXT $bindir/m3$EXEEXT], [], [ignore], [ignore])
+cd ../..
+
+AT_CHECK([$LIBTOOL --mode=clean rm -f sub1/liba1.la sub1/liba2.la sub1/liba3.la ]dnl
+	 [sub2/subsub/libb1.la sub2/subsub/libb2.la sub2/subsub/libb3.la ]dnl
+	 [sub3/subsub/m1$EXEEXT sub3/subsub/m2$EXEEXT sub3/subsub/m3$EXEEXT],
+	 [], [ignore], [ignore])
+
+for i in 1 2 3; do
+  LT_AT_EXEC_CHECK([$bindir/m$i$EXEEXT])
+  cd $bindir
+  LT_AT_EXEC_CHECK([./m$i$EXEEXT])
+  cd $cwd
+done
+
+PATH=$bindir${PATH_SEPARATOR-:}$PATH
+for i in 1 2 3; do
+  LT_AT_EXEC_CHECK([m$i$EXEEXT])
+done
+
+AT_CLEANUP


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Mon Jan 11 15:57:49 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1NURKf-0001ve-8g
	for mharc-libtool-commit@gnu.org; Mon, 11 Jan 2010 15:57:49 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NURKd-0001v0-Bu
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 15:57:47 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1NURKY-0001sL-M8
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 15:57:47 -0500
Received: from [199.232.76.173] (port=37671 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NURKY-0001sA-FP
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 15:57:42 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:57390
	helo=internal.in.savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1NURKT-0006G3-BW
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 15:57:38 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NURKR-0001lo-RQ
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 20:57:35 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NURKR-0004bc-NJ
	for libtool-commit@gnu.org; Mon, 11 Jan 2010 20:57:35 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 574b79474a2a8f5b83ff40c3cd3adacbaeea32fe
X-Git-Newrev: a75f8acf28774a6f9e9b9b7c015b51c378be1221
Message-Id: <E1NURKR-0004bc-NJ@vcs-noshell.in.savannah.gnu.org>
Date: Mon, 11 Jan 2010 20:57:35 +0000
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-176-ga75f8ac
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Jan 2010 20:57:47 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  a75f8acf28774a6f9e9b9b7c015b51c378be1221 (commit)
      from  574b79474a2a8f5b83ff40c3cd3adacbaeea32fe (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a75f8acf28774a6f9e9b9b7c015b51c378be1221
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Mon Jan 11 21:56:23 2010 +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>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    5 ++
 Makefile.am       |    1 +
 tests/resident.at |  136 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 142 insertions(+), 0 deletions(-)
 create mode 100644 tests/resident.at

diff --git a/ChangeLog b/ChangeLog
index 415a02f..b244706 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+	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.
+
 	Testsuite exposure for relative output file names and deplibs.
 	* tests/deplib-in-subdir.at (deplib in subdir): New file, new
 	test.
diff --git a/Makefile.am b/Makefile.am
index 0190841..8d6682b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -486,6 +486,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/lt_dlopenext.at \
 		  tests/ltdl-api.at \
 		  tests/lalib-syntax.at \
+		  tests/resident.at \
 		  tests/slist.at \
 		  tests/need_lib_prefix.at \
 		  tests/standalone.at \
diff --git a/tests/resident.at b/tests/resident.at
new file mode 100644
index 0000000..8667ca7
--- /dev/null
+++ b/tests/resident.at
@@ -0,0 +1,136 @@
+# resident.at -- test resident modules              -*- Autotest -*-
+
+#   Copyright (C) 2010 Free Software Foundation, Inc.
+#
+#   This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING.  If not, a copy
+# can be downloaded from  http://www.gnu.org/licenses/gpl.html,
+# or obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+####
+
+# Ensure resident modules are not unloaded at program exit:
+# they need to be able to invoke atexit handlers.
+
+AT_SETUP([resident modules])
+AT_KEYWORDS([libltdl])
+
+AT_DATA([main.c],
+[[#include <ltdl.h>
+#include <stdio.h>
+
+int
+main (int argc, char* argv[])
+{
+  int err = 0;
+  lt_dlhandle plugin_handle;
+  lt_dladvise advise;
+
+  if (argc < 2)
+    {
+      fprintf (stderr, "usage: %s plugin\n", argv[0]);
+      return 1;
+    }
+
+  lt_dlinit ();
+  if (lt_dladvise_init (&advise) != 0
+      || lt_dladvise_ext (&advise) != 0
+      || lt_dladvise_resident (&advise) != 0)
+    {
+      printf ("advise failure: %s\n", lt_dlerror ());
+      err = 1;
+    }
+  else
+    {
+      plugin_handle = lt_dlopenadvise (argv[1], advise);
+      if (NULL != plugin_handle)
+	{
+	  int (*pf) (void);
+	  printf ("plugin opened successfully!\n");
+	  pf = lt_dlsym (plugin_handle, "setup_plugin");
+	  if (pf)
+	    pf ();
+	  else
+	    {
+	      printf ("dlsym failure: %s\n", lt_dlerror ());
+	      err = 1;
+	    }
+	  if (!lt_dlisresident (plugin_handle))
+	    {
+	      printf ("module wrongly not marked resident\n");
+	      err = 1;
+	    }
+	  if (lt_dlclose (plugin_handle) != 0)
+	    {
+	      printf ("close failure (expected): %s\n", lt_dlerror ());
+	    }
+	  else
+	    {
+	      printf ("wrongly closed resident module\n");
+	      err = 1;
+	    }
+	}
+      else
+	{
+	  printf ("plugin failed to open: %s\n", lt_dlerror ());
+	  err = 1;
+	}
+      if (lt_dladvise_destroy (&advise) != 0)
+	{
+	  printf ("advise destroy failure: %s\n", lt_dlerror ());
+	  err = 1;
+	}
+    }
+  lt_dlexit ();
+  return err;
+}
+]])
+
+AT_DATA([plugin.c],
+[[#include <stdlib.h>
+
+void
+bye (void)
+{
+  puts ("called from atexit handler");
+}
+
+int
+setup_plugin (void)
+{
+  atexit (bye);
+}
+]])
+
+: ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
+: ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
+
+CPPFLAGS="$LTDLINCL $CPPFLAGS"
+LDFLAGS="$LDFLAGS -no-undefined"
+inst=`pwd`/inst
+libdir=$inst/lib
+
+AT_CHECK([$CC $CPPFLAGS $CFLAGS -c main.c], [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c plugin.c],
+	 [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o plugin.la -rpath $libdir ]dnl
+	 [-module -avoid-version plugin.lo], [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT ]dnl
+	 [-dlopen plugin.la $LIBLTDL],
+	 [], [ignore], [ignore])
+LT_AT_EXEC_CHECK([./main], [], [stdout], [ignore], [./plugin.la])
+AT_CHECK([grep 'called from atexit handler' stdout], [], [ignore])
+
+AT_CLEANUP


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Mon Jan 18 03:53:58 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1NWnMz-00040n-P5
	for mharc-libtool-commit@gnu.org; Mon, 18 Jan 2010 03:53:57 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NWnMx-0003zM-RP
	for libtool-commit@gnu.org; Mon, 18 Jan 2010 03:53:55 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1NWnMt-0003wO-Rm
	for libtool-commit@gnu.org; Mon, 18 Jan 2010 03:53:55 -0500
Received: from [199.232.76.173] (port=47998 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NWnMt-0003wF-Ej
	for libtool-commit@gnu.org; Mon, 18 Jan 2010 03:53:51 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:58864
	helo=internal.in.savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1NWnMs-0003ZX-Mt
	for libtool-commit@gnu.org; Mon, 18 Jan 2010 03:53:51 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NWnMr-0004BP-Qi
	for libtool-commit@gnu.org; Mon, 18 Jan 2010 08:53:49 +0000
Received: from pekberg by vcs-noshell.in.savannah.gnu.org with local (Exim
	4.69) (envelope-from <INVALID.NOREPLY@gnu.org>) id 1NWnMr-0006ee-N0
	for libtool-commit@gnu.org; Mon, 18 Jan 2010 08:53:49 +0000
From: "Peter Rosin" <peda@lysator.liu.se>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: a75f8acf28774a6f9e9b9b7c015b51c378be1221
X-Git-Newrev: 16362c656aac5daf7337f2ed27aae1fe4838d03a
Message-Id: <E1NWnMr-0006ee-N0@vcs-noshell.in.savannah.gnu.org>
Date: Mon, 18 Jan 2010 08:53:49 +0000
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-177-g16362c6
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 18 Jan 2010 08:53:56 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  16362c656aac5daf7337f2ed27aae1fe4838d03a (commit)
      from  a75f8acf28774a6f9e9b9b7c015b51c378be1221 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 16362c656aac5daf7337f2ed27aae1fe4838d03a
Author: Peter Rosin <peda@lysator.liu.se>
Date:   Mon Jan 18 09:48:23 2010 +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>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                     |   12 +++++++++
 libltdl/loaders/loadlibrary.c |   51 +++++++++++++++++++++++++++++++++++-----
 2 files changed, 56 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b244706..5f2518c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2010-01-02  Peter Rosin  <peda@lysator.liu.se>
+
+	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.
+
 2010-01-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Ensure functions from resident modules work in atexit handlers.
diff --git a/libltdl/loaders/loadlibrary.c b/libltdl/loaders/loadlibrary.c
index 97fddf4..40435fe 100644
--- a/libltdl/loaders/loadlibrary.c
+++ b/libltdl/loaders/loadlibrary.c
@@ -1,7 +1,7 @@
 /* loader-loadlibrary.c --  dynamic linking for Win32
 
    Copyright (C) 1998, 1999, 2000, 2004, 2005, 2006,
-                 2007, 2008 Free Software Foundation, Inc.
+                 2007, 2008, 2010 Free Software Foundation, Inc.
    Written by Thomas Tanner, 1998
 
    NOTE: The canonical source of this file is maintained with the
@@ -98,6 +98,14 @@ get_vtable (lt_user_data loader_data)
 
 #include <windows.h>
 
+static UINT WINAPI wrap_geterrormode (void);
+static UINT WINAPI fallback_geterrormode (void);
+
+typedef UINT (WINAPI geterrormode_type) (void);
+
+static geterrormode_type *geterrormode = wrap_geterrormode;
+
+
 /* A function called through the vtable when this loader is no
    longer needed by the application.  */
 static int
@@ -170,16 +178,14 @@ vm_open (lt_user_data LT__UNUSED loader_data, const char *filename,
     }
 
   {
-    /* Silence dialog from LoadLibrary on some failures.
-       No way to get the error mode, but to set it,
-       so set it twice to preserve any previous flags. */
-    UINT errormode = SetErrorMode(SEM_FAILCRITICALERRORS);
-    SetErrorMode(errormode | SEM_FAILCRITICALERRORS);
+    /* Silence dialog from LoadLibrary on some failures. */
+    UINT errormode = geterrormode ();
+    SetErrorMode (errormode | SEM_FAILCRITICALERRORS);
 
     module = LoadLibrary (wpath);
 
     /* Restore the error mode. */
-    SetErrorMode(errormode);
+    SetErrorMode (errormode);
   }
 
   /* libltdl expects this function to fail if it is unable
@@ -249,3 +255,34 @@ vm_sym (lt_user_data LT__UNUSED loader_data, lt_module module, const char *name)
 
   return address;
 }
+
+
+
+/* --- HELPER FUNCTIONS --- */
+
+
+/* A function called through the geterrormode variable which checks
+   if the system supports GetErrorMode and arranges for it or a
+   fallback implementation to be called directly in the future. The
+   selected version is then called. */
+static UINT WINAPI
+wrap_geterrormode (void)
+{
+  HMODULE kernel32 = GetModuleHandleA ("kernel32.dll");
+  geterrormode = (geterrormode_type *) GetProcAddress (kernel32,
+                                                       "GetErrorMode");
+  if (!geterrormode)
+    geterrormode = fallback_geterrormode;
+  return geterrormode ();
+}
+
+/* A function called through the geterrormode variable for cases
+   where the system does not support GetErrorMode */
+static UINT WINAPI
+fallback_geterrormode (void)
+{
+  /* Prior to Windows Vista, the only way to get the current error
+     mode was to set a new one. In our case, we are setting a new
+     error mode right after "getting" it, so that's fairly ok. */
+  return SetErrorMode (SEM_FAILCRITICALERRORS);
+}


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Thu Jan 21 03:10:46 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1NXs7q-0006jB-GU
	for mharc-libtool-commit@gnu.org; Thu, 21 Jan 2010 03:10:46 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1NXs7p-0006iA-3f
	for libtool-commit@gnu.org; Thu, 21 Jan 2010 03:10:45 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1NXs7n-0006gw-4Q
	for libtool-commit@gnu.org; Thu, 21 Jan 2010 03:10:44 -0500
Received: from [199.232.76.173] (port=39437 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1NXs7m-0006go-PW
	for libtool-commit@gnu.org; Thu, 21 Jan 2010 03:10:42 -0500
Received: from mx20.gnu.org ([199.232.41.8]:45726)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1NXs7m-0003o4-Aj
	for libtool-commit@gnu.org; Thu, 21 Jan 2010 03:10:42 -0500
Received: from [199.232.41.3] (helo=internal.in.savannah.gnu.org)
	by mx20.gnu.org with esmtp (Exim 4.60)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NXs7l-00041F-N5
	for libtool-commit@gnu.org; Thu, 21 Jan 2010 03:10:41 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1NXs7l-0003lF-Kf
	for libtool-commit@gnu.org; Thu, 21 Jan 2010 08:10:41 +0000
Received: from pekberg by vcs-noshell.in.savannah.gnu.org with local (Exim
	4.69) (envelope-from <INVALID.NOREPLY@gnu.org>) id 1NXs7g-0006cL-AY
	for libtool-commit@gnu.org; Thu, 21 Jan 2010 08:10:40 +0000
From: "Peter Rosin" <peda@lysator.liu.se>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 16362c656aac5daf7337f2ed27aae1fe4838d03a
X-Git-Newrev: 080e088e42e230d458e18073fef82b6eab01837f
Message-Id: <E1NXs7g-0006cL-AY@vcs-noshell.in.savannah.gnu.org>
Date: Thu, 21 Jan 2010 08:10:36 +0000
X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6,
	seldom 2.4 (older, 4)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-178-g080e088
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Thu, 21 Jan 2010 08:10:45 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  080e088e42e230d458e18073fef82b6eab01837f (commit)
      from  16362c656aac5daf7337f2ed27aae1fe4838d03a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 080e088e42e230d458e18073fef82b6eab01837f
Author: Peter Rosin <peda@lysator.liu.se>
Date:   Thu Jan 21 08:42:12 2010 +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>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                     |   15 +++
 Makefile.am                   |    1 +
 libltdl/loaders/loadlibrary.c |   45 +++++++-
 tests/loadlibrary.at          |  251 +++++++++++++++++++++++++++++++++++++++++
 4 files changed, 308 insertions(+), 4 deletions(-)
 create mode 100644 tests/loadlibrary.at

diff --git a/ChangeLog b/ChangeLog
index 5f2518c..9dce6a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2010-01-20  Peter Rosin  <peda@lysator.liu.se>
+
+	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.
+
 2010-01-02  Peter Rosin  <peda@lysator.liu.se>
 
 	Use GetErrorMode if it is available.
diff --git a/Makefile.am b/Makefile.am
index 8d6682b..40a0138 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -485,6 +485,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/lt_dlopen_a.at \
 		  tests/lt_dlopenext.at \
 		  tests/ltdl-api.at \
+		  tests/loadlibrary.at \
 		  tests/lalib-syntax.at \
 		  tests/resident.at \
 		  tests/slist.at \
diff --git a/libltdl/loaders/loadlibrary.c b/libltdl/loaders/loadlibrary.c
index 40435fe..139851a 100644
--- a/libltdl/loaders/loadlibrary.c
+++ b/libltdl/loaders/loadlibrary.c
@@ -98,12 +98,19 @@ get_vtable (lt_user_data loader_data)
 
 #include <windows.h>
 
+#define LOCALFREE(mem)					     LT_STMT_START { \
+	if (mem) { LocalFree ((void *)mem); mem = NULL; }    } LT_STMT_END
+#define LOADLIB__SETERROR(errmsg) LT__SETERRORSTR (loadlibraryerror (errmsg))
+#define LOADLIB_SETERROR(errcode) LOADLIB__SETERROR (LT__STRERROR (errcode))
+
+static const char *loadlibraryerror (const char *default_errmsg);
 static UINT WINAPI wrap_geterrormode (void);
 static UINT WINAPI fallback_geterrormode (void);
 
 typedef UINT (WINAPI geterrormode_type) (void);
 
 static geterrormode_type *geterrormode = wrap_geterrormode;
+static char *error_message = 0;
 
 
 /* A function called through the vtable when this loader is no
@@ -112,6 +119,7 @@ static int
 vl_exit (lt_user_data LT__UNUSED loader_data)
 {
   vtable = NULL;
+  LOCALFREE (error_message);
   return 0;
 }
 
@@ -213,7 +221,9 @@ vm_open (lt_user_data LT__UNUSED loader_data, const char *filename,
           }
       }
 
-    if (cur || !module)
+    if (!module)
+      LOADLIB_SETERROR (CANNOT_OPEN);
+    else if (cur)
       {
         LT__SETERROR (CANNOT_OPEN);
         module = 0;
@@ -231,9 +241,9 @@ vm_close (lt_user_data LT__UNUSED loader_data, lt_module module)
 {
   int errors = 0;
 
-  if (FreeLibrary((HMODULE) module) == 0)
+  if (FreeLibrary ((HMODULE) module) == 0)
     {
-      LT__SETERROR (CANNOT_CLOSE);
+      LOADLIB_SETERROR (CANNOT_CLOSE);
       ++errors;
     }
 
@@ -250,7 +260,7 @@ vm_sym (lt_user_data LT__UNUSED loader_data, lt_module module, const char *name)
 
   if (!address)
     {
-      LT__SETERROR (SYMBOL_NOT_FOUND);
+      LOADLIB_SETERROR (SYMBOL_NOT_FOUND);
     }
 
   return address;
@@ -261,6 +271,33 @@ vm_sym (lt_user_data LT__UNUSED loader_data, lt_module module, const char *name)
 /* --- HELPER FUNCTIONS --- */
 
 
+/* Return the windows error message, or the passed in error message on
+   failure. */
+static const char *
+loadlibraryerror (const char *default_errmsg)
+{
+  size_t len;
+  LOCALFREE (error_message);
+
+  FormatMessageA (FORMAT_MESSAGE_ALLOCATE_BUFFER |
+                  FORMAT_MESSAGE_FROM_SYSTEM |
+                  FORMAT_MESSAGE_IGNORE_INSERTS,
+                  NULL,
+                  GetLastError (),
+                  0,
+                  (char *) &error_message,
+                  0, NULL);
+
+  /* Remove trailing CRNL */
+  len = LT_STRLEN (error_message);
+  if (len && error_message[len - 1] == '\n')
+    error_message[--len] = LT_EOS_CHAR;
+  if (len && error_message[len - 1] == '\r')
+    error_message[--len] = LT_EOS_CHAR;
+
+  return len ? error_message : default_errmsg;
+}
+
 /* A function called through the geterrormode variable which checks
    if the system supports GetErrorMode and arranges for it or a
    fallback implementation to be called directly in the future. The
diff --git a/tests/loadlibrary.at b/tests/loadlibrary.at
new file mode 100644
index 0000000..8315a5d
--- /dev/null
+++ b/tests/loadlibrary.at
@@ -0,0 +1,251 @@
+# loadlibrary.at -- test loadlibrary functionality          -*- Autotest -*-
+#
+#   Copyright (C) 2010 Free Software Foundation, Inc.
+#   This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING.  If not, a copy
+# can be downloaded from  http://www.gnu.org/licenses/gpl.html,
+# or obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+####
+
+AT_SETUP([loadlibrary error messages])
+AT_KEYWORDS([libltdl])
+
+eval "`$LIBTOOL --config | $EGREP '^(objdir)='`"
+
+AT_DATA([main.c],
+[[#include <ltdl.h>
+#include <stdio.h>
+
+static int
+standard_error_message(const char *error)
+{
+  int error_number;
+
+  for (error_number = 0; error_number < LT_ERROR_MAX; ++error_number)
+    {
+      lt_dlseterror (error_number);
+      if (error == lt_dlerror ())
+	{
+	  return 1;
+	}
+    }
+
+  lt_dlseterror (LT_ERROR_UNKNOWN);
+  return 0;
+}
+
+int
+main (int argc, char* argv[])
+{
+  int err = 0;
+  lt_dlhandle module = NULL;
+  const lt_dlvtable *loadlibrary;
+  const lt_dlvtable *preopen;
+  lt_dlloader *loader = NULL;
+  lt_dlloader *next;
+  const lt_dlvtable *vtable;
+  void *symbol;
+  const char *error;
+
+  if (argc < 2)
+    {
+      fprintf (stderr, "usage: %s plugin [symbol]\n", argv[0]);
+      return 1;
+    }
+
+  lt_dlinit ();
+
+  loadlibrary = lt_dlloader_find ("lt_loadlibrary");
+  if (!loadlibrary)
+    {
+      /* Skip if the loadlibrary loader isn't supported */
+      printf ("loadlibrary loader not found\n");
+      err = 77;
+      goto cleanup;
+    }
+
+  preopen = lt_dlloader_find ("lt_preopen");
+  if (!loadlibrary)
+    {
+      printf ("preopen loader not found\n");
+      err = 2;
+      goto cleanup;
+    }
+
+  /* Remove all loaders except the preopen and loadlibrary loaders. */
+  while (next = lt_dlloader_next (loader))
+    {
+      if (lt_dlloader_get (next) == loadlibrary)
+	{
+	  loader = next;
+	  continue;
+	}
+
+      if (lt_dlloader_get (next) == preopen)
+	{
+	  loader = next;
+	  continue;
+	}
+
+      lt_dlloader_remove (lt_dlloader_get (next)->name);
+    }
+
+  module = lt_dlopen (argv[1]);
+  error = lt_dlerror ();
+
+  if (module)
+    {
+      printf ("lt_dlopen: success!\n");
+
+      if (argc == 2)
+	{
+	  /* But failure was the desired result... */
+	  printf ("expected failure\n");
+	  err = 2;
+	  goto cleanup;
+	}
+    }
+  else if (argc > 2)
+    {
+      /* Didn't expect failure... */
+      printf ("lt_dlopen: failure: %s\n", error);
+      err = 2;
+      goto cleanup;
+    }
+  else if (standard_error_message (error))
+    {
+      /* Expected custom error message... */
+      printf ("lt_dlopen: standard error (bad): %s\n", error);
+      err = 1;
+      goto cleanup;
+    }
+  else
+    {
+      printf ("lt_dlopen: custom error (good): %s\n", error);
+      goto cleanup;
+    }
+
+  symbol = lt_dlsym (module, argv[2]);
+  error = lt_dlerror ();
+
+  if (symbol)
+    {
+      printf ("lt_dlsym: success!\n");
+    }
+  else if (standard_error_message (error))
+    {
+      /* Expected custom failure message... */
+      printf ("lt_dlsym: standard error (bad): %s\n", error);
+      err = 1;
+    }
+  else
+    {
+      printf ("lt_dlsym: custom error (good): %s\n", error);
+    }
+
+cleanup:
+  if (module)
+    {
+      lt_dlclose (module);
+    }
+  lt_dlexit ();
+  return err;
+}
+]])
+
+AT_DATA([foomod.c],
+[[
+int foosym (void);
+int
+foosym (void)
+{
+  return 0;
+}
+]])
+
+AT_DATA([bardep.c],
+[[
+int bardep (void);
+int
+bardep (void)
+{
+  return 0;
+}
+]])
+
+AT_DATA([barmod.c],
+[[
+int bardep (void);
+int barsym (void);
+int
+barsym (void)
+{
+  return bardep ();
+}
+]])
+
+: ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
+: ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
+
+CPPFLAGS="$LTDLINCL $CPPFLAGS"
+inst=`pwd`/inst
+libdir=$inst/lib
+
+AT_CHECK([$CC $CPPFLAGS $CFLAGS -c main.c], [], [ignore], [ignore])
+for file in foomod.c bardep.c barmod.c; do
+  AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c $file],
+	   [], [ignore], [ignore])
+done
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o foomod.la ]dnl
+	 [-rpath $libdir -module -avoid-version -no-undefined ]dnl
+	 [foomod.lo],
+	 [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o libbardep.la ]dnl
+	 [-rpath $libdir -avoid-version -no-undefined ]dnl
+	 [bardep.lo],
+	 [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o barmod.la ]dnl
+	 [-rpath $libdir -module -avoid-version -no-undefined ]dnl
+	 [barmod.lo ./libbardep.la],
+	 [], [ignore], [ignore])
+
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT ]dnl
+	 [main.$OBJEXT $LIBLTDL],
+	 [], [ignore], [ignore])
+
+. ./foomod.la
+AT_CHECK([test -n "$dlname" || (exit 77)])
+
+LT_AT_EXEC_CHECK([./main], [], [ignore], [ignore], [./foomod.la no_symbol])
+
+#   chmod -x doesn't appear to work in MSYS, and Wine can load no-exec dlls.
+dnl chmod -x $objdir/$dlname
+dnl LT_AT_EXEC_CHECK([./main], [], [ignore], [ignore], [./foomod.la])
+
+rm -f $objdir/$dlname
+LT_AT_EXEC_CHECK([./main], [], [ignore], [ignore], [./foomod.la])
+
+LT_AT_EXEC_CHECK([./main], [], [ignore], [ignore], [./barmod.la no_symbol])
+
+. ./libbardep.la
+#   chmod -x doesn't appear to work in MSYS, and Wine can load no-exec dlls.
+dnl chmod -x $objdir/$dlname
+dnl LT_AT_EXEC_CHECK([./main], [], [ignore], [ignore], [./barmod.la])
+
+rm -f $objdir/$dlname
+LT_AT_EXEC_CHECK([./main], [], [ignore], [ignore], [./barmod.la])
+
+AT_CLEANUP


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Fri Jan 29 02:55:07 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Nalh5-0006Ry-K2
	for mharc-libtool-commit@gnu.org; Fri, 29 Jan 2010 02:55:07 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1Nalh4-0006Rj-19
	for libtool-commit@gnu.org; Fri, 29 Jan 2010 02:55:06 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1Nalgy-0006RU-Qg
	for libtool-commit@gnu.org; Fri, 29 Jan 2010 02:55:05 -0500
Received: from [199.232.76.173] (port=34891 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Nalgy-0006RR-LX
	for libtool-commit@gnu.org; Fri, 29 Jan 2010 02:55:00 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:50242
	helo=internal.in.savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1Nalgy-0008Ot-3D
	for libtool-commit@gnu.org; Fri, 29 Jan 2010 02:55:00 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nalgx-0001Dd-Dd
	for libtool-commit@gnu.org; Fri, 29 Jan 2010 07:54:59 +0000
Received: from pekberg by vcs-noshell.in.savannah.gnu.org with local (Exim
	4.69) (envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nalgx-0003Zz-8D
	for libtool-commit@gnu.org; Fri, 29 Jan 2010 07:54:59 +0000
From: "Peter Rosin" <peda@lysator.liu.se>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: 080e088e42e230d458e18073fef82b6eab01837f
X-Git-Newrev: f4c63234c91e88495b082a94cab63bebdb0b2484
Message-Id: <E1Nalgx-0003Zz-8D@vcs-noshell.in.savannah.gnu.org>
Date: Fri, 29 Jan 2010 07:54:59 +0000
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-179-gf4c6323
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 29 Jan 2010 07:55:06 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  f4c63234c91e88495b082a94cab63bebdb0b2484 (commit)
      from  080e088e42e230d458e18073fef82b6eab01837f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f4c63234c91e88495b082a94cab63bebdb0b2484
Author: Peter Rosin <peda@lysator.liu.se>
Date:   Fri Jan 29 08:49:45 2010 +0100

    * tests/loadlibrary.at: Fix C++ issues.
    
    Signed-off-by: Peter Rosin <peda@lysator.liu.se>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog            |    4 ++++
 tests/loadlibrary.at |   16 ++++++++++++++--
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9dce6a8..d7af183 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-29  Peter Rosin  <peda@lysator.liu.se>
+
+	* tests/loadlibrary.at: Fix C++ issues.
+
 2010-01-20  Peter Rosin  <peda@lysator.liu.se>
 
 	Report proper errors from the loadlibrary loader.
diff --git a/tests/loadlibrary.at b/tests/loadlibrary.at
index 8315a5d..30ebd3a 100644
--- a/tests/loadlibrary.at
+++ b/tests/loadlibrary.at
@@ -54,8 +54,8 @@ main (int argc, char* argv[])
   lt_dlhandle module = NULL;
   const lt_dlvtable *loadlibrary;
   const lt_dlvtable *preopen;
-  lt_dlloader *loader = NULL;
-  lt_dlloader *next;
+  lt_dlloader loader = NULL;
+  lt_dlloader next;
   const lt_dlvtable *vtable;
   void *symbol;
   const char *error;
@@ -168,6 +168,9 @@ cleanup:
 
 AT_DATA([foomod.c],
 [[
+#ifdef __cplusplus
+extern "C"
+#endif
 int foosym (void);
 int
 foosym (void)
@@ -178,6 +181,9 @@ foosym (void)
 
 AT_DATA([bardep.c],
 [[
+#ifdef __cplusplus
+extern "C"
+#endif
 int bardep (void);
 int
 bardep (void)
@@ -188,8 +194,14 @@ bardep (void)
 
 AT_DATA([barmod.c],
 [[
+#ifdef __cplusplus
+extern "C" {
+#endif
 int bardep (void);
 int barsym (void);
+#ifdef __cplusplus
+}
+#endif
 int
 barsym (void)
 {


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Sat Jan 30 02:39:25 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Nb7vR-0004xo-31
	for mharc-libtool-commit@gnu.org; Sat, 30 Jan 2010 02:39:25 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1Nb7vP-0004w7-4q
	for libtool-commit@gnu.org; Sat, 30 Jan 2010 02:39:23 -0500
Received: from [199.232.76.173] (port=35172 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Nb7vN-0004vj-OH
	for libtool-commit@gnu.org; Sat, 30 Jan 2010 02:39:21 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.60) (envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nb7vI-0008Gb-IF
	for libtool-commit@gnu.org; Sat, 30 Jan 2010 02:39:21 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:35265
	helo=internal.in.savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1Nb7vI-0008GV-5T
	for libtool-commit@gnu.org; Sat, 30 Jan 2010 02:39:16 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nb7vH-0003sa-Ow
	for libtool-commit@gnu.org; Sat, 30 Jan 2010 07:39:15 +0000
Received: from pekberg by vcs-noshell.in.savannah.gnu.org with local (Exim
	4.69) (envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nb7vH-0004lA-KW
	for libtool-commit@gnu.org; Sat, 30 Jan 2010 07:39:15 +0000
From: "Peter Rosin" <peda@lysator.liu.se>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: f4c63234c91e88495b082a94cab63bebdb0b2484
X-Git-Newrev: e4eefcd401b32081fe947b2a731dadcc6bfcd337
Message-Id: <E1Nb7vH-0004lA-KW@vcs-noshell.in.savannah.gnu.org>
Date: Sat, 30 Jan 2010 07:39:15 +0000
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-180-ge4eefcd
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sat, 30 Jan 2010 07:39:23 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  e4eefcd401b32081fe947b2a731dadcc6bfcd337 (commit)
      from  f4c63234c91e88495b082a94cab63bebdb0b2484 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e4eefcd401b32081fe947b2a731dadcc6bfcd337
Author: Peter Rosin <peda@lysator.liu.se>
Date:   Fri Jan 29 09:04:13 2010 +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>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog             |    7 +
 Makefile.am           |    1 +
 tests/dlloader-api.at |  418 +++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 426 insertions(+), 0 deletions(-)
 create mode 100644 tests/dlloader-api.at

diff --git a/ChangeLog b/ChangeLog
index d7af183..b25d9d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
 2010-01-29  Peter Rosin  <peda@lysator.liu.se>
+	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Testsuite exposure for dlloader API.
+	* tests/dlloader-api.at: New file, new test.
+	* Makefile.am (TESTSUITE_AT): Update.
+
+2010-01-29  Peter Rosin  <peda@lysator.liu.se>
 
 	* tests/loadlibrary.at: Fix C++ issues.
 
diff --git a/Makefile.am b/Makefile.am
index 40a0138..29a639a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -485,6 +485,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/lt_dlopen_a.at \
 		  tests/lt_dlopenext.at \
 		  tests/ltdl-api.at \
+		  tests/dlloader-api.at \
 		  tests/loadlibrary.at \
 		  tests/lalib-syntax.at \
 		  tests/resident.at \
diff --git a/tests/dlloader-api.at b/tests/dlloader-api.at
new file mode 100644
index 0000000..a9aa814
--- /dev/null
+++ b/tests/dlloader-api.at
@@ -0,0 +1,418 @@
+# dlloader.at -- test dlloader functionality                -*- Autotest -*-
+#
+#   Copyright (C) 2010 Free Software Foundation, Inc.
+#   This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING.  If not, a copy
+# can be downloaded from  http://www.gnu.org/licenses/gpl.html,
+# or obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+####
+
+AT_SETUP([dlloader API])
+AT_KEYWORDS([libltdl])
+
+AT_DATA([main.c],
+[[#include <ltdl.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+static int
+first_init (lt_user_data data)
+{
+  const char *ctx = (const char *) data;
+
+  printf ("first_init: %s\n", ctx);
+
+  return 0;
+}
+
+static lt_module
+first_open (lt_user_data data, const char *filename, lt_dladvise advise)
+{
+  static const char *first_module = "first";
+  const char *ctx = (const char *) data;
+
+  if (!filename || strcmp (filename, "first"))
+    {
+      printf ("first_open denies a request\n");
+      lt_dlseterror (LT_ERROR_FILE_NOT_FOUND);
+      return NULL;
+    }
+
+  printf ("first_open (\"%s\"): %s\n", filename, ctx);
+
+  return (lt_module) first_module;
+}
+
+static const char *
+first_symbol (void)
+{
+  return "first_symbol";
+}
+
+static void *
+first_sym (lt_user_data data, lt_module module, const char *symbolname)
+{
+  const char *ctx = (const char *) data;
+  const char *filename = (const char *) module;
+
+  printf ("first_sym (%s): %s\n", filename, ctx);
+
+  return (void *) first_symbol;
+}
+
+static int
+first_close (lt_user_data data, lt_module module)
+{
+  const char *ctx = (const char *) data;
+  const char *filename = (const char *) module;
+
+  printf ("first_close (%s): %s\n", filename, ctx);
+
+  return 0;
+}
+
+static int
+first_exit (lt_user_data data)
+{
+  const char *ctx = (const char *) data;
+
+  printf ("first_exit: %s\n", ctx);
+
+  return 0;
+}
+
+static int
+last_init (lt_user_data data)
+{
+  const char *ctx = (const char *) data;
+
+  printf ("last_init: %s\n", ctx);
+
+  return 0;
+}
+
+static lt_module
+last_open (lt_user_data data, const char *filename, lt_dladvise advise)
+{
+  static const char *last_module = "last";
+  const char *ctx = (const char *) data;
+
+  if (!filename || strcmp (filename, "last"))
+    {
+      printf ("last_open denies a request\n");
+      lt_dlseterror (LT_ERROR_FILE_NOT_FOUND);
+      return NULL;
+    }
+
+  printf ("last_open (\"%s\"): %s\n", filename, ctx);
+
+  return (lt_module) last_module;
+}
+
+static const char *
+last_symbol (void)
+{
+  return "last_symbol";
+}
+
+static void *
+last_sym (lt_user_data data, lt_module module, const char *symbolname)
+{
+  const char *ctx = (const char *) data;
+  const char *filename = (const char *) module;
+
+  printf ("last_sym (%s): %s\n", filename, ctx);
+
+  return (void *) last_symbol;
+}
+
+static int
+last_close (lt_user_data data, lt_module module)
+{
+  const char *ctx = (const char *) data;
+  const char *filename = (const char *) module;
+
+  printf ("last_close (%s): %s\n", filename, ctx);
+
+  return 0;
+}
+
+static int
+last_exit (lt_user_data data)
+{
+  const char *ctx = (const char *) data;
+
+  printf ("last_exit: %s\n", ctx);
+
+  return 0;
+}
+
+typedef const char *module_func (void);
+
+int
+main (int argc, char* argv[])
+{
+  int err = 0;
+  lt_dlvtable *first;
+  lt_dlvtable *last;
+  lt_dlhandle module = NULL;
+  module_func *symbol;
+  const char *first_ctx = "first_ctx";
+  const char *last_ctx = "last_ctx";
+  const lt_dlvtable *finder;
+
+  LTDL_SET_PRELOADED_SYMBOLS ();
+
+  if (lt_dlinit ())
+    {
+      printf ("lt_dlinit failed\n");
+      return 1;
+    }
+
+  first = (lt_dlvtable *) malloc (sizeof (*first));
+  if (!first)
+    {
+      printf ("malloc failed\n");
+      err = 1;
+      goto cleanup;
+    }
+
+  first->name = "first";
+  first->sym_prefix = NULL;
+  first->module_open = first_open;
+  first->module_close = first_close;
+  first->find_sym = first_sym;
+  first->dlloader_init = first_init; /* test that it isn't called twice */
+  first->dlloader_exit = first_exit;
+  first->dlloader_data = (lt_user_data) first_ctx;
+  first->priority = LT_DLLOADER_PREPEND;
+
+  if (first_init (first->dlloader_data))
+    {
+      printf ("first_init failed\n");
+      err = 1;
+      goto cleanup;
+    }
+
+  if (lt_dlloader_add (first))
+    {
+      printf ("lt_dlloader_add failed: %s\n", lt_dlerror ());
+      err = 1;
+      goto cleanup;
+    }
+
+  finder = lt_dlloader_find ("first");
+
+  if (!finder)
+    {
+      printf ("lt_dlloader_find failed: %s\n", lt_dlerror ());
+      err = 1;
+      goto cleanup;
+    }
+
+  printf ("Found loader \"%s\"\n", finder->name);
+
+  last = (lt_dlvtable *) malloc (sizeof (*last));
+  if (!last)
+    {
+      printf ("malloc failed\n");
+      err = 1;
+      goto cleanup;
+    }
+
+  last->name = "last";
+  last->sym_prefix = NULL;
+  last->module_open = last_open;
+  last->module_close = last_close;
+  last->find_sym = last_sym;
+  last->dlloader_init = last_init; /* test that it isn't called twice */
+  last->dlloader_exit = last_exit;
+  last->dlloader_data = (lt_user_data) last_ctx;
+  last->priority = LT_DLLOADER_APPEND;
+
+  if (last_init (last->dlloader_data))
+    {
+      printf ("last_init failed\n");
+      err = 1;
+      goto cleanup;
+    }
+
+  if (lt_dlloader_add (last))
+    {
+      printf ("lt_dlloader_add failed: %s\n", lt_dlerror ());
+      err = 1;
+      goto cleanup;
+    }
+
+  finder = lt_dlloader_find ("last");
+
+  if (!finder)
+    {
+      printf ("lt_dlloader_find failed: %s\n", lt_dlerror ());
+      err = 1;
+      goto cleanup;
+    }
+
+  printf ("Found loader \"%s\"\n", finder->name);
+
+  module = lt_dlopen ("first");
+
+  if (!module)
+    {
+      printf ("lt_dlopen failed: %s\n", lt_dlerror ());
+      err = 1;
+      goto cleanup;
+    }
+
+  symbol = (module_func *) lt_dlsym (module, "symbol");
+
+  if (!symbol)
+    {
+      printf ("lt_dlsym failed: %s\n", lt_dlerror ());
+      err = 1;
+      goto cleanup;
+    }
+
+  printf ("result: %s\n", symbol ());
+
+  lt_dlclose (module);
+  module = lt_dlopen ("./module.la");
+
+  if (!module)
+    {
+      printf ("lt_dlopen failed: %s\n", lt_dlerror ());
+      err = 1;
+      goto cleanup;
+    }
+
+  symbol = (module_func *) lt_dlsym (module, "symbol");
+
+  if (!symbol)
+    {
+      printf ("lt_dlsym failed: %s\n", lt_dlerror ());
+      err = 1;
+      goto cleanup;
+    }
+
+  printf ("result: %s\n", symbol ());
+
+  lt_dlclose (module);
+  module = lt_dlopen ("last");
+
+  if (!module)
+    {
+      printf ("lt_dlopen failed: %s\n", lt_dlerror ());
+      err = 1;
+      goto cleanup;
+    }
+
+  symbol = (module_func *) lt_dlsym (module, "symbol");
+
+  if (!symbol)
+    {
+      printf ("lt_dlsym failed: %s\n", lt_dlerror ());
+      err = 1;
+      goto cleanup;
+    }
+
+  printf ("result: %s\n", symbol ());
+
+  if (lt_dlopen ("no-module"))
+    {
+      printf ("lt_dlopen unexpectedly opened \"no-module\"\n");
+      err = 1;
+      goto cleanup;
+    }
+
+  if (lt_dlloader_remove ("first") != first)
+    {
+      printf ("vtable of first loader has changed\n");
+      err = 1;
+      goto cleanup;
+    }
+
+  free (first);
+
+cleanup:
+  if (module)
+    {
+      lt_dlclose (module);
+    }
+  lt_dlexit ();
+  return err;
+}
+]])
+
+AT_DATA([module.c],
+[[
+#ifdef __cplusplus
+extern "C"
+#endif
+const char *symbol (void);
+const char *
+symbol (void)
+{
+  return "module_symbol";
+}
+]])
+
+LT_AT_HOST_DATA(expout,
+[[first_init: first_ctx
+Found loader "first"
+last_init: last_ctx
+Found loader "last"
+first_open ("first"): first_ctx
+first_sym (first): first_ctx
+result: first_symbol
+first_close (first): first_ctx
+first_open denies a request
+result: module_symbol
+first_open denies a request
+last_open ("last"): last_ctx
+last_sym (last): last_ctx
+result: last_symbol
+first_open denies a request
+last_open denies a request
+first_exit: first_ctx
+last_close (last): last_ctx
+last_exit: last_ctx
+]])
+
+: ${LTDLINCL="-I$abs_top_srcdir/libltdl"}
+: ${LIBLTDL="$abs_builddir/../libltdl/libltdlc.la"}
+
+CPPFLAGS="$LTDLINCL $CPPFLAGS"
+
+AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c module.c],
+	 [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o module.la ]dnl
+	 [-rpath /nowhere -module -avoid-version -no-undefined ]dnl
+	 [module.lo],
+	 [], [ignore], [ignore])
+
+dnl Not possible to override the preopen loader, so skip if not shared.
+. ./module.la
+AT_CHECK([test -n "$dlname" || (exit 77)])
+
+AT_CHECK([$CC $CPPFLAGS $CFLAGS -c main.c], [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT ]dnl
+	 [main.$OBJEXT -dlopen module.la $LIBLTDL],
+	 [], [ignore], [ignore])
+
+LT_AT_EXEC_CHECK([./main], [], [expout], [ignore], [])
+
+AT_CLEANUP


hooks/post-receive
-- 
GNU Libtool



From MAILER-DAEMON Sun Jan 31 09:37:00 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1Nbav6-0006v2-5J
	for mharc-libtool-commit@gnu.org; Sun, 31 Jan 2010 09:37:00 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1Nbav4-0006tv-U0
	for libtool-commit@gnu.org; Sun, 31 Jan 2010 09:36:58 -0500
Received: from [199.232.76.173] (port=36621 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Nbav4-0006tc-Kr
	for libtool-commit@gnu.org; Sun, 31 Jan 2010 09:36:58 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.60) (envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nbav2-0003QZ-Nw
	for libtool-commit@gnu.org; Sun, 31 Jan 2010 09:36:58 -0500
Received: from colonialone.fsf.org ([140.186.70.51]:59556
	helo=internal.in.savannah.gnu.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <INVALID.NOREPLY@gnu.org>)
	id 1Nbav2-0003Q5-GT
	for libtool-commit@gnu.org; Sun, 31 Jan 2010 09:36:56 -0500
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nbav1-0005Im-4E
	for libtool-commit@gnu.org; Sun, 31 Jan 2010 14:36:55 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1Nbav1-00011V-2Q
	for libtool-commit@gnu.org; Sun, 31 Jan 2010 14:36:55 +0000
From: "Ralf Wildenhues" <Ralf.Wildenhues@gmx.de>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: e4eefcd401b32081fe947b2a731dadcc6bfcd337
X-Git-Newrev: 7e8be90f4872b8140a718a0af0a1544d1f9371d9
Message-Id: <E1Nbav1-00011V-2Q@vcs-noshell.in.savannah.gnu.org>
Date: Sun, 31 Jan 2010 14:36:55 +0000
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-182-g7e8be90
X-BeenThere: libtool-commit@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit notices for the GNU libtool shared library maintenance
	tool <libtool-commit.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/libtool-commit>
List-Post: <mailto:libtool-commit@gnu.org>
List-Help: <mailto:libtool-commit-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/libtool-commit>,
	<mailto:libtool-commit-request@gnu.org?subject=subscribe>
X-List-Received-Date: Sun, 31 Jan 2010 14:36:59 -0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  7e8be90f4872b8140a718a0af0a1544d1f9371d9 (commit)
       via  2080fe964906bdb18771b6a461622212063c1a51 (commit)
      from  e4eefcd401b32081fe947b2a731dadcc6bfcd337 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7e8be90f4872b8140a718a0af0a1544d1f9371d9
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sun Jan 31 13:39:48 2010 +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>

commit 2080fe964906bdb18771b6a461622212063c1a51
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Sun Jan 31 15:31:52 2010 +0100

    Make testsuite code C++ clean again.
    
    * tests/resident.at (resident modules): Fix for C++.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    9 +++++++++
 Makefile.maint    |    2 +-
 tests/resident.at |    6 +++++-
 3 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b25d9d9..f4b4a3f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Use --email with gendocs.sh.
+	* Makefile.maint (web-manual): Pass bug reporting address to
+	gendocs.sh.
+
+	Make testsuite code C++ clean again.
+	* tests/resident.at (resident modules): Fix for C++.
+
 2010-01-29  Peter Rosin  <peda@lysator.liu.se>
 	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
diff --git a/Makefile.maint b/Makefile.maint
index 02284df..b90b31d 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -225,4 +225,4 @@ web-manual:
 	$(WGETSGO)'/texinfo/texinfo/util/gendocs.sh' && \
 	$(WGETSGO)'/texinfo/texinfo/util/gendocs_template' && \
 	chmod 755 gendocs.sh && \
-	./gendocs.sh libtool "GNU Libtool Manual"
+	./gendocs.sh --email bug-libtool@gnu.org libtool "GNU Libtool Manual"
diff --git a/tests/resident.at b/tests/resident.at
index 8667ca7..c16a72a 100644
--- a/tests/resident.at
+++ b/tests/resident.at
@@ -59,7 +59,7 @@ main (int argc, char* argv[])
 	{
 	  int (*pf) (void);
 	  printf ("plugin opened successfully!\n");
-	  pf = lt_dlsym (plugin_handle, "setup_plugin");
+	  pf = (int (*) (void)) lt_dlsym (plugin_handle, "setup_plugin");
 	  if (pf)
 	    pf ();
 	  else
@@ -100,6 +100,7 @@ main (int argc, char* argv[])
 
 AT_DATA([plugin.c],
 [[#include <stdlib.h>
+#include <stdio.h>
 
 void
 bye (void)
@@ -107,6 +108,9 @@ bye (void)
   puts ("called from atexit handler");
 }
 
+#ifdef __cplusplus
+extern "C"
+#endif
 int
 setup_plugin (void)
 {


hooks/post-receive
-- 
GNU Libtool



