Subject: typo in libtool.m4 ( _LT_SYS_HIDDEN_LIBDEPS)

From: Gilles Gouaillardet <[email-masked]>
Date: Mon, 27 Jul 2015 10:55:46 +0900

Dear libtool folks,

i'd like to report a typo in libtool.m4 that was introduced in libtool 2.4.3

This issue was initially discussed at
https://github.com/open-mpi/ompi/issues/751

The patch below does fix this.

could you please check this out ?

Best regards,

Gilles

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 068f0d8..5bbd0a8 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -7155,8 +7155,8 @@ if AC_TRY_EVAL(ac_compile); then
     -L* | -R* | -l*)
        # Some compilers place space between "-{L,R}" and the path.
        # Remove the space.
-       if test x-L = "$p" ||
-          test x-R = "$p"; then
+       if test x-L = "x$p" ||
+          test x-R = "x$p"; then
         prev=$p
         continue
        fi