From MAILER-DAEMON Mon Oct 04 15:17:57 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1P2qXs-0002Nb-G1
	for mharc-libtool-commit@gnu.org; Mon, 04 Oct 2010 15:17:56 -0400
Received: from [140.186.70.92] (port=33150 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1P2qXo-0002Li-1d
	for libtool-commit@gnu.org; Mon, 04 Oct 2010 15:17:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P2qXm-0005Fg-9C
	for libtool-commit@gnu.org; Mon, 04 Oct 2010 15:17:51 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:41363
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P2qXm-0005FW-6S
	for libtool-commit@gnu.org; Mon, 04 Oct 2010 15:17:50 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P2qXm-0003Z4-0k
	for libtool-commit@gnu.org; Mon, 04 Oct 2010 19:17:50 +0000
Received: from pekberg by vcs-noshell.in.savannah.gnu.org with local (Exim
	4.69) (envelope-from <INVALID.NOREPLY@gnu.org>) id 1P2qXl-00031j-O0
	for libtool-commit@gnu.org; Mon, 04 Oct 2010 19:17: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: c5bce8258136b2766d349a6451b933efae7b885b
X-Git-Newrev: c161010e9deec544410a3e91d105d07ed9ec9911
Message-Id: <E1P2qXl-00031j-O0@vcs-noshell.in.savannah.gnu.org>
Date: Mon, 04 Oct 2010 19:17:49 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-9-gc161010
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/archive/html/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, 04 Oct 2010 19:17:54 -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  c161010e9deec544410a3e91d105d07ed9ec9911 (commit)
       via  79bca27c51e6696e33066e65b9bb672ea1a3d0f8 (commit)
      from  c5bce8258136b2766d349a6451b933efae7b885b (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 c161010e9deec544410a3e91d105d07ed9ec9911
Author: Peter Rosin <peda@lysator.liu.se>
Date:   Mon Oct 4 21:16:26 2010 +0200

    cwrapper: split long lines when dumping the wrapper script.
    
    * libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src): If
    the wrapper script contains long lines, split them for
    readability and to conform with C standards.
    * tests/cwrapper.at (cwrapper string length): New test, making
    sure we don't regress.
    
    Signed-off-by: Peter Rosin <peda@lysator.liu.se>

commit 79bca27c51e6696e33066e65b9bb672ea1a3d0f8
Author: Peter Rosin <peda@lysator.liu.se>
Date:   Mon Oct 4 16:02:39 2010 +0200

    msvc: handle symbols from different files independently.
    
    * libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS)
    <dumpbin, lt_cv_sys_global_symbol_pipe>: Make all sections
    viable for symbol extraction again when the symbols from a new
    file starts.  Fixes tests/tagdemo-make.test for MSVC 10.
    * tests/dumpbin-symbols.at: New test, making sure we don't
    regress.
    * Makefile.am (TESTSUITE_AT): Update.
    
    Signed-off-by: Peter Rosin <peda@lysator.liu.se>

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

Summary of changes:
 ChangeLog                  |   18 +++++++
 Makefile.am                |    1 +
 libltdl/config/ltmain.m4sh |   12 ++++-
 libltdl/m4/libtool.m4      |    1 +
 tests/cwrapper.at          |   61 ++++++++++++++++++++++++
 tests/dumpbin-symbols.at   |  111 ++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 201 insertions(+), 3 deletions(-)
 create mode 100644 tests/dumpbin-symbols.at

diff --git a/ChangeLog b/ChangeLog
index a7aa489..c0492fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2010-10-04  Peter Rosin  <peda@lysator.liu.se>
+
+	cwrapper: split long lines when dumping the wrapper script.
+	* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src): If
+	the wrapper script contains long lines, split them for
+	readability and to conform with C standards.
+	* tests/cwrapper.at (cwrapper string length): New test, making
+	sure we don't regress.
+
+	msvc: handle symbols from different files independently.
+	* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS)
+	<dumpbin, lt_cv_sys_global_symbol_pipe>: Make all sections
+	viable for symbol extraction again when the symbols from a new
+	file starts.  Fixes tests/tagdemo-make.test for MSVC 10.
+	* tests/dumpbin-symbols.at: New test, making sure we don't
+	regress.
+	* Makefile.am (TESTSUITE_AT): Update.
+
 2010-09-27  Peter Rosin  <peda@lysator.liu.se>
 
 	tests: check if sys_lib_search_path_spec works on MSVC.
diff --git a/Makefile.am b/Makefile.am
index 6e29a29..6c23a5e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -503,6 +503,7 @@ TESTSUITE_AT	= tests/testsuite.at \
 		  tests/cmdline_wrap.at \
 		  tests/pic_flag.at \
 		  tests/darwin.at \
+		  tests/dumpbin-symbols.at \
 		  tests/deplibs-mingw.at \
 		  tests/sysroot.at
 
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 0418007..1078e75 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -4268,9 +4268,15 @@ void lt_dump_script (FILE* f)
 {
 EOF
 	    func_emit_wrapper yes |
-              $SED -e 's/\([\\"]\)/\\\1/g' \
-	           -e 's/^/  fputs ("/' -e 's/$/\\n", f);/'
-
+	      $SED -n -e '
+s/^\(.\{79\}\)\(..*\)/\1\
+\2/
+h
+s/\([\\"]\)/\\\1/g
+s/$/\\n/
+s/\([^\n]*\).*/  fputs ("\1", f);/p
+g
+D'
             cat <<"EOF"
 }
 EOF
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index fd732d0..967dd38 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -3645,6 +3645,7 @@ for ac_symprfx in "" "_"; do
     # which start with @ or ?.
     lt_cv_sys_global_symbol_pipe="$AWK ['"\
 "     {last_section=section; section=\$ 3};"\
+"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 "     \$ 0!~/External *\|/{next};"\
 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
diff --git a/tests/cwrapper.at b/tests/cwrapper.at
index 248c0c0..cd618dc 100644
--- a/tests/cwrapper.at
+++ b/tests/cwrapper.at
@@ -134,3 +134,64 @@ done
 
 AT_CLEANUP
 
+
+AT_SETUP([cwrapper string length])
+
+eval "`$LIBTOOL --config | $EGREP '^(objdir)='`"
+
+AT_DATA([liba.c],
+[[int liba_func1 (int arg)
+{
+  return arg + 1;
+}
+]])
+AT_DATA([usea.c],
+[[extern int liba_func1 (int arg);
+int main (void)
+{
+  int a = 2;
+  int b = liba_func1 (a);
+  if (b == 3) return 0;
+  return 1;
+}
+]])
+
+AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c liba.c],
+	 [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -no-undefined ]dnl
+	 [-o liba.la -rpath /foo liba.lo],
+	 [], [ignore], [ignore])
+AT_CHECK([$CC $CPPFLAGS $CFLAGS -c usea.c],
+	 [], [ignore], [ignore])
+
+
+# Make sure PATH is at least 250 chars, which should force line breaks
+# in lt-usea.c.
+
+dirpath=
+save_IFS=$IFS
+IFS=$PATH_SEPARATOR
+for dirpath in $PATH; do
+  IFS=$save_IFS
+  break
+done
+IFS=$save_IFS
+
+until $ECHO "PATH=$PATH" | grep 'PATH=.\{250\}'; do
+  PATH="$PATH$PATH_SEPARATOR$dirpath"
+done
+export PATH
+
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -no-fast-install ]dnl
+	 [-o usea$EXEEXT usea.$OBJEXT liba.la],
+	 [], [ignore], [ignore])
+
+# Skip if no cwrapper is generated.
+AT_CHECK([test -f $objdir/lt-usea.c || exit 77])
+
+# Try to make sure the test is relevant.
+AT_CHECK([grep ' *fputs' $objdir/lt-usea.c > /dev/null])
+# Check for no overly long fputs.
+AT_CHECK([grep ' *fputs.\{250\}' $objdir/lt-usea.c], [1])
+
+AT_CLEANUP
diff --git a/tests/dumpbin-symbols.at b/tests/dumpbin-symbols.at
new file mode 100644
index 0000000..19e61ba
--- /dev/null
+++ b/tests/dumpbin-symbols.at
@@ -0,0 +1,111 @@
+# dumpbin-symbols.at -- libtool "dumpbin -symbols" support    -*- 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_BANNER([Windows tests.])
+AT_SETUP([dumpbin -symbols section hiding])
+
+# I don't know of a stable way to create a pair of objects that
+# exhibits the potential problem, so this test fakes it by
+# testing with output from a case that do have the potential
+# problem.
+
+# First check if the global_symbol_pipe can handle the below
+# test case at all, and skip if $NM is not MS dumpbin.
+
+AT_DATA([variable.c],
+[[
+int some_variable = 0;
+]])
+
+AT_CHECK([$CC $CPPFLAGS $CFLAGS -c variable.c], [], [ignore], [ignore])
+AT_CHECK([$NM variable.$OBJEXT], [], [stdout], [ignore])
+AT_CHECK([grep 'External.*some_variable' stdout || exit 77], [], [ignore])
+
+eval `$LIBTOOL --config | $EGREP '^(global_symbol_pipe)='`
+
+AT_DATA([dumpbin-output],
+[[
+Dump of file foo.obj
+
+File Type: COFF OBJECT
+
+COFF SYMBOL TABLE
+000 00AB766F ABS    notype       Static       | @comp.id
+001 00000001 ABS    notype       Static       | @feat.00
+002 00000000 SECT1  notype       Static       | .drectve
+    Section length   8F, #relocs    0, #linenums    0, checksum        0
+004 00000000 SECT2  notype       Static       | .debug$S
+    Section length 44B4, #relocs   1C, #linenums    0, checksum        0
+006 00000000 SECT3  notype       Static       | .rdata
+    Section length    1, #relocs    0, #linenums    0, checksum        0, selection    2 (pick any)
+008 00000000 SECT3  notype       External     | ?value@?$integral_constant@_N$0A@@tr1@std@@2_NB (public: static bool const std::tr1::integral_constant<bool,0>::value)
+009 00000000 SECT4  notype       Static       | .rdata
+    Section length    1, #relocs    0, #linenums    0, checksum 77073096, selection    2 (pick any)
+*snip lots of uninteresting crap*
+12A 00000000 SECT5B notype       Static       | .text
+    Section length   4B, #relocs    2, #linenums    0, checksum 22AE8362, selection    2 (pick any)
+12C 00000000 SECT5C notype       Static       | .debug$S
+    Section length  150, #relocs    B, #linenums    0, checksum        0, selection    5 (pick associative Section 0x5B)
+12F 00000000 SECT5D notype       Static       | .debug$T
+    Section length   5C, #relocs    0, #linenums    0, checksum        0
+
+String Table Size = 0x15EF bytes
+
+
+Dump of file conv.lib
+
+File Type: LIBRARY
+
+COFF SYMBOL TABLE
+000 00AB766F ABS    notype       Static       | @comp.id
+001 00000001 ABS    notype       Static       | @feat.00
+002 00000000 SECT1  notype       Static       | .drectve
+    Section length   2F, #relocs    0, #linenums    0, checksum        0
+004 00000000 SECT2  notype       Static       | .debug$S
+    Section length  70C, #relocs    5, #linenums    0, checksum        0
+006 00000000 SECT3  notype       Static       | .text
+    Section length    A, #relocs    0, #linenums    0, checksum BAFC81C1
+008 00000000 SECT3  notype ()    External     | _convenience
+009 00000000 SECT4  notype       Static       | .debug$T
+    Section length   5C, #relocs    0, #linenums    0, checksum        0
+
+String Table Size = 0x11 bytes
+
+  Summary
+
+        5B3C .debug$S
+          B8 .debug$T
+          BE .drectve
+         129 .rdata
+           C .sxdata
+         613 .text
+          6C .text$x
+          B8 .xdata$x
+]])
+
+# Check if the _convenience symbol from section SECT3 in conv.lib is
+# present even if section SECT3 in foo.obj is hidden.
+AT_CHECK([< dumpbin-output eval "$global_symbol_pipe"], [], [stdout])
+AT_CHECK([grep convenience stdout], [], [ignore])
+
+AT_CLEANUP


