From 4b08f42c0d443679d357897cf9a8ddff6cfde80e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 13 May 2004 13:16:55 +0000 Subject: r680: fail directly when we notice that perl is not there (we fail anyway) metze (This used to be commit 9f6deb7d795fbddc973e84a45ecb1273aa4f3aea) --- source4/build/m4/rewrite.m4 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/build/m4/rewrite.m4 b/source4/build/m4/rewrite.m4 index 08c2019a09..f1733123ea 100644 --- a/source4/build/m4/rewrite.m4 +++ b/source4/build/m4/rewrite.m4 @@ -1,7 +1,13 @@ dnl Checks for programs. + +AC_PATH_PROG(PERL, perl) +if test x"$PERL" = x""; then + AC_MSG_WARN([No version of perl was not found!]) + AC_MSG_ERROR([Please Install perl from http://www.perl.com/]) +fi + AC_PROG_CC AC_PROG_INSTALL -AC_PATH_PROG(PERL, perl) # compile with optimization and without debugging by default, but # allow people to set their own preference. -- cgit