From d88434f16eb204c888723c755f9ade555fc3feb2 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Wed, 7 Dec 2011 20:31:18 +0000 Subject: Abort ./configure if we can't find Perl. --- NEWS | 1 + configure.ac | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index feda14b..814569b 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ News file for Stow. * Changes in version 2.1.2 +** ./configure now aborts if Perl isn't found. ** Ensured the ChangeLog is up-to-date when making a new distribution. Thanks to Stefano Lattarini for this suggestion. * Changes in version 2.1.1 diff --git a/configure.ac b/configure.ac index cd851d9..d88c826 100644 --- a/configure.ac +++ b/configure.ac @@ -9,12 +9,12 @@ AC_CONFIG_AUX_DIR([automake]) AM_INIT_AUTOMAKE([-Wall -Werror -Wno-override dist-bzip2]) AC_PROG_INSTALL -dnl Check for perl on our system -dnl call to AC_SUBST(PERL) is implicit +dnl Check for perl on our system. +dnl Call to AC_SUBST(PERL) is implicit AC_PATH_PROGS([PERL], [perl] [perl5], [false]) if test "x$PERL" = xfalse then - AC_MSG_WARN([WARNING: Perl not found; you must edit line 1 of 'stow']) + AC_MSG_ERROR([Perl not found; check your \$PATH.]) fi AC_ARG_WITH( -- cgit v1.2.1