Code

provide a --with-perl option
authorM. Sean Finney <seanius@users.sourceforge.net>
Sun, 1 May 2005 19:50:15 +0000 (19:50 +0000)
committerM. Sean Finney <seanius@users.sourceforge.net>
Sun, 1 May 2005 19:50:15 +0000 (19:50 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1168 f882894a-f735-0410-b71e-b25c423dba1c

configure.in

index 65c7b31e75d3d6fb0b91994c7ef0920f02d6ac98..256fb29d23abc8a1fd5fa4e4178dac1c7944d80c 100644 (file)
@@ -101,8 +101,15 @@ AC_SUBST(REV_TIMESTAMP)
 
 dnl Checks for programs.
 AC_PATH_PROG(PYTHON,python)
-AC_PATH_PROG(PERL,perl)
 AC_PATH_PROG(SH,sh)
+AC_PATH_PROG(PERL,perl)
+
+dnl allow them to override the path of perl
+AC_ARG_WITH(perl,
+        ACX_HELP_STRING([--with-perl=PATH],
+                       [sets path to perl executable]),
+                       with_perl=$withval,with_perl=$PERL)
+AC_SUBST(PERL, $with_perl)
 
 AC_PATH_PROG(HOSTNAME,hostname)
 AC_PATH_PROG(BASENAME,basename)
@@ -1515,6 +1522,7 @@ AC_OUTPUT(
   po/Makefile.in 
 )
 
+ACX_FEATURE([with],[perl])
 ACX_FEATURE([with],[cgiurl])
 ACX_FEATURE([with],[nagios-user])
 ACX_FEATURE([with],[nagios-group])