diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-10-10 12:01:10 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-11-17 21:15:13 +0100 |
commit | 7ce4bb76593f2116a5943cd8c5f1bd75c2105e29 (patch) | |
tree | ebc438139e5f2ad4a05ee3ce0dcc4a77d3346578 | |
parent | c0cfd08040a920e630d83340caba1fd31df83a4d (diff) |
Check for PQconnectdbParams in libpq
-rw-r--r-- | configure.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in index e4b4dd8627b2..d586b46d666e 100644 --- a/configure.in +++ b/configure.in @@ -5366,7 +5366,8 @@ save_CFLAGS=$CFLAGS save_LIBS=$LIBS CFLAGS="-I`pg_config --includedir`" AC_CHECK_HEADER([libpq-fe.h], [], [AC_MSG_ERROR([libpq-fe.h is needed])], []) -AC_HAVE_LIBRARY(pq, [], [AC_MSG_ERROR(libpq is needed)], []) +AC_CHECK_LIB(pq, PQconnectdbParams, [], + [AC_MSG_ERROR(libpq not found or too old. Need >= 9.0)], []) CFLAGS=$save_CFLAGS LIBS=$save_LIBS SYSTEM_POSTGRESQL=YES # only option atm :-) |