]> granicus.if.org Git - graphviz/commitdiff
fix for php breakage cause by swig update in rawhide
authorellson <devnull@localhost>
Tue, 17 Feb 2009 16:14:58 +0000 (16:14 +0000)
committerellson <devnull@localhost>
Tue, 17 Feb 2009 16:14:58 +0000 (16:14 +0000)
configure.ac

index 7536d9ba362ebec0e1c56a13cb51072ff20018a7..db4ee1202b710383d1ae3b7814df6ed345f29a2f 100644 (file)
@@ -1010,8 +1010,8 @@ else
   if test "x$use_swig" != "xYes"; then
     use_php="No (swig not available)"
   else
-    if test `$SWIG -help 2>&1 | $GREP -c '\-php5 *- Generate'` = 0; then
-      use_php="No (swig does not support -php5 option)"
+    if test `$SWIG -help 2>&1 | $GREP -c '\-php *- Generate'` = 0 && `$SWIG -help 2>&1 | $GREP -c '\-php5 *- Generate'` = 0; then
+      use_php="No (swig does not support -php or -php5 option)"
     else
       AC_CHECK_PROG(PHP,php,php)
       if test "x$PHP" = "x"; then