]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Require not only that `perl' have the executable
authorJim Meyering <jim@meyering.net>
Mon, 17 Nov 2003 08:52:30 +0000 (08:52 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 17 Nov 2003 08:52:30 +0000 (08:52 +0000)
bit set, but also that it is not a directory.

bootstrap

index 132cbc13ffd76bc672b0669a1e9c0d015f61582d..130fa8a34f20fff6d56b32073d29577aa65a1288 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -40,7 +40,7 @@ if test -z "$PERL"; then
        for dir in $PATH; do
                IFS=$save_IFS
                test -z "$dir" && dir=.
-               if test -x "$dir/perl"; then
+               if test -x "$dir/perl" && test ! -d "$dir/perl"; then
                        PERL="$dir/perl"
                        break
                fi