mirror of
https://github.com/php-win-ext/pecl-processing-rrd.git
synced 2026-03-24 00:52:13 +01:00
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:
@@ -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
6
tests/rrdtool-bin.inc.in
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
$rrdtool_bin = "@RRDTOOL_BIN@";
|
||||
if ($rrdtool_bin == "no") {
|
||||
die("skip rrdtool binary isn't defined");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user