From: ellson Date: Thu, 7 Dec 2006 17:25:53 +0000 (+0000) Subject: detect php support in recent version of swig ( 'swig --help' now lists it as -php5... X-Git-Tag: LAST_LIBGRAPH~32^2~5799 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb0591eda4ed106f1a96aae1be788eda5295a41d;p=graphviz detect php support in recent version of swig ( 'swig --help' now lists it as -php5 instead of -php) --- diff --git a/configure.ac b/configure.ac index 91cd3837c..9d20ea639 100644 --- a/configure.ac +++ b/configure.ac @@ -628,7 +628,7 @@ if test "x$SWIG" != "x"; then AC_ARG_ENABLE(php, [AC_HELP_STRING([--disable-php], [don't support php language bindings])]) if test "x$enable_php" != "xno"; then -if test `$SWIG -help 2>&1 | $GREP -c '\-php *- Generate'` = 0; then +if test `$SWIG -help 2>&1 | $GREP -c '\-php[5 ]*- Generate'` = 0; then PHP= AC_MSG_WARN([swig does not support php. The PHP packages will not be built]) else