sniper          Mon Jun 13 21:43:53 2005 EDT

  Modified files:              
    /php-src    acinclude.m4 
  Log:
  Allow different things to be done when found / not-found
  
http://cvs.php.net/diff.php/php-src/acinclude.m4?r1=1.317&r2=1.318&ty=u
Index: php-src/acinclude.m4
diff -u php-src/acinclude.m4:1.317 php-src/acinclude.m4:1.318
--- php-src/acinclude.m4:1.317  Mon Jun 13 20:00:51 2005
+++ php-src/acinclude.m4        Mon Jun 13 21:43:53 2005
@@ -1,5 +1,5 @@
 dnl
-dnl $Id: acinclude.m4,v 1.317 2005/06/14 00:00:51 sniper Exp $
+dnl $Id: acinclude.m4,v 1.318 2005/06/14 01:43:53 sniper Exp $
 dnl
 dnl This file contains local autoconf functions.
 dnl
@@ -2471,7 +2471,7 @@
 ])
 
 dnl
-dnl PHP_CHECK_PDO_INCLUDES
+dnl PHP_CHECK_PDO_INCLUDES([found [, not-found]])
 dnl
 AC_DEFUN([PHP_CHECK_PDO_INCLUDES],[
   AC_CACHE_CHECK([for PDO includes], pdo_inc_path, [
@@ -2482,8 +2482,11 @@
       pdo_inc_path=$abs_srcdir/ext
     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
       pdo_inc_path=$prefix/include/php/ext
-    else
-      AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
     fi
   ])
+  if test -n "$pdo_inc_path"; then
+ifelse([$1],[],:,[$1])
+  else
+ifelse([$2],[],[AC_MSG_ERROR([Cannot find php_pdo_driver.h.])],[$2])
+  fi
 ])

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to