From: Doug MacEachern Date: Thu, 1 Jan 2009 17:33:42 +0000 (-0800) Subject: configure.in: Check for libpq for function `PQserverVersion'. X-Git-Tag: collectd-4.7.0~76^2~1 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=351026b0595385ca5376211c1af965bf2d4731b9 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 --- 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"