diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-06-26 13:43:09 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-06-26 13:43:19 +0200 |
commit | 62bf68287df9470ca6fb9134831cd137c06e0c22 (patch) | |
tree | 044e080b2f864a551efe7814339c7e815efb07b5 /m4 | |
parent | 0759e1e79accb055a4d175729b631d42486b08dc (diff) | |
download | gnunet-62bf68287df9470ca6fb9134831cd137c06e0c22.tar.gz gnunet-62bf68287df9470ca6fb9134831cd137c06e0c22.zip |
fix postgres version check on Debian
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ax_lib_postgresql.m4 | 4 |
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], | |||
91 | POSTGRESQL_CPPFLAGS="-I`$PG_CONFIG --includedir`" | 91 | POSTGRESQL_CPPFLAGS="-I`$PG_CONFIG --includedir`" |
92 | POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir`" | 92 | POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir`" |
93 | 93 | ||
94 | POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##'` | 94 | POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##' | awk '{print $1}'` |
95 | 95 | ||
96 | AC_DEFINE([HAVE_POSTGRESQL], [1], | 96 | AC_DEFINE([HAVE_POSTGRESQL], [1], |
97 | [Define to 1 if PostgreSQL libraries are available]) | 97 | [Define to 1 if PostgreSQL libraries are available]) |
@@ -113,7 +113,7 @@ AC_DEFUN([AX_LIB_POSTGRESQL], | |||
113 | 113 | ||
114 | if test "$found_postgresql" = "yes" -a -n "$postgresql_version_req"; then | 114 | if test "$found_postgresql" = "yes" -a -n "$postgresql_version_req"; then |
115 | 115 | ||
116 | AC_MSG_CHECKING([if PostgreSQL version is >= $postgresql_version_req]) | 116 | AC_MSG_CHECKING([if PostgreSQL version $POSTGRESQL_VERSION is >= $postgresql_version_req]) |
117 | 117 | ||
118 | dnl Decompose required version string of PostgreSQL | 118 | dnl Decompose required version string of PostgreSQL |
119 | dnl and calculate its number representation | 119 | dnl and calculate its number representation |