Code

configure.in: Check for libpq for function `PQserverVersion'.
authorDoug MacEachern <dougm@hyperic.com>
Thu, 1 Jan 2009 17:33:42 +0000 (09:33 -0800)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Wed, 8 Apr 2009 14:45:15 +0000 (16:45 +0200)
It does not exist in 7.x.

Signed-off-by: Doug MacEachern <dougm@hyperic.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
configure.in

index 4d47a9fd143272a90da7db6b13a355ca50d1b943..719f94e51a7c7b5eac3ff5229a34d975787cfc96 100644 (file)
@@ -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"