libtool/libltdl/config
Peter Rosin c20dbb8781 For MSVC, embed the manifest as a resource in the executable.
Fixes a lot of testsuite failures with MSVC 2003 (v8.0) and
above (and perhaps also MSVC .Net) related to running programs
that have been moved (e.g. installed) without their manifests
also having been moved.

* libltdl/m4/libtool.m4 (_LT_PATH_MANIFEST_TOOL): New macro
that locates the Manifest Tool (mt) and verifies that it is
indeed the manifest tool. The result is stored in the new
variable MANIFEST_TOOL.
(_LT_LINKER_SHLIBS) <postlink_cmds>: New tag variable.
[ cygwin, mingw, cegcc ] <cl*>: Embed the manifest file as a
resource. Make sure the embedding work regardless of if the
@OUTPUT@ file name includes a trailing $EXEEXT.
(_LT_LANG_CXX_CONFIG): Likewise.
(_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG): Require the above
_LT_PATH_MANIFEST_TOOL.
* libltdl/config/ltmain.m4sh (func_mode_link): After linking
a program, replace @OUTPUT@ in $postlink_cmds and then execute
the commands.
* doc/libtool.texi (libtool script contents): Document
new postlink_cmds variable.
(LT_INIT): Add that the MANIFEST_TOOL environment variable can
be used to override the manifest tool to use.
* tests/exeext.at: New. Make sure linking with both -o prog
and -o prog$EXEEXT works.
* Makefile.am (TESTSUITE_AT): Update.
(TESTS_ENVIRONMENT): Propagate $(MANIFEST_TOOL) to the
testsuite.
* NEWS: Add note of the new MANIFEST_TOOL environment variable.
2010-07-01 09:04:35 +02:00
..
.cvsignore * config/.cvsignore, m4/.cvsignore: Moved from here... 2005-08-22 22:36:13 +00:00
.gitignore Add .gitignore files. 2008-04-16 21:31:03 +02:00
announce-gen.m4sh Fix bootstrap script to cope with changed AC_INIT arguments. 2010-06-16 06:04:36 +02:00
general.m4sh getopt.m4sh generated libtool option parser, and XSI improvements. 2010-06-27 00:13:42 +07:00
getopt.m4sh Correct func_split_short_opt comment cut-n-pasto. 2010-06-29 16:32:46 +07:00
ltmain.m4sh For MSVC, embed the manifest as a resource in the executable. 2010-07-01 09:04:35 +02:00
mailnotify.m4sh Support shell tracing inside functions even with ksh. 2010-06-10 21:02:48 +07:00
mkstamp Allow bootstrap from git repository. 2008-04-15 15:33:06 -05:00