We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb8aedb commit cab5c25Copy full SHA for cab5c25
ext/pdo_pgsql/config.m4
@@ -71,8 +71,10 @@ if test "$PHP_PDO_PGSQL" != "no"; then
71
AC_MSG_CHECKING([for openssl dependencies])
72
if grep -q openssl $PGSQL_INCLUDE/libpq-fe.h ; then
73
AC_MSG_RESULT([yes])
74
- if pkg-config openssl ; then
75
- PDO_PGSQL_CFLAGS="`pkg-config openssl --cflags`"
+ dnl First try to find pkg-config
+ AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
76
+ if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
77
+ PDO_PGSQL_CFLAGS=`$PKG_CONFIG openssl --cflags`
78
fi
79
else
80
AC_MSG_RESULT([no])
0 commit comments