diff options
author | Jani Taskinen <jani@php.net> | 2007-07-09 12:54:11 +0000 |
---|---|---|
committer | Jani Taskinen <jani@php.net> | 2007-07-09 12:54:11 +0000 |
commit | cab5c25dc2a6ad373b516876ac721cd05607e10d (patch) | |
tree | 7d45ae90d2289a89f4603241be3655bdaca01abb /ext/pdo_pgsql/config.m4 | |
parent | fb8aedb0460dd4f5cefcf20111ba29a240f75095 (diff) | |
download | php-git-cab5c25dc2a6ad373b516876ac721cd05607e10d.tar.gz |
MFH:- Fixed bug #35981 (pdo-pgsql should not use pkg-config when not present)
Diffstat (limited to 'ext/pdo_pgsql/config.m4')
-rw-r--r-- | ext/pdo_pgsql/config.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/pdo_pgsql/config.m4 b/ext/pdo_pgsql/config.m4 index 61169d491b..e0111df4d7 100644 --- a/ext/pdo_pgsql/config.m4 +++ b/ext/pdo_pgsql/config.m4 @@ -71,8 +71,10 @@ if test "$PHP_PDO_PGSQL" != "no"; then AC_MSG_CHECKING([for openssl dependencies]) if grep -q openssl $PGSQL_INCLUDE/libpq-fe.h ; then AC_MSG_RESULT([yes]) - if pkg-config openssl ; then - PDO_PGSQL_CFLAGS="`pkg-config openssl --cflags`" + dnl First try to find pkg-config + AC_PATH_PROG(PKG_CONFIG, pkg-config, no) + if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then + PDO_PGSQL_CFLAGS=`$PKG_CONFIG openssl --cflags` fi else AC_MSG_RESULT([no]) |