]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
authorAkim Demaille <akim@epita.fr>
Fri, 5 Oct 2001 17:46:46 +0000 (17:46 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 5 Oct 2001 17:46:46 +0000 (17:46 +0000)
iff we are a bareword.
Reported by Raja R Harinath.

ChangeLog
lib/m4sugar/m4sh.m4

index ad29cc08f8526f75fbfb27fe0296a826b89f95d4..710b16c3b80d6aa5303cb8e2612a331dd10c7719 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-05  Akim Demaille  <akim@epita.fr>
+
+       * lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Look in the path
+       iff we are a bareword.
+       Reported by Raja R Harinath.
+
 2001-10-05  Akim Demaille  <akim@epita.fr>
 
        * tests/m4sh.at (LINENO): New.
index c5c2e1f2205a479c26c851bca397aebe68b71858..fff40dfffc0a3afdac242f74f80e1505aa920936 100644 (file)
@@ -426,9 +426,10 @@ as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 if test "x$as_lineno_1"  = "x$as_lineno_2" ||
    test "x$as_lineno_3" != "x$as_lineno_2";
   then
-  # Find who we are.
+  # Find who we are.  Look in the path if we contain no path at all
+  # relative or not.
   case $[0] in
-    [[\\/]]* | ?:[[\\/]]* ) as_myself=$[0] ;;
+    *[[\\/]]* ) as_myself=$[0] ;;
     *) _AS_PATH_WALK([],
                    [test -r "$as_dir/$[0]" && as_myself=$as_dir/$[0] && break])
        ;;