diff options
author | Adam Harvey <aharvey@php.net> | 2011-03-22 09:12:01 +0000 |
---|---|---|
committer | Adam Harvey <aharvey@php.net> | 2011-03-22 09:12:01 +0000 |
commit | c5c87c5f373ee3e78f5f56c56c2afc16bc60739a (patch) | |
tree | c1535d34a50cbb3fe87816e37f98ee07b3631996 /ext/pdo_pgsql | |
parent | 334d2df892382da8acce5b2bf0f75ea616c4366a (diff) | |
download | php-git-c5c87c5f373ee3e78f5f56c56c2afc16bc60739a.tar.gz |
Fix bug #54318 (Non-portable grep option used in PDO pgsql configuration).
Patch by Ben Walton <bwalton at artsci dot utoronto dot ca>.
Diffstat (limited to 'ext/pdo_pgsql')
-rw-r--r-- | ext/pdo_pgsql/config.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/config.m4 b/ext/pdo_pgsql/config.m4 index 4a118ca810..95d59a1b4a 100644 --- a/ext/pdo_pgsql/config.m4 +++ b/ext/pdo_pgsql/config.m4 @@ -69,7 +69,8 @@ if test "$PHP_PDO_PGSQL" != "no"; then AC_DEFINE(HAVE_PDO_PGSQL,1,[Whether to build PostgreSQL for PDO support or not]) AC_MSG_CHECKING([for openssl dependencies]) - if grep -q openssl $PGSQL_INCLUDE/libpq-fe.h ; then + grep openssl $PGSQL_INCLUDE/libpq-fe.h >/dev/null 2>&1 + if test $? -eq 0 ; then AC_MSG_RESULT([yes]) dnl First try to find pkg-config AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |