From: foobar Date: Tue, 14 Jun 2005 01:43:53 +0000 (+0000) Subject: Allow different things to be done when found / not-found X-Git-Tag: php-5.1.0b2~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=334f5d87ff1dddcd6534ef6b2d4dae98d5e29800;p=php Allow different things to be done when found / not-found --- diff --git a/acinclude.m4 b/acinclude.m4 index 1c94878aab..c4018c6a94 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2471,7 +2471,7 @@ AC_DEFUN([PHP_REGEX],[ ]) 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 @@ AC_DEFUN([PHP_CHECK_PDO_INCLUDES],[ 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 ])