new autoconf options for rrdtool binary

git-svn-id: http://svn.php.net/repository/pecl/rrd/trunk@309504 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Miroslav Kubelik
2011-03-21 18:06:15 +00:00
parent 3acc9e0022
commit 44865ca515
2 changed files with 14 additions and 0 deletions

View File

@@ -4,6 +4,14 @@ dnl Comments in this file start with the string 'dnl'.
PHP_ARG_WITH(rrd, for rrdtool support,
[ --with-rrd[=DIR] Include rrdtool support (requires rrdtool >= 1.3.x)])
AC_ARG_WITH(rrd-binary,
[AC_HELP_STRING([--with-rrd-binary][=PATH], [rrd binary dir path, mostly for testing (default=$PATH)])],
[AC_PATH_PROG(RRDTOOL_BIN, rrdtool, no, $withval)],
[AC_PATH_PROG(RRDTOOL_BIN, rrdtool, no, $PATH)])
AC_SUBST(RRDTOOL_BIN)
AC_OUTPUT(tests/rrdtool-bin.inc)
if test "$PHP_RRD" != "no"; then
if test "$PHP_RRD" != "yes"; then
AC_MSG_CHECKING(if rrdtool specified path is valid)

6
tests/rrdtool-bin.inc.in Normal file
View File

@@ -0,0 +1,6 @@
<?php
$rrdtool_bin = "@RRDTOOL_BIN@";
if ($rrdtool_bin == "no") {
die("skip rrdtool binary isn't defined");
}
?>