5795c69
diff -urN graphviz-2.12/configure graphviz-2.12-patched/configure
5795c69
--- graphviz-2.12/configure	2006-12-04 16:02:10.000000000 -0600
5795c69
+++ graphviz-2.12-patched/configure	2006-12-08 09:45:19.000000000 -0600
5795c69
@@ -25552,7 +25552,7 @@
5795c69
 
5795c69
 fi;
5795c69
 if test "x$enable_php" != "xno"; then
5795c69
-if test `$SWIG -help 2>&1 | $GREP -c '\-php *- Generate'` = 0; then
5795c69
+if test `$SWIG -help 2>&1 | $GREP -c '\-php[5 ]*- Generate'` = 0; then
5795c69
 	PHP=
5795c69
 	{ echo "$as_me:$LINENO: WARNING: swig does not support php. The PHP packages will not be built" >&5
5795c69
 echo "$as_me: WARNING: swig does not support php. The PHP packages will not be built" >&2;}
5795c69
diff -urN graphviz-2.12/configure.ac graphviz-2.12-patched/configure.ac
5795c69
--- graphviz-2.12/configure.ac	2006-12-04 15:11:58.000000000 -0600
5795c69
+++ graphviz-2.12-patched/configure.ac	2006-12-08 08:07:10.000000000 -0600
5795c69
@@ -1,4 +1,4 @@
5795c69
-# $Id: graphviz-php5.patch,v 1.1 2006/12/11 18:42:36 jima Exp $ $Revision: 1.1 $
5795c69
+# $Id: graphviz-php5.patch,v 1.1 2006/12/11 18:42:36 jima Exp $ $Revision: 1.1 $
5795c69
 
5795c69
 # Process this file with autoconf to produce a configure script
5795c69
 AC_PREREQ(2.54)
5795c69
@@ -628,7 +628,7 @@
5795c69
 AC_ARG_ENABLE(php,
5795c69
   [AC_HELP_STRING([--disable-php], [don't support php language bindings])])
5795c69
 if test "x$enable_php" != "xno"; then
5795c69
-if test `$SWIG -help 2>&1 | $GREP -c '\-php *- Generate'` = 0; then
5795c69
+if test `$SWIG -help 2>&1 | $GREP -c '\-php[[5 ]]*- Generate'` = 0; then
5795c69
 	PHP=
5795c69
 	AC_MSG_WARN([swig does not support php. The PHP packages will not be built])
5795c69
 else