- dnl for Debian
- AC_MSG_CHECKING(for $i/$PHP_LIBDIR/x86_64-linux-gnu/libpq.$SHLIB_SUFFIX_NAME)
- 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
+ if test -z "$PQ_VERSION"; then
+ AC_MSG_RESULT(not found)
+ AC_MSG_ERROR(\`$PG_CONFIG --version\` did not provide any meaningful output, please reinstall postgresql/libpq)
+ else
+ AC_MSG_RESULT($PQ_VERSION)
+ AC_DEFINE_UNQUOTED(PHP_PQ_LIBVERSION, "$PQ_VERSION", [ ])