disallow use of perl 5.001
authorTom Tromey <tromey@redhat.com>
Tue, 27 May 1997 04:58:46 +0000 (04:58 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 27 May 1997 04:58:46 +0000 (04:58 +0000)
ChangeLog
configure
configure.in

index 9d0c763..954247c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 Mon May 26 22:50:49 1997  Tom Tromey  <tromey@cygnus.com>
 
+       * configure.in: Error if Perl 5.001 is used.
+
        * ylwrap: Don't quote $prog when executing it.  From Jim
        Meyering.
 
index e641b18..286ba52 100755 (executable)
--- a/configure
+++ b/configure
@@ -824,8 +824,10 @@ else
 fi
 
 if test -z "$PERL"; then
-   echo "fatal error: perl not found" 1>&2
-   exit 1
+   { echo "configure: error: perl not found" 1>&2; exit 1; }
+fi
+if test -n "`$PERL -v | fgrep 'version 5.001' 2> /dev/null`"; then
+   { echo "configure: error: perl 5.001 has bug which causes automake to fail" 1>&2; exit 1; }
 fi
 
 trap '' 1 2 15
index 6b0ba6e..ed75eb1 100644 (file)
@@ -8,8 +8,10 @@ AM_INIT_AUTOMAKE(automake, 1.1p)
 AC_CHECK_PROGS(TAR, gnutar gtar tar)
 AC_PATH_PROG(PERL, perl)
 if test -z "$PERL"; then
-   echo "fatal error: perl not found" 1>&2
-   exit 1
+   AC_MSG_ERROR([perl not found])
+fi
+if test -n "`$PERL -v | fgrep 'version 5.001' 2> /dev/null`"; then
+   AC_MSG_ERROR([perl 5.001 has bug which causes automake to fail])
 fi
 
 AC_OUTPUT([Makefile automake aclocal m4/Makefile tests/Makefile],