1
0
mirror of https://github.com/danog/ext-pq.git synced 2025-01-22 22:01:33 +01:00

try to fix debian case

This commit is contained in:
Remi Collet 2015-06-11 09:13:01 +02:00
parent 368624cd05
commit 4178384df6

View File

@ -7,6 +7,7 @@ if test "$PHP_PQ" != "no"; then
SEARCH_PATH="$PHP_PQ $SEARCH_PATH"
fi
for i in $SEARCH_PATH; do
dnl for Debian
AC_MSG_CHECKING(for $i/include/postgresql/libpq-events.h)
if test -f "$i/include/postgresql/libpq-events.h"; then
PQ_INCDIR=$i
@ -35,6 +36,12 @@ if test "$PHP_PQ" != "no"; then
AC_MSG_RESULT(yep)
break
fi
dnl for Debian
if test -f "$i/$PHP_LIBDIR/x86_64-linux-gnu/libpq.$SHLIB_SUFFIX_NAME"; then
PQ_LIBDIR=$i/$PHP_LIBDIR/x86_64-linux-gnu
AC_MSG_RESULT(yep)
break
fi
AC_MSG_RESULT(nope)
done