summaryrefslogtreecommitdiff
path: root/m4/ax_lib_postgresql.m4
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-06-26 13:43:09 +0200
committerChristian Grothoff <christian@grothoff.org>2018-06-26 13:43:19 +0200
commit62bf68287df9470ca6fb9134831cd137c06e0c22 (patch)
tree044e080b2f864a551efe7814339c7e815efb07b5 /m4/ax_lib_postgresql.m4
parent0759e1e79accb055a4d175729b631d42486b08dc (diff)
fix postgres version check on Debian
Diffstat (limited to 'm4/ax_lib_postgresql.m4')
-rw-r--r--m4/ax_lib_postgresql.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_lib_postgresql.m4 b/m4/ax_lib_postgresql.m4
index d547383e4..11b6991f0 100644
--- a/m4/ax_lib_postgresql.m4
+++ b/m4/ax_lib_postgresql.m4
@@ -91,7 +91,7 @@ AC_DEFUN([AX_LIB_POSTGRESQL],
POSTGRESQL_CPPFLAGS="-I`$PG_CONFIG --includedir`"
POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir`"
- POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##'`
+ POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##' | awk '{print $1}'`
AC_DEFINE([HAVE_POSTGRESQL], [1],
[Define to 1 if PostgreSQL libraries are available])
@@ -113,7 +113,7 @@ AC_DEFUN([AX_LIB_POSTGRESQL],
if test "$found_postgresql" = "yes" -a -n "$postgresql_version_req"; then
- AC_MSG_CHECKING([if PostgreSQL version is >= $postgresql_version_req])
+ AC_MSG_CHECKING([if PostgreSQL version $POSTGRESQL_VERSION is >= $postgresql_version_req])
dnl Decompose required version string of PostgreSQL
dnl and calculate its number representation