From 351026b0595385ca5376211c1af965bf2d4731b9 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 1 Jan 2009 09:33:42 -0800 Subject: [PATCH] configure.in: Check for libpq for function `PQserverVersion'. It does not exist in 7.x. Signed-off-by: Doug MacEachern Signed-off-by: Florian Forster --- configure.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.in b/configure.in index 4d47a9fd..719f94e5 100644 --- a/configure.in +++ b/configure.in @@ -2243,6 +2243,10 @@ then [with_libpq="yes"], [with_libpq="no (symbol 'PQconnectdb' not found)"]) + AC_CHECK_LIB(pq, PQserverVersion, + [with_libpq="yes"], + [with_libpq="no (symbol 'PQserverVersion' not found)"]) + LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libpq" = "xyes" -- 2.11.0