diff options
author | foobar <sniper@php.net> | 2005-06-14 00:00:53 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2005-06-14 00:00:53 +0000 |
commit | 15cf2a60b0239096f470c7ae3782af922c38912e (patch) | |
tree | eb4615e2a78319373d5501a1ad0df7fa5a48c08e /acinclude.m4 | |
parent | ee28f62dc07fa9576e45cf679654b9c236232b12 (diff) | |
download | php-git-15cf2a60b0239096f470c7ae3782af922c38912e.tar.gz |
- Added PHP_CHECK_PDO_INCLUDES macro (caches the result)
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index e190806976..1c94878aab 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2469,3 +2469,21 @@ AC_DEFUN([PHP_REGEX],[ AC_MSG_CHECKING([which regex library to use]) AC_MSG_RESULT([$REGEX_TYPE]) ]) + +dnl +dnl PHP_CHECK_PDO_INCLUDES +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 + else + AC_MSG_ERROR([Cannot find php_pdo_driver.h.]) + fi + ]) +]) |