From f82565d12930e412183529ffc5c8d362f2eee244 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 16 May 2011 18:25:33 +0000 Subject: [PATCH] scstadmin/Makefile: verify whether the Perl module ExtUtils::MakeMaker has been installed before trying to install scstadmin itself. Based on a suggestion by Hiroyuki Sato. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3456 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scstadmin/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scstadmin/Makefile b/scstadmin/Makefile index fd019b547..aea699ca6 100644 --- a/scstadmin/Makefile +++ b/scstadmin/Makefile @@ -6,6 +6,9 @@ all: cd $(SCSTADMIN_DIR) && $(MAKE) $@ install: + @if ! perl -MExtUtils::MakeMaker -e '' >/dev/null 2>&1; then \ + echo Error: the Perl module ExtUtils::MakeMaker must be installed \ + first; false; fi cd $(SCSTADMIN_DIR) && $(MAKE) $@ -/usr/lib/lsb/install_initd scst -/usr/lib/lsb/install_initd qla2x00t