]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBTOOL_SETUP, AC_LIBTOOL_LANG_CXX_CONFIG,
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 21 Mar 2005 18:16:49 +0000 (18:16 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 21 Mar 2005 18:16:49 +0000 (18:16 +0000)
AC_LIBTOOL_LANG_F77_CONFIG, AC_LIBTOOL_PROG_LD_SHLIBS):
For matching compiler names: Pick only first word, allow leading white
space..
* tests/sh.test: ..and test for missing `*' at end of patterns.

ChangeLog
libtool.m4
tests/sh.test

index 0a6b21e89187343bba81852321e3c54b49a5216e..f17aaefb287dd005b77205b9508067cf6d1693dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-05-21  Gary V. Vaughan  <gary@gnu.org>,
+           Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * libtool.m4 (AC_LIBTOOL_SETUP, AC_LIBTOOL_LANG_CXX_CONFIG,
+       AC_LIBTOOL_LANG_F77_CONFIG, AC_LIBTOOL_PROG_LD_SHLIBS):
+       For matching compiler names: Pick only first word, allow leading white
+       space..
+       * tests/sh.test: ..and test for missing `*' at end of patterns.
+
 2005-03-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * tests/demo-nopic.test: Enhance status output
index f1a7873483ce895b97d724cc32a69886b4264cc8..4cc6f45e234ce018d929d910908137d66a0eb4d0 100644 (file)
@@ -185,7 +185,8 @@ if test -n "$RANLIB"; then
   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 fi
 
-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
+cc_basename=`$echo "X$compiler" \
+     | $Xsed -e 's%.*/%%;s%^[  ]*\([^  ]*\).*$%\1%'`
 
 # Only perform the check for file, if the check method requires it
 case $deplibs_check_method in
@@ -2668,7 +2669,8 @@ test -z "${LDCXX+set}" || LD=$LDCXX
 CC=${CXX-"c++"}
 compiler=$CC
 _LT_AC_TAGVAR(compiler, $1)=$CC
-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
+cc_basename=`$echo "X$compiler" \
+     | $Xsed -e 's%.*/%%;s%^[  ]*\([^  ]*\).*$%\1%'`
 
 # We don't want -fno-exception wen compiling C++ code, so set the
 # no_builtin_flag separately
@@ -3733,7 +3735,8 @@ lt_save_CC="$CC"
 CC=${F77-"f77"}
 compiler=$CC
 _LT_AC_TAGVAR(compiler, $1)=$CC
-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
+cc_basename=`$echo "X$compiler" \
+     | $Xsed -e 's%.*/%%;s%^[  ]*\([^  ]*\).*$%\1%'`
 
 AC_MSG_CHECKING([if libtool supports shared libraries])
 AC_MSG_RESULT([$can_build_shared])
@@ -5143,7 +5146,8 @@ ifelse([$1],[CXX],[
   # preloaded symbol tables.
   extract_expsyms_cmds=
   # Just being paranoid about ensuring that cc_basename is set.
-  cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
+  cc_basename=`$echo "X$compiler" \
+      | $Xsed -e 's%.*/%%;s%^[         ]*\([^  ]*\).*$%\1%'`
   case $host_os in
   cygwin* | mingw* | pw32*)
     # FIXME: the MSVC++ port hasn't been tested in a loooong time
index 95907442b238953708cbee8a5fe1e5bb32207166..1ee752e2c04078c1ed4b72b72d53d8304006fcf2 100755 (executable)
@@ -74,4 +74,14 @@ if $EGREP -n -e '"[^`"]*`[^"`]*"[^"`]*".*`[^`"]*"' $scripts | \
   status=1
 fi
 
+for s in "$srcdir/../libtool.m4"
+do
+  if $SED -n '/case \$cc_basename in/,/esac/ {
+             /^[       ]*[a-zA-Z][a-zA-Z0-9+]*[^*][    ]*)/p
+             };'  $s | $EGREP .; then
+    echo "\$cc_basename matches should include a trailing \`*' in $s."
+    status=$EXIT_FAILURE
+  fi
+done
+
 exit $status