summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2011-09-29 06:49:59 +0200
committerTobi Oetiker <tobi@oetiker.ch>2011-09-29 06:49:59 +0200
commit3acd454b9c2d9c5e2f6255c5c6472a99b2d0f1dc (patch)
tree1e1e813b7c8ede6c740647606ca10eb00e7ffd90
parentbac2ea4e099770cdf3074e093da085769f97a04f (diff)
downloadsmokeping-3acd454b9c2d9c5e2f6255c5c6472a99b2d0f1dc.tar.gz
smokeping-3acd454b9c2d9c5e2f6255c5c6472a99b2d0f1dc.tar.xz
check for gnumake in configure
-rw-r--r--configure.ac25
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 531c424..d8f9cee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -41,6 +41,15 @@ AC_PATH_PROG(MKDIR, mkdir, no)
AC_PATH_PROG(FIND, find, no)
AC_PATH_PROGS(NROFF, [gnroff nroff])
+AC_ARG_VAR(GMAKE, [Path to local GNU Make binary])
+AC_PATH_PROGS(GMAKE, [gnumake gmake make])
+
+AC_MSG_CHECKING([checking for gnu make availablility])
+if ( $GMAKE --version 2> /dev/null | $GREP GNU > /dev/null 2>&1 ); then
+ AC_MSG_RESULT([$GMAKE is GNU make])
+else
+ AC_MSG_ERROR([GNU make not found. Try setting the GMAKE environment variable.])
+fi
AC_ARG_ENABLE(pkgonly,
[AC_HELP_STRING([--enable-pkgonly],
@@ -107,3 +116,19 @@ AC_CONFIG_FILES([Makefile bin/Makefile doc/Makefile htdocs/Makefile etc/Makefile
AC_SUBST(VERSION)
AC_OUTPUT
+
+ cat <<NOTES
+
+** Ready to install Smokeping ******************************
+
+ Settings:
+
+ PERL5LIB = ${PERL5LIB:-"not set"}
+ PERL = $PERL
+
+ The Smokeping Makefiles use GNU make functionality.
+ Continue installation with
+
+ $GMAKE install
+
+NOTES