hooks/post-receive
-- 
GNU Libtool


From MAILER-DAEMON Thu Oct 07 22:49:47 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1P431m-00059n-UD
	for mharc-libtool-commit@gnu.org; Thu, 07 Oct 2010 22:49:46 -0400
Received: from [140.186.70.92] (port=52670 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1P431k-00059e-MA
	for libtool-commit@gnu.org; Thu, 07 Oct 2010 22:49:45 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P431j-0003Md-GY
	for libtool-commit@gnu.org; Thu, 07 Oct 2010 22:49:44 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:32813
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P431j-0003MX-F9
	for libtool-commit@gnu.org; Thu, 07 Oct 2010 22:49:43 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P431i-00032F-Lc
	for libtool-commit@gnu.org; Fri, 08 Oct 2010 02:49:42 +0000
Received: from cwilson by vcs-noshell.in.savannah.gnu.org with local (Exim
	4.69) (envelope-from <INVALID.NOREPLY@gnu.org>) id 1P431i-0002Uz-I6
	for libtool-commit@gnu.org; Fri, 08 Oct 2010 02:49:42 +0000
From: "Charles Wilson" <libtool@cwilson.fastmail.fm>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: c161010e9deec544410a3e91d105d07ed9ec9911
X-Git-Newrev: b76bfa87f56ee9491b77a10ce6fcfd3ec09bd7c8
Message-Id: <E1P431i-0002Uz-I6@vcs-noshell.in.savannah.gnu.org>
Date: Fri, 08 Oct 2010 02:49:42 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-10-gb76bfa8
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/archive/html/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, 08 Oct 2010 02:49:46 -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  b76bfa87f56ee9491b77a10ce6fcfd3ec09bd7c8 (commit)
      from  c161010e9deec544410a3e91d105d07ed9ec9911 (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 b76bfa87f56ee9491b77a10ce6fcfd3ec09bd7c8
Author: Roumen Petrov <bugtrack@roumenpetrov.info>
Date:   Sun Oct 3 17:15:17 2010 -0400

    Add test case for 69e77671 (cwrapper PATH manipulation order)
    
    * tests/cwrapper.at: Add new test 'cwrapper and installed shared
    libraries.'
    
    Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>

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

Summary of changes:
 ChangeLog         |    6 ++++
 tests/cwrapper.at |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c0492fe..9caba84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-10-07  Roumen Petrov  <bugtrack@roumenpetrov.info>
+
+	Add test case for 69e77671 (cwrapper PATH manipulation order)
+	* tests/cwrapper.at: Add new test 'cwrapper and installed shared
+	libraries.'
+
 2010-10-04  Peter Rosin  <peda@lysator.liu.se>
 
 	cwrapper: split long lines when dumping the wrapper script.
diff --git a/tests/cwrapper.at b/tests/cwrapper.at
index cd618dc..6e8cf3c 100644
--- a/tests/cwrapper.at
+++ b/tests/cwrapper.at
@@ -194,4 +194,71 @@ AT_CHECK([grep ' *fputs' $objdir/lt-usea.c > /dev/null])
 # Check for no overly long fputs.
 AT_CHECK([grep ' *fputs.\{250\}' $objdir/lt-usea.c], [1])
 
+
+AT_CLEANUP
+
+
+AT_SETUP([cwrapper and installed shared libraries])
+AT_KEYWORDS([libtool])
+
+# make sure existing libtool is configured for shared libraries
+AT_CHECK([$LIBTOOL --features | grep 'enable shared libraries' || exit 77],
+	 [], [ignore])
+
+LDFLAGS="$LDFLAGS -no-undefined"
+
+inst=`pwd`/inst
+libdir=$inst/lib
+bindir=$inst/bin
+mkdir $inst $libdir $bindir
+
+# Build the library in a separate directory to avoid the special case
+# of loading from the current directory.
+
+mkdir foo
+cd foo
+# build and install "old" library version
+AT_DATA([a.c], [[
+int liba_ver (void) { return 1; }
+]])
+AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c a.c],
+         [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -version-info=0.0.0 -o liba.la -rpath $libdir a.lo],
+         [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=install $lt_INSTALL liba.la $libdir],
+         [], [ignore], [ignore])
+
+# build a new library version
+AT_DATA([a.c], [[
+int liba_ver (void) { return 2; }
+]])
+AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c a.c],
+         [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -version-info=0.0.0 -o liba.la -rpath $libdir a.lo],
+         [], [ignore], [ignore])
+
+cd ..
+
+# build and run test application
+AT_DATA([m.c], [[
+extern int liba_ver (void);
+int main (void)
+{
+  int r = (liba_ver () == 2) ? 0 : 1;
+  return r;
+}
+]])
+
+AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c m.c],
+         [], [ignore], [ignore])
+
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m1$EXEEXT m.$OBJEXT foo/liba.la],
+         [], [ignore], [ignore])
+LT_AT_EXEC_CHECK([./m1], [0], [ignore], [ignore], [])
+
+AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o m2$EXEEXT m.$OBJEXT foo/liba.la -L$inst/lib],
+         [], [ignore], [ignore])
+LT_AT_EXEC_CHECK([./m2], [0], [ignore], [ignore], [])
+
+
 AT_CLEANUP


