helly           Mon Jul 25 18:31:09 2005 EDT

  Modified files:              (Branch: PHP_5_0)
    /php-src    acinclude.m4 
  Log:
  - MFH: Missing PDO build support
  
http://cvs.php.net/diff.php/php-src/acinclude.m4?r1=1.271.2.21&r2=1.271.2.22&ty=u
Index: php-src/acinclude.m4
diff -u php-src/acinclude.m4:1.271.2.21 php-src/acinclude.m4:1.271.2.22
--- php-src/acinclude.m4:1.271.2.21     Mon Jul 18 14:39:37 2005
+++ php-src/acinclude.m4        Mon Jul 25 18:31:07 2005
@@ -1,4 +1,4 @@
-dnl $Id: acinclude.m4,v 1.271.2.21 2005/07/18 18:39:37 sniper Exp $ -*- 
autoconf -*-
+dnl $Id: acinclude.m4,v 1.271.2.22 2005/07/25 22:31:07 helly Exp $ -*- 
autoconf -*-
 dnl
 dnl This file contains local autoconf functions.
 
@@ -2095,3 +2095,23 @@
  fi
 ])
 
+dnl
+dnl PHP_CHECK_PDO_INCLUDES([found [, not-found]])
+dnl
+AC_DEFUN([PHP_CHECK_PDO_INCLUDES],[
+  AC_CACHE_CHECK([for PDO includes], pdo_inc_path, [
+    AC_MSG_CHECKING([for PDO includes])
+    if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
+      pdo_inc_path=$abs_srcdir/ext
+    elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
+      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
+    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