hooks/post-receive
-- 
GNU Libtool


From MAILER-DAEMON Sat Oct 09 04:44:21 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1P4V2T-0007YX-Nt
	for mharc-libtool-commit@gnu.org; Sat, 09 Oct 2010 04:44:21 -0400
Received: from [140.186.70.92] (port=60042 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1P4V2N-0007Xk-81
	for libtool-commit@gnu.org; Sat, 09 Oct 2010 04:44:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P4V2L-0003s9-OW
	for libtool-commit@gnu.org; Sat, 09 Oct 2010 04:44:15 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:52182
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P4V2L-0003s4-Mb
	for libtool-commit@gnu.org; Sat, 09 Oct 2010 04:44:13 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P4V2L-000886-A9
	for libtool-commit@gnu.org; Sat, 09 Oct 2010 08:44:13 +0000
Received: from bonzini by vcs-noshell.in.savannah.gnu.org with local (Exim
	4.69) (envelope-from <INVALID.NOREPLY@gnu.org>) id 1P4V2L-0007lI-4T
	for libtool-commit@gnu.org; Sat, 09 Oct 2010 08:44:13 +0000
From: "Paolo Bonzini" <bonzini@gnu.org>
To: libtool-commit@gnu.org
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: b76bfa87f56ee9491b77a10ce6fcfd3ec09bd7c8
X-Git-Newrev: 2ed5700993f997817ad5c164a4bbe4559e5bf66a
Message-Id: <E1P4V2L-0007lI-4T@vcs-noshell.in.savannah.gnu.org>
Date: Sat, 09 Oct 2010 08:44:13 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-11-g2ed5700
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/archive/html/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, 09 Oct 2010 08:44: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  2ed5700993f997817ad5c164a4bbe4559e5bf66a (commit)
      from  b76bfa87f56ee9491b77a10ce6fcfd3ec09bd7c8 (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 2ed5700993f997817ad5c164a4bbe4559e5bf66a
Author: Paolo Bonzini <bonzini@gnu.org>
Date:   Sat Oct 9 10:37:41 2010 +0200

    Add missing sysroot resolution.
    
    * libltdl/config/ltmain.m4sh (func_mode_link): Resolve sysroot
    when fetching the install directory of dependent libraries.
    Reported by Lionel Landwerlin <llandwerlin@gmail.com>,
    patch by Khem Raj <raj.khem@gmail.com>.
    * THANKS: Reorder entries, add Khem and Lionel.

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

Summary of changes:
 ChangeLog                  |    9 +++++++++
 THANKS                     |    6 ++++--
 libltdl/config/ltmain.m4sh |    3 ++-
 3 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9caba84..bfcbc89 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-10-09  Paolo Bonzini  <bonzini@gnu.org>
+
+	Add missing sysroot resolution.
+	* libltdl/config/ltmain.m4sh (func_mode_link): Resolve sysroot
+	when fetching the install directory of dependent libraries.
+	Reported by Lionel Landwerlin <llandwerlin@gmail.com>,
+	patch by Khem Raj <raj.khem@gmail.com>.
+	* THANKS: Reorder entries, add Khem and Lionel.
+
 2010-10-07  Roumen Petrov  <bugtrack@roumenpetrov.info>
 
 	Add test case for 69e77671 (cwrapper PATH manipulation order)
diff --git a/THANKS b/THANKS
index ff3ab7d..5aa0c3c 100644
--- a/THANKS
+++ b/THANKS
@@ -42,6 +42,7 @@
   Christian Cornelssen		ccorn@cs.tu-berlin.de		  2002-11-05
   Jan Kratochvil		project-libtool@jankratochvil.net 2003-01-28
   Raja R. Harinath		harinath@acm.org		  2003-02-25
+  Paolo Bonzini			bonzini@gnu.org			  2003-03-01
   Richard Nicholas Somer Dawe	rich@phekda.freeserve.co.uk	  2003-03-12
   Peter O'Gorman		peter@pogma.com			  2003-03-14
   Ralph Schleicher		rs@nunatak.allgaeu.org		  2003-03-13
@@ -55,7 +56,6 @@
   Benjamin Reed			ranger@befunk.com		  2004-02-08
   Ralf Wildenhues		Ralf.Wildenhues@gmx.de		  2004-02-12
   Nick Hudson			skrll@netbsd.org		  2004-03-29
-  Paolo Bonzini			bonzini@gnu.org			  2003-03-01
   Noah Jeffrey Misch		noah@cs.caltech.edu		  2004-07-05
   Thorsten Glaser		tg@66h.42h.de			  2004-10-11
   Peter Rosin			peda@lysator.liu.se		  2005-04-12
@@ -118,11 +118,13 @@
   John Wolfe			jlw@sco.com
   Josh Hursey			jjhursey@open-mpi.org
   Joseph Beckenbach III		jrb3@best.com
-  Lennart Poettering		lennart@poettering.net
   Karl Berry			karl@freefriends.org
   Kenneth Albanowski		kjahds@kjahds.com
   Kevin Ryde			user42@zip.com.au
+  Khem Raj                      raj.khem@gmail.com
   Kurt D. Zeilenga		Kurt@OpenLDAP.Org
+  Lennart Poettering		lennart@poettering.net
+  Lionel Landwerlin             llandwerlin@gmail.com
   Maciej Helminiak		dion2@wp.pl
   Maciej W. Rozycki		macro@linux-mips.org
   Mahesh Narayanamurthi		mahesh.mach@gmail.com
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index 1078e75..af46cb8 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -8478,7 +8478,8 @@ EOF
 	      *.la)
 		func_basename "$deplib"
 		name="$func_basename_result"
-		eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+		func_resolve_sysroot "$deplib"
+		eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
 		test -z "$libdir" && \
 		  func_fatal_error "\`$deplib' is not a valid libtool archive"
 		func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"


hooks/post-receive
-- 
GNU Libtool


From MAILER-DAEMON Tue Oct 12 01:39:32 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1P5XaF-0005Ms-NF
	for mharc-libtool-commit@gnu.org; Tue, 12 Oct 2010 01:39:31 -0400
Received: from [140.186.70.92] (port=38709 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1P5XaB-0005Mm-S1
	for libtool-commit@gnu.org; Tue, 12 Oct 2010 01:39:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P5XaA-0005xE-M2
	for libtool-commit@gnu.org; Tue, 12 Oct 2010 01:39:27 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:55319
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P5XaA-0005xA-Jy
	for libtool-commit@gnu.org; Tue, 12 Oct 2010 01:39:26 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P5XaA-0000mh-HC
	for libtool-commit@gnu.org; Tue, 12 Oct 2010 05:39:26 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P5XaA-0005Sr-Cm
	for libtool-commit@gnu.org; Tue, 12 Oct 2010 05:39:26 +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: 2ed5700993f997817ad5c164a4bbe4559e5bf66a
X-Git-Newrev: 72266fced994c7efe609b52c889f5241aebda744
Message-Id: <E1P5XaA-0005Sr-Cm@vcs-noshell.in.savannah.gnu.org>
Date: Tue, 12 Oct 2010 05:39:26 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-12-g72266fc
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/archive/html/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: Tue, 12 Oct 2010 05:39:29 -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  72266fced994c7efe609b52c889f5241aebda744 (commit)
      from  2ed5700993f997817ad5c164a4bbe4559e5bf66a (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 72266fced994c7efe609b52c889f5241aebda744
Author: Simon Josefsson <simon@josefsson.org>
Date:   Sat Oct 9 12:26:16 2010 +0200

    docs: improve description of -no-undefined.
    
    * doc/libtool.texi (Link mode): Fix -no-undefined description.
    (Inter-library dependencies): Use Windows not AIX as example
    system.  Clarify need for symbol resolution at library creation
    time.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

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

Summary of changes:
 ChangeLog        |   10 ++++++++++
 doc/libtool.texi |   20 ++++++++++++--------
 2 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bfcbc89..281c71e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-10-12  Simon Josefsson  <simon@josefsson.org>
+	    Matěj Týč <matej.tyc@gmail.com>
+	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	docs: improve description of -no-undefined.
+	* doc/libtool.texi (Link mode): Fix -no-undefined description.
+	(Inter-library dependencies): Use Windows not AIX as example
+	system.  Clarify need for symbol resolution at library creation
+	time.
+
 2010-10-09  Paolo Bonzini  <bonzini@gnu.org>
 
 	Add missing sysroot resolution.
diff --git a/doc/libtool.texi b/doc/libtool.texi
index cd5a181..076b67b 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -1517,9 +1517,12 @@ of library paths.  Useful if the program is only used in the build tree,
 e.g., for testing or generating other files.
 
 @item -no-undefined
-Declare that @var{output-file} does not depend on any other libraries.
-Some platforms cannot create shared libraries that depend on other
-libraries (@pxref{Inter-library dependencies}).
+Declare that @var{output-file} does not depend on any libraries other
+than the ones listed on the command line, i.e., after linking, it will
+not have unresolved symbols.  Some platforms require all symbols in
+shared libraries to be resolved at library creation (@pxref{Inter-library
+dependencies}), and using this parameter allows @command{libtool} to
+assume that this will not happen.
 
 @item -o @var{output-file}
 Create @var{output-file} from the specified objects and libraries.
@@ -3261,12 +3264,13 @@ in order to guarantee that all the required libraries are found.  This
 restriction is only necessary to preserve compatibility with static
 library systems and simple dynamic library systems.
 
-Some platforms, such as AIX, do not even allow you this
+Some platforms, such as Windows, do not even allow you this
 flexibility.  In order to build a shared library, it must be entirely
-self-contained (that is, have references only to symbols that are found
-in the @file{.lo} files or the specified @samp{-l} libraries), and you
-need to specify the @option{-no-undefined} flag.  By default, libtool
-builds only static libraries on these kinds of platforms.
+self-contained or it must have dependencies known at link time (that is,
+have references only to symbols that are found in the @file{.lo} files
+or the specified @samp{-l} libraries), and you need to specify the
+@option{-no-undefined} flag.  By default, libtool builds only static
+libraries on these kinds of platforms.
 
 The simple-minded inter-library dependency tracking code of libtool
 releases prior to 1.2 was disabled because it was not clear when it was


hooks/post-receive
-- 
GNU Libtool


From MAILER-DAEMON Thu Oct 14 08:23:48 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1P6Mqa-0007Gt-Fn
	for mharc-libtool-commit@gnu.org; Thu, 14 Oct 2010 08:23:48 -0400
Received: from [140.186.70.92] (port=54357 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1P6MqW-0007E5-EU
	for libtool-commit@gnu.org; Thu, 14 Oct 2010 08:23:46 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P6MqV-0003PC-74
	for libtool-commit@gnu.org; Thu, 14 Oct 2010 08:23:44 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:51365
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P6MqV-0003P0-5T
	for libtool-commit@gnu.org; Thu, 14 Oct 2010 08:23:43 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P6MqU-0007fZ-MB
	for libtool-commit@gnu.org; Thu, 14 Oct 2010 12:23:42 +0000
Received: from pekberg by vcs-noshell.in.savannah.gnu.org with local (Exim
	4.69) (envelope-from <INVALID.NOREPLY@gnu.org>) id 1P6MqU-0007SV-Hs
	for libtool-commit@gnu.org; Thu, 14 Oct 2010 12:23:42 +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: 72266fced994c7efe609b52c889f5241aebda744
X-Git-Newrev: 583cf628610f6b5ced8155d7f18125004e6e3b1c
Message-Id: <E1P6MqU-0007SV-Hs@vcs-noshell.in.savannah.gnu.org>
Date: Thu, 14 Oct 2010 12:23:42 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-13-g583cf62
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/archive/html/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, 14 Oct 2010 12:23:46 -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  583cf628610f6b5ced8155d7f18125004e6e3b1c (commit)
      from  72266fced994c7efe609b52c889f5241aebda744 (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 583cf628610f6b5ced8155d7f18125004e6e3b1c
Author: Peter Rosin <peda@lysator.liu.se>
Date:   Thu Oct 14 14:19:21 2010 +0200

    tests: fix $EXEEXT typo.
    
    * tests/depdemo-relink.test (func_restore_files): Use $EXEEXT
    instead of $EXEXT.
    
    Signed-off-by: Peter Rosin <peda@lysator.liu.se>

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

Summary of changes:
 ChangeLog                 |    6 ++++++
 tests/depdemo-relink.test |    8 ++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 281c71e..a00214c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-10-14  Peter Rosin  <peda@lysator.liu.se>
+
+	tests: fix $EXEEXT typo.
+	* tests/depdemo-relink.test (func_restore_files): Use $EXEEXT
+	instead of $EXEXT.
+
 2010-10-12  Simon Josefsson  <simon@josefsson.org>
 	    Matěj Týč <matej.tyc@gmail.com>
 	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
diff --git a/tests/depdemo-relink.test b/tests/depdemo-relink.test
index dab51b3..cf5c695 100755
--- a/tests/depdemo-relink.test
+++ b/tests/depdemo-relink.test
@@ -31,10 +31,10 @@ func_restore_files ()
     test "`echo _fnord/temp/libs/*`" = "_fnord/temp/libs/*" \
       || mv -f _fnord/temp/libs/* "l3/$objdir"
     mv -f "_fnord/temp/libl3.la" "l3"
-    test -f "_fnord/temp/lt-depdemo$EXEXT" \
-      && mv -f "_fnord/temp/lt-depdemo$EXEXT" "$objdir"
-    test -f "_fnord/temp/depdemo$EXEXT" \
-      && mv -f "_fnord/temp/depdemo$EXEXT" "$objdir"
+    test -f "_fnord/temp/lt-depdemo$EXEEXT" \
+      && mv -f "_fnord/temp/lt-depdemo$EXEEXT" "$objdir"
+    test -f "_fnord/temp/depdemo$EXEEXT" \
+      && mv -f "_fnord/temp/depdemo$EXEEXT" "$objdir"
     rm -rf "_fnord"
 }
 


hooks/post-receive
-- 
GNU Libtool


From MAILER-DAEMON Thu Oct 14 23:45:55 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1P6bEx-0000I6-5N
	for mharc-libtool-commit@gnu.org; Thu, 14 Oct 2010 23:45:55 -0400
Received: from [140.186.70.92] (port=56056 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1P6bEt-0000Hp-GV
	for libtool-commit@gnu.org; Thu, 14 Oct 2010 23:45:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P6bEr-0003XA-Uy
	for libtool-commit@gnu.org; Thu, 14 Oct 2010 23:45:51 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:52016
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P6bEr-0003X6-Se
	for libtool-commit@gnu.org; Thu, 14 Oct 2010 23:45:49 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P6bEr-0002IH-IV
	for libtool-commit@gnu.org; Fri, 15 Oct 2010 03:45:49 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P6bEr-0001mg-8e
	for libtool-commit@gnu.org; Fri, 15 Oct 2010 03:45:49 +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: 583cf628610f6b5ced8155d7f18125004e6e3b1c
X-Git-Newrev: 3b0fd490f391c88f84ba461c8cf28bd38eab3df0
Message-Id: <E1P6bEr-0001mg-8e@vcs-noshell.in.savannah.gnu.org>
Date: Fri, 15 Oct 2010 03:45:49 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-16-g3b0fd49
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/archive/html/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, 15 Oct 2010 03:45:53 -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  3b0fd490f391c88f84ba461c8cf28bd38eab3df0 (commit)
       via  5bc5f69ec6954050181f12b8e5dfb618803cd77d (commit)
       via  5798227360684931122c6f86708f6c9495752fe0 (commit)
      from  583cf628610f6b5ced8155d7f18125004e6e3b1c (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 3b0fd490f391c88f84ba461c8cf28bd38eab3df0
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Thu Oct 14 21:27:09 2010 +0200

    Fix linking from only convenience archives with gfortran on Darwin.
    
    * libltdl/m4/libtool.m4 (_LT_DARWIN_LINKER_FEATURES): Update
    macro comment header.
    [darwin, F77, FC] <compiler_needs_object>: Set to yes if
    whole_archive_flag_spec is nonempty.  Fixes convenience.at test
    suite failures with gfortran 4.2 on Darwin.
    * THANKS: Update.
    Report by Paul Laight.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

commit 5bc5f69ec6954050181f12b8e5dfb618803cd77d
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Thu Oct 14 21:48:17 2010 +0200

    Fix bindir check logic, and relax non-bindir case for AIX.
    
    * tests/bindir.at (bindir install tests): Rewrite checks for
    place of the installed shared library in two separate tests,
    depending on whether -bindir is supposed to have an effect or
    not.  In the positive case, make the test stricter so that we
    reject libraries in $libdir.  In the negative case, do not
    require a major version number in the $libdir file name, for AIX
    without runtimelinking.  If tmpdir creation fails, skip the
    test.  Use fewer bindir directory names for testing, to speed
    up the test.  Also mention MSVC style DLL name in comment.
    Report by Peter Rosin.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

commit 5798227360684931122c6f86708f6c9495752fe0
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Thu Oct 14 21:47:44 2010 +0200

    tests: remove unneeded 'bindir compile check' test.
    
    * tests/bindir.at (bindir compile check): Remove.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

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

Summary of changes:
 ChangeLog             |   26 +++++++++++++++++++++
 THANKS                |    1 +
 libltdl/m4/libtool.m4 |    6 +++-
 tests/bindir.at       |   59 +++++++++++++++++-------------------------------
 4 files changed, 52 insertions(+), 40 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a00214c..fbd8386 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,29 @@
+2010-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Fix linking from only convenience archives with gfortran on Darwin.
+	* libltdl/m4/libtool.m4 (_LT_DARWIN_LINKER_FEATURES): Update
+	macro comment header.
+	[darwin, F77, FC] <compiler_needs_object>: Set to yes if
+	whole_archive_flag_spec is nonempty.  Fixes convenience.at test
+	suite failures with gfortran 4.2 on Darwin.
+	* THANKS: Update.
+	Report by Paul Laight.
+
+	Fix bindir check logic, and relax non-bindir case for AIX.
+	* tests/bindir.at (bindir install tests): Rewrite checks for
+	place of the installed shared library in two separate tests,
+	depending on whether -bindir is supposed to have an effect or
+	not.  In the positive case, make the test stricter so that we
+	reject libraries in $libdir.  In the negative case, do not
+	require a major version number in the $libdir file name, for AIX
+	without runtimelinking.  If tmpdir creation fails, skip the
+	test.  Use fewer bindir directory names for testing, to speed
+	up the test.  Also mention MSVC style DLL name in comment.
+	Report by Peter Rosin.
+
+	tests: remove unneeded 'bindir compile check' test.
+	* tests/bindir.at (bindir compile check): Remove.
+
 2010-10-14  Peter Rosin  <peda@lysator.liu.se>
 
 	tests: fix $EXEEXT typo.
diff --git a/THANKS b/THANKS
index 5aa0c3c..c1e9968 100644
--- a/THANKS
+++ b/THANKS
@@ -145,6 +145,7 @@
   Patrick Welche		prlw1@newn.cam.ac.uk
   Paul Biggar			paul.biggar@gmail.com
   Paul Eggert			eggert@twinsun.com
+  Paul Laight			plaight@quantxautomation.co.uk
   Peter Eisentraut		peter_e@gmx.net
   Peter Fritzsche		peter.fritzsche@gmx.de
   Peter Jeremy			peterjeremy@optushome.com.au
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index 967dd38..d8b3a4d 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -1035,8 +1035,8 @@ _LT_EOF
 ])
 
 
-# _LT_DARWIN_LINKER_FEATURES
-# --------------------------
+# _LT_DARWIN_LINKER_FEATURES([TAG])
+# ---------------------------------
 # Checks for linker and compiler features on darwin
 m4_defun([_LT_DARWIN_LINKER_FEATURES],
 [
@@ -1047,6 +1047,8 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
   if test "$lt_cv_ld_force_load" = "yes"; then
     _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
+    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
+                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
   else
     _LT_TAGVAR(whole_archive_flag_spec, $1)=''
   fi
diff --git a/tests/bindir.at b/tests/bindir.at
index 40e67cc..4e2fecc 100644
--- a/tests/bindir.at
+++ b/tests/bindir.at
@@ -1,6 +1,6 @@
 # bindir.at -  Test the -bindir option
 #
-#   Copyright (C) 2009 Free Software Foundation, Inc.
+#   Copyright (C) 2009, 2010 Free Software Foundation, Inc.
 #   Written by Dave Korn, 2009
 #
 #   This file is part of GNU Libtool.
@@ -58,25 +58,8 @@
 # statement in libtool.m4sh around where the 'tdlname' variable is set.
 
 ####
-# Verify compiling works, and skip remaining tests if not.
-#
-
-AT_SETUP([bindir compile check])
-
-AT_DATA([simple.c] ,[[
-int main() { return 0;}
-]])
-
-$CC $CPPFLAGS $CFLAGS -o simple simple.c || noskip=false
-rm -f simple
-
-AT_CHECK([$noskip || (exit 77)])
-
-AT_CLEANUP
-
-####
-# Now run the tests themselves.  First a simple test that we can
-# build and run an executable with a couple of tiny libraries.
+# First a simple test that we can build and run an executable with a couple of
+# tiny libraries.
 
 AT_SETUP([bindir basic lib test])
 
@@ -155,14 +138,14 @@ AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC -o main$EXEEXT $CPPFLAGS $CFLAGS $LD
 # here, that will be covered by the later tests; we've rpath'd things
 # so that they can all be run in situ.
 
-LT_AT_NOINST_EXEC_CHECK([$LIBTOOL], [], [0], [ignore], [ignore], [--mode=execute ./main$EXEEXT])
+LT_AT_NOINST_EXEC_CHECK([./main])
 
 # Ensure libraries can be found on PATH, if we are on one
 # of the affected platforms, before testing the shared version.
 
 func_save_and_prepend_path $curdir/$objdir
 $bindirneeded && {
-  LT_AT_NOINST_EXEC_CHECK([$LIBTOOL], [], [0], [ignore], [ignore], [--mode=execute $objdir/main$EXEEXT])
+  LT_AT_NOINST_EXEC_CHECK([$objdir/main])
 }
 
 #  In fact, prepending the PATH as above is superfluous on the windows
@@ -199,7 +182,7 @@ case "$host_os" in
 esac
 
 eval "`$LIBTOOL --config | grep '^build_libtool_libs='`"
-AT_CHECK([test "$build_libtool_libs" = yes || (exit 77)])
+AT_CHECK([test "$build_libtool_libs" = yes || exit 77])
 
 ####
 # These routines save the PATH before a test and restore it after,
@@ -288,11 +271,15 @@ do
   AT_CHECK([$LIBTOOL --mode=install $lt_INSTALL libfoo.la $libdir], [], [ignore], [ignore])
   AT_CHECK([$LIBTOOL --mode=install $lt_INSTALL main$EXEEXT $curdir/sbin/main$EXEEXT], [], [ignore], [ignore])
 
-  # And ensure it went where we expect.  Could be looking for any of 'cygfoo-0.dll',
-  # 'libfoo-0.dll', or 'libfoo.so.0'.  We'll simplify this check by taking advantage
-  # of the fact that if it's a DLL, it has to go in bindir, so we'll not check for
-  # both forms in libdir.
-  AT_CHECK([$bindirneeded && { test -f $libdir/../bin/???foo-0.dll || ls $libdir/../bin/*foo*0* 2>/dev/null ; } || ls $libdir/*foo*0* 2>/dev/null], [], [ignore], [ignore])
+  # And ensure it went where we expect.  Could be looking for any of
+  # 'cygfoo-0.dll', 'libfoo-0.dll', 'foo-0.dll', or 'libfoo.so.0'.  We'll
+  # simplify this check by taking advantage of the fact that if it's a DLL,
+  # it has to go in bindir, so we'll not check for both forms in libdir.
+  if $bindirneeded; then
+    AT_CHECK([test -f $libdir/../bin/???foo-0.dll || ls $libdir/../bin/*foo*0*], [], [ignore], [ignore])
+  else
+    AT_CHECK([ls $libdir/*foo*], [], [ignore], [ignore])
+  fi
 
   # And that it can be executed.
   extrapath=
@@ -304,18 +291,10 @@ do
   for bindir in \
 	$curdir/usr/lib/gcc/i686-pc-cygwin/4.5.0/bin/ \
 	$curdir/usr/lib/gcc/i686-pc-cygwin/4.5.0/bin \
-	$curdir/usr/lib/gcc/i686-pc-cygwin/4.5.0/ \
-	$curdir/usr/lib/gcc/i686-pc-cygwin/4.5.0 \
-	$curdir/usr/lib/gcc/i686-pc-cygwin/bin/ \
 	$curdir/usr/lib/gcc/i686-pc-cygwin/bin \
-	$curdir/usr/lib/gcc/i686-pc-cygwin/ \
-	$curdir/usr/lib/gcc/i686-pc-cygwin \
-	$curdir/usr/lib/bin/ \
 	$curdir/usr/lib/bin \
 	$curdir/usr/bin/ \
 	$curdir/usr/bin \
-	$curdir/bin/ \
-	$curdir/bin \
 	/tmp/foo/bar ;
   do
 
@@ -339,7 +318,7 @@ do
         } || {
           tmp=$TMPDIR/foo$$-$RANDOM
           (umask 077 && mkdir "$tmp")
-        } || exit 77
+        } || AT_CHECK([exit 77])
         bindir=$tmp/bar
       ;;
       *)
@@ -360,7 +339,11 @@ do
     AT_CHECK([$LIBTOOL --mode=install $lt_INSTALL main$EXEEXT $curdir/sbin/main$EXEEXT], [], [ignore], [ignore])
 
     # Ensure it went to bindir rather than default dir this time.
-    AT_CHECK([$bindirneeded && { test -f $bindir/???foo-0.dll || ls $bindir/*foo*0* 2>/dev/null ; } || ls $libdir/*foo*0* 2>/dev/null], [], [ignore], [ignore])
+    if $bindirneeded; then
+      AT_CHECK([test -f $bindir/???foo-0.dll || ls $bindir/*foo*0*], [], [ignore], [ignore])
+    else
+      AT_CHECK([ls $libdir/*foo*], [], [ignore], [ignore])
+    fi
 
     # And that it can be executed.
     extrapath=


hooks/post-receive
-- 
GNU Libtool


From MAILER-DAEMON Thu Oct 14 23:59:53 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1P6bST-0005Ft-Di
	for mharc-libtool-commit@gnu.org; Thu, 14 Oct 2010 23:59:53 -0400
Received: from [140.186.70.92] (port=50197 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1P6bSO-0005Fm-Ny
	for libtool-commit@gnu.org; Thu, 14 Oct 2010 23:59:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P6bSM-0005VM-SH
	for libtool-commit@gnu.org; Thu, 14 Oct 2010 23:59:48 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:40725
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P6bSM-0005VI-QX
	for libtool-commit@gnu.org; Thu, 14 Oct 2010 23:59:46 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P6bSM-0002Pc-6i
	for libtool-commit@gnu.org; Fri, 15 Oct 2010 03:59:46 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1P6bSM-0002MZ-3k
	for libtool-commit@gnu.org; Fri, 15 Oct 2010 03:59:46 +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: 3b0fd490f391c88f84ba461c8cf28bd38eab3df0
X-Git-Newrev: 2f907f634e7035166a793fd70e40ae677c2a9a10
Message-Id: <E1P6bSM-0002MZ-3k@vcs-noshell.in.savannah.gnu.org>
Date: Fri, 15 Oct 2010 03:59:46 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-20-g2f907f6
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/archive/html/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, 15 Oct 2010 03:59:52 -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  2f907f634e7035166a793fd70e40ae677c2a9a10 (commit)
       via  a2bb0c980f2b50ab31fedd18bb4890843b3d399a (commit)
       via  c9497cc81cc46ce8848452240a323266440c4cb9 (commit)
       via  dd5b4f06557a4c5ec7b06d7814b95ecd63ab63b8 (commit)
      from  3b0fd490f391c88f84ba461c8cf28bd38eab3df0 (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 2f907f634e7035166a793fd70e40ae677c2a9a10
Merge: 3b0fd49 a2bb0c9
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Fri Oct 15 05:54:45 2010 +0200

    Merge branch 'libtool-next' (early part)
    
    * 'libtool-next' (early part):
      libtool: remove redundant unsubstituted shell var defaults.
      maint: don't leak developer GREP, SED etc into distribution file.
      maint: rearrange Makefile.am in preparation for a follow-up patch.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

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

Summary of changes:
 ChangeLog   |   36 +++++++++++
 HACKING     |    9 ---
 Makefile.am |  190 ++++++++++++++++++++++++++++++----------------------------
 NEWS        |    2 +
 4 files changed, 136 insertions(+), 101 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index fbd8386..df41497 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,39 @@
+2010-10-15  Gary V. Vaughan  <gary@gnu.org>
+
+	libtool: remove redundant unsubstituted shell var defaults.
+	* Makefile.am (libltdl/config/ltmain.sh): Boilerplate code from
+	libltdl/config/general.m4 sets some default shell variables
+	designed to be substituted by `$(configure_edit)'.  Actually,
+	`libtool' uses the language tag values for those variables, and
+	`ltmain.m4sh' is not passed through `$(configure_edit)', so they
+	are just noise.  Edit them out at bootstrap time.
+
+2010-10-15  Gary V. Vaughan  <gary@gnu.org>
+
+	maint: don't leak developer GREP, SED etc into distribution file.
+	* Makefile.am: Having rearranged the file, now apply the actual
+	changes to follow-up.
+	(edit): Split into two parts...
+	(bootstrap_edit): ...substitutions that should happen at bootstrap
+	time...
+	(configure_edit): ...and substitutions that should not happen until
+	configure time.
+	* Makefile.am (libltdl/m4/ltversion.m4, libltdl/config/ltmain.sh)
+	(libtoolize.in, tests/package.m4): Use bootstrap_edit.
+	(libtoolize, tests/defs): Use configure_edit.
+	* HACKING (Release Procedure): Remove the note to workaround the
+	bug fixed by this changeset.
+	* NEWS (Bug fixes): Mention that this bug is now fixed.
+	Reported by Joerg Sonnenberger.
+
+	maint: rearrange Makefile.am in preparation for a follow-up patch.
+	* Makefile.am (Libtool scripts.): Move this section below the
+	`Bootstrap.' section...
+	(libtoolize.in): ...except this one which is generated at
+	bootstrap time, and was added into the `Bootstrap.' section.
+	(Libltdl.): Move this section below the `Libtool scripts.'
+	section.
+
 2010-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Fix linking from only convenience archives with gfortran on Darwin.
diff --git a/HACKING b/HACKING
index 977be10..b17de29 100644
--- a/HACKING
+++ b/HACKING
@@ -619,15 +619,6 @@ or obtained by writing to the Free Software Foundation, Inc.,
 
 * Update NEWS, ChangeLog.
 
-* Until the bug that leaks developer tool paths into the release tarballs
-  from ./bootstrap is fixed, make sure the right tools are first in your
-  PATH and then:
-	export EGREP=egrep
-	export FGREP=fgrep
-	export GREP=grep
-	export MAKE=make
-	export SED=sed
-
 * Run ./bootstrap.
 
 * Run ./configure (or create a build directory first and run configure
diff --git a/Makefile.am b/Makefile.am
index 6c23a5e..db2c0a9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -60,84 +60,10 @@ timestamp = set dummy `$(MKSTAMP) $(srcdir)`; shift; \
 rebuild = rebuild=:; $(timestamp); correctver=$$1
 
 
-## ---------------- ##
-## Libtool scripts. ##
-## ---------------- ##
-
-# The libtool distributor and the standalone libtool script.
-bin_SCRIPTS = libtoolize libtool
-
-libtoolize: $(srcdir)/libtoolize.in $(top_builddir)/config.status
-	rm -f libtoolize.tmp libtoolize
-	$(timestamp); \
-	$(edit) -e "s,@TIMESTAMP\@,$$TIMESTAMP,g" \
-		-e 's,@aclocal_DATA\@,$(aclocalfiles),g' \
-		-e "s,@pkgltdl_files\@,$(ltdldatafiles),g" \
-		-e "s,@pkgconfig_files\@,$(auxfiles),g" \
-		$(srcdir)/libtoolize.in > libtoolize.tmp
-	chmod a+x libtoolize.tmp
-	chmod a-w libtoolize.tmp
-	mv -f libtoolize.tmp libtoolize
-
-# Use `$(srcdir)' for the benefit of non-GNU makes: this is
-# how libtoolize.in appears in our dependencies.
-EXTRA_DIST += libtoolize.m4sh
-$(srcdir)/libtoolize.in: $(sh_files) libtoolize.m4sh Makefile.am
-	cd $(srcdir); \
-	rm -f libtoolize.in; \
-	$(M4SH) -B $(auxdir) libtoolize.m4sh > libtoolize.in
-
-# We used to do this with a 'stamp-vcl' file, but non-gmake builds
-# would rerun configure on every invocation, so now we manually
-# check the version numbers from the build rule when necessary.
-libtool: $(top_builddir)/config.status $(srcdir)/$(auxdir)/ltmain.sh ChangeLog
-	@target=libtool; $(rebuild); \
-	if test -f "$$target"; then \
-	  set dummy `./$$target --version | sed 1q`; actualver="$$5"; \
-	  test "$$actualver" = "$$correctver" && rebuild=false; \
-	fi; \
-	for prereq in $?; do \
-	  case $$prereq in *ChangeLog);; *) rebuild=:;; esac; \
-	done; \
-	if $$rebuild; then \
-	  echo $(SHELL) ./config.status $$target; \
-	  cd $(top_builddir) && $(SHELL) ./config.status $$target; \
-	fi
-
-.PHONY: configure-subdirs
-configure-subdirs distdir: $(DIST_MAKEFILE_LIST)
-@DIST_MAKEFILE_LIST@:
-	dir=`echo $@ | sed 's,^[^/]*$$,.,;s,/[^/]*$$,,'`; \
-	test -d $$dir || mkdir $$dir || exit 1; \
-	abs_srcdir=`$(lt__cd) $(srcdir) && pwd`; \
-	(cd $$dir && $$abs_srcdir/$$dir/configure --with-dist) || exit 1
-
-
 # ---------- #
 # Bootstrap. #
 # ---------- #
 
-edit = sed \
-	-e 's,@EGREP\@,$(EGREP),g' \
-	-e 's,@FGREP\@,$(FGREP),g' \
-	-e 's,@GREP\@,$(GREP),g' \
-	-e 's,@LN_S\@,$(LN_S),g' \
-	-e 's,@MACRO_VERSION\@,$(VERSION),g' \
-	-e 's,@PACKAGE\@,$(PACKAGE),g' \
-	-e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
-	-e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
-	-e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
-	-e 's,@PACKAGE_STRING\@,$(PACKAGE_NAME) $(VERSION),g' \
-	-e 's,@PACKAGE_TARNAME\@,$(PACKAGE),g' \
-	-e 's,@PACKAGE_VERSION\@,$(VERSION),g' \
-	-e 's,@SED\@,$(SED),g' \
-	-e 's,@VERSION\@,$(VERSION),g' \
-	-e 's,@aclocaldir\@,$(aclocaldir),g' \
-	-e 's,@datadir\@,$(datadir),g' \
-	-e 's,@pkgdatadir\@,$(pkgdatadir),g' \
-	-e 's,@host_triplet\@,$(host_triplet),g' \
-	-e 's,@prefix\@,$(prefix),g'
-
 sh_files	= $(auxdir)/general.m4sh $(auxdir)/getopt.m4sh
 EXTRA_DIST     += bootstrap $(srcdir)/libtoolize.in $(auxdir)/ltmain.m4sh \
 		  $(auxdir)/mkstamp $(sh_files) \
@@ -149,6 +75,24 @@ EXTRA_DIST     += bootstrap $(srcdir)/libtoolize.in $(auxdir)/ltmain.m4sh \
 CLEANFILES     += libtool libtoolize libtoolize.tmp \
 		  $(auxdir)/ltmain.tmp $(m4dir)/ltversion.tmp
 
+## These are the replacements that need to be made at bootstrap time,
+## because they must be static in distributed files, and not accidentally
+## changed by configure running on the build machine.
+bootstrap_edit  = sed \
+		  -e 's,@MACRO_VERSION\@,$(VERSION),g' \
+		  -e "s,@MACRO_REVISION\@,$$correctver,g" \
+		  -e "s,@MACRO_SERIAL\@,$$serial,g" \
+		  -e 's,@PACKAGE\@,$(PACKAGE),g' \
+		  -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
+		  -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
+		  -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
+		  -e "s,@package_revision\@,$$correctver,g" \
+		  -e 's,@PACKAGE_STRING\@,$(PACKAGE_NAME) $(VERSION),g' \
+		  -e 's,@PACKAGE_TARNAME\@,$(PACKAGE),g' \
+		  -e 's,@PACKAGE_VERSION\@,$(VERSION),g' \
+		  -e "s,@TIMESTAMP\@,$$TIMESTAMP,g" \
+		  -e 's,@VERSION\@,$(VERSION),g'
+
 ## We build ltversion.m4 here, instead of from config.status,
 ## because config.status is rerun each time one of configure's
 ## dependencies change and ltversion.m4 happens to be a configure
@@ -174,11 +118,9 @@ $(srcdir)/$(m4dir)/ltversion.m4: $(m4dir)/ltversion.in configure.ac ChangeLog
 	  cd $(srcdir); \
 	  rm -f $(m4dir)/ltversion.tmp; \
 	  serial=`echo "$$correctver" | sed 's,^1[.],,g'`; \
-	  echo $(edit) -e "s,@MACRO_REVISION\@,$$correctver,g" \
-	    -e "s,@MACRO_SERIAL\@,$$serial,g" \
+	  echo $(bootstrap_edit) \
 	    $(srcdir)/$(m4dir)/ltversion.in \> $(srcdir)/$(m4dir)/ltversion.m4; \
-	  $(edit) -e "s,@MACRO_REVISION\@,$$correctver,g" \
-		  -e "s,@MACRO_SERIAL\@,$$serial,g" \
+	  $(bootstrap_edit) \
 		  $(m4dir)/ltversion.in > $(m4dir)/ltversion.tmp; \
 	  chmod a-w $(m4dir)/ltversion.tmp; \
 	  mv -f $(m4dir)/ltversion.tmp $(m4dir)/ltversion.m4; \
@@ -213,17 +155,25 @@ $(srcdir)/$(auxdir)/ltmain.sh: $(sh_files) $(auxdir)/ltmain.m4sh configure.ac Ch
 	    \> $(auxdir)/ltmain.in; \
 	  $(M4SH) -B $(auxdir) $(auxdir)/ltmain.m4sh \
 	    > $(auxdir)/ltmain.in; \
-	  echo $(edit) -e "s,@TIMESTAMP\@,$$TIMESTAMP,g" \
-	    -e "s,@package_revision\@,$$correctver," \
+	  echo $(bootstrap_edit) \
 	    $(srcdir)/$(auxdir)/ltmain.in "> $$target"; \
-	  $(edit) -e "s,@TIMESTAMP\@,$$TIMESTAMP,g" \
-		-e "s,@package_revision\@,$$1,g" \
-		$(auxdir)/ltmain.in > $(auxdir)/ltmain.tmp; \
+	  $(bootstrap_edit) -e '/^: \$${.*="@.*@"}$$/d' \
+	    $(auxdir)/ltmain.in > $(auxdir)/ltmain.tmp; \
 	  rm -f $(auxdir)/ltmain.in; \
 	  chmod a-w $(auxdir)/ltmain.tmp; \
 	  mv -f $(auxdir)/ltmain.tmp $(auxdir)/ltmain.sh; \
 	fi
 
+# Use `$(srcdir)' for the benefit of non-GNU makes: this is
+# how libtoolize.in appears in our dependencies.
+EXTRA_DIST += libtoolize.m4sh
+$(srcdir)/libtoolize.in: $(sh_files) libtoolize.m4sh Makefile.am
+	cd $(srcdir); \
+	rm -f libtoolize.in libtoolize.tmp; \
+	$(M4SH) -B $(auxdir) libtoolize.m4sh > libtoolize.tmp; \
+	$(bootstrap_edit) libtoolize.tmp > libtoolize.in; \
+	rm -f libtoolize.tmp
+
 $(srcdir)/libltdl/Makefile.am: $(srcdir)/libltdl/Makefile.inc
 	cd $(srcdir); \
 	in=libltdl/Makefile.inc; out=libltdl/Makefile.am; \
@@ -260,6 +210,69 @@ LTDL_BOOTSTRAP_DEPS = $(srcdir)/libltdl/aclocal.m4 \
 
 all-local: $(LTDL_BOOTSTRAP_DEPS)
 
+
+## ---------------- ##
+## Libtool scripts. ##
+## ---------------- ##
+
+configure_edit = sed \
+	-e 's,@aclocal_DATA\@,$(aclocalfiles),g' \
+	-e 's,@aclocaldir\@,$(aclocaldir),g' \
+	-e 's,@datadir\@,$(datadir),g' \
+	-e 's,@EGREP\@,$(EGREP),g' \
+	-e 's,@FGREP\@,$(FGREP),g' \
+	-e 's,@GREP\@,$(GREP),g' \
+	-e 's,@host_triplet\@,$(host_triplet),g' \
+	-e 's,@LN_S\@,$(LN_S),g' \
+	-e "s,@pkgconfig_files\@,$(auxfiles),g" \
+	-e 's,@pkgdatadir\@,$(pkgdatadir),g' \
+	-e "s,@pkgltdl_files\@,$(ltdldatafiles),g" \
+	-e 's,@prefix\@,$(prefix),g' \
+	-e 's,@SED\@,$(SED),g'
+
+# The libtool distributor and the standalone libtool script.
+bin_SCRIPTS = libtoolize libtool
+
+libtoolize: $(srcdir)/libtoolize.in $(top_builddir)/config.status
+	rm -f libtoolize.tmp libtoolize
+	$(configure_edit) \
+		$(srcdir)/libtoolize.in > libtoolize.tmp
+	chmod a+x libtoolize.tmp
+	chmod a-w libtoolize.tmp
+	mv -f libtoolize.tmp libtoolize
+
+# We used to do this with a 'stamp-vcl' file, but non-gmake builds
+# would rerun configure on every invocation, so now we manually
+# check the version numbers from the build rule when necessary.
+libtool: $(top_builddir)/config.status $(srcdir)/$(auxdir)/ltmain.sh ChangeLog
+	@target=libtool; $(rebuild); \
+	if test -f "$$target"; then \
+	  set dummy `./$$target --version | sed 1q`; actualver="$$5"; \
+	  test "$$actualver" = "$$correctver" && rebuild=false; \
+	fi; \
+	for prereq in $?; do \
+	  case $$prereq in *ChangeLog);; *) rebuild=:;; esac; \
+	done; \
+	if $$rebuild; then \
+	  echo $(SHELL) ./config.status $$target; \
+	  cd $(top_builddir) && $(SHELL) ./config.status $$target; \
+	fi
+
+.PHONY: configure-subdirs
+configure-subdirs distdir: $(DIST_MAKEFILE_LIST)
+@DIST_MAKEFILE_LIST@:
+	dir=`echo $@ | sed 's,^[^/]*$$,.,;s,/[^/]*$$,,'`; \
+	test -d $$dir || mkdir $$dir || exit 1; \
+	abs_srcdir=`$(lt__cd) $(srcdir) && pwd`; \
+	(cd $$dir && $$abs_srcdir/$$dir/configure --with-dist) || exit 1
+
+
+## -------- ##
+## Libltdl. ##
+## -------- ##
+
+include libltdl/Makefile.inc
+
 EXTRA_DIST += $(srcdir)/libltdl/stamp-mk $(m4dir)/lt~obsolete.m4
 
 $(srcdir)/libltdl/Makefile.in: $(srcdir)/libltdl/Makefile.am \
@@ -297,13 +310,6 @@ $(srcdir)/libltdl/config-h.in: $(sub_configure_deps)
 	touch $@
 
 
-## -------- ##
-## Libltdl. ##
-## -------- ##
-
-include libltdl/Makefile.inc
-
-
 ## -------------- ##
 ## Documentation. ##
 ## -------------- ##
@@ -553,7 +559,7 @@ $(srcdir)/tests/package.m4: $(srcdir)/configure.ac Makefile.am
 	  echo 'm4_define([AT_PACKAGE_STRING],    [@PACKAGE_STRING@])'; \
 	  echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
 	  echo 'm4_define([AT_PACKAGE_URL],       [@PACKAGE_URL@])'; \
-	} | $(edit) > $(srcdir)/tests/package.m4
+	} | $(bootstrap_edit) > $(srcdir)/tests/package.m4
 
 tests/atconfig: $(top_builddir)/config.status
 	$(SHELL) ./config.status tests/atconfig
@@ -898,7 +904,7 @@ DIST_SUBDIRS   += $(CONF_SUBDIRS)
 check-recursive: tests/defs
 tests/defs: $(srcdir)/tests/defs.in
 	rm -f tests/defs.tmp tests/defs; \
-	$(edit) $(srcdir)/tests/defs.in > tests/defs.tmp; \
+	$(configure_edit) $(srcdir)/tests/defs.in > tests/defs.tmp; \
 	mv -f tests/defs.tmp tests/defs
 
 # Use `$(srcdir)/tests' for the benefit of non-GNU makes: this is
diff --git a/NEWS b/NEWS
index 90e33f7..d8d692e 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,8 @@ New in 2.4.2 2010-12-??: git version 2.4.1a, Libtool team:
 
   - The generic approximation of the command line length limit (when getconf is
     not available) works again.  Regression introduced in v2.2.6-39-g9c3d4d8.
+  - The bug that leaked developer tool paths into the release tarballs
+    from ./bootstrap is fixed.
 
 New in 2.4 2010-09-22: git version 2.2.11a, Libtool team:
 


hooks/post-receive
-- 
GNU Libtool


From MAILER-DAEMON Sat Oct 30 03:31:00 2010
Received: from mailman by lists.gnu.org with archive (Exim 4.43)
	id 1PC5u0-0003w5-IF
	for mharc-libtool-commit@gnu.org; Sat, 30 Oct 2010 03:31:00 -0400
Received: from [140.186.70.92] (port=47408 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PC5tq-0003ov-St
	for libtool-commit@gnu.org; Sat, 30 Oct 2010 03:30:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PC5r5-0001IH-K1
	for libtool-commit@gnu.org; Sat, 30 Oct 2010 03:28:01 -0400
Received: from colonialone.fsf.org ([140.186.70.51]:38188
	helo=internal.in.savannah.gnu.org)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PC5r5-0001ID-H9
	for libtool-commit@gnu.org; Sat, 30 Oct 2010 03:27:59 -0400
Received: from [10.1.0.108] (helo=vcs-noshell.in.savannah.gnu.org)
	by internal.in.savannah.gnu.org with esmtp (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PC5r5-00009c-86
	for libtool-commit@gnu.org; Sat, 30 Oct 2010 07:27:59 +0000
Received: from rwild by vcs-noshell.in.savannah.gnu.org with local (Exim 4.69)
	(envelope-from <INVALID.NOREPLY@gnu.org>) id 1PC5r4-0003Rq-IL
	for libtool-commit@gnu.org; Sat, 30 Oct 2010 07:27:59 +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: 2f907f634e7035166a793fd70e40ae677c2a9a10
X-Git-Newrev: e5b1c89cbe621e5c962056c4c8ae4362ce66b517
Message-Id: <E1PC5r4-0003Rq-IL@vcs-noshell.in.savannah.gnu.org>
Date: Sat, 30 Oct 2010 07:27:58 +0000
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-21-ge5b1c89
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/archive/html/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 Oct 2010 07:30: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  e5b1c89cbe621e5c962056c4c8ae4362ce66b517 (commit)
      from  2f907f634e7035166a793fd70e40ae677c2a9a10 (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 e5b1c89cbe621e5c962056c4c8ae4362ce66b517
Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Date:   Wed Oct 27 20:13:28 2010 +0200

    docs: mention shell requirement for libtool script.
    
    * doc/libtool.texi (Invoking libtool): Document that the shell
    used to invoke libtool needs to be the same used to configure
    it.
    * THANKS: Update.
    Report by Markus Duft.
    
    Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

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

Summary of changes:
 ChangeLog        |    9 +++++++++
 THANKS           |    1 +
 doc/libtool.texi |    7 +++++++
 3 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index df41497..f6be7e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	docs: mention shell requirement for libtool script.
+	* doc/libtool.texi (Invoking libtool): Document that the shell
+	used to invoke libtool needs to be the same used to configure
+	it.
+	* THANKS: Update.
+	Report by Markus Duft.
+
 2010-10-15  Gary V. Vaughan  <gary@gnu.org>
 
 	libtool: remove redundant unsubstituted shell var defaults.
diff --git a/THANKS b/THANKS
index c1e9968..e85e21a 100644
--- a/THANKS
+++ b/THANKS
@@ -133,6 +133,7 @@
   Marc J. Fraioli		fraioli@dg-rtp.dg.com
   Marcel Loose			loose@astron.nl
   Mark Kettenis			kettenis@phys.uva.nl
+  Markus Duft			markus.duft@salomon.at
   Matthijs Kooijman		matthijs@stdin.nl
   Micheal E. Faenza		mfaenza@mitre.org
   Michael Haubenwallner		michael.haubenwallner@salomon.at
diff --git a/doc/libtool.texi b/doc/libtool.texi
index 076b67b..fa8d0d1 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -1326,6 +1326,13 @@ can be achieved using either option @option{-v} or option
 Print libtool version information and exit.
 @end table
 
+The current @command{libtool} implementation is done with a shell script
+that needs to be invoked by the shell which @command{configure} chose for
+configuring @command{libtool} (@pxref{config.status Invocation, , The
+Autoconf Manual, autoconf, The Autoconf Manual}).  This shell is set in
+the she-bang (@samp{#!}) line of the @command{libtool} script.  Using a
+different shell may cause undefined behavior.
+
 The @var{mode-args} are a variable number of arguments, depending on the
 selected operation mode.  In general, each @var{mode-arg} is interpreted
 by programs libtool invokes, rather than libtool itself.


hooks/post-receive
-- 
GNU Libtool


