mirror of https://github.com/citusdata/citus.git
Modify configure to permit PostgreSQL 10
Can't very well compile for the new version if configure won't let us!pull/1439/head
parent
d3e0742b8d
commit
3a397c66ca
|
@ -1996,13 +1996,13 @@ fi
|
|||
# check we're building against a supported version of PostgreSQL
|
||||
citusac_pg_config_version=$($PG_CONFIG --version 2>/dev/null)
|
||||
version_num=$(echo "$citusac_pg_config_version"|
|
||||
$SED -e 's/^PostgreSQL \([0-9]*\)\.\([0-9]*\)\([a-zA-Z0-9.]*\)$/\1.\2/')
|
||||
$SED -e 's/^PostgreSQL \([0-9]*\)\(\.[0-9]*\)\{0,1\}\(.*\)$/\1\2/')
|
||||
|
||||
if test -z "$version_num"; then
|
||||
as_fn_error $? "Could not detect PostgreSQL version from pg_config." "$LINENO" 5
|
||||
fi
|
||||
|
||||
if test "$version_num" != '9.5' -a "$version_num" != '9.6'; then
|
||||
if test "$version_num" != '9.5' -a "$version_num" != '9.6' -a "$version_num" != '10'; then
|
||||
as_fn_error $? "Citus is not compatible with the detected PostgreSQL version ${version_num}." "$LINENO" 5
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: building against PostgreSQL $version_num" >&5
|
||||
|
|
|
@ -50,13 +50,13 @@ fi
|
|||
# check we're building against a supported version of PostgreSQL
|
||||
citusac_pg_config_version=$($PG_CONFIG --version 2>/dev/null)
|
||||
version_num=$(echo "$citusac_pg_config_version"|
|
||||
$SED -e 's/^PostgreSQL \([[0-9]]*\)\.\([[0-9]]*\)\([[a-zA-Z0-9.]]*\)$/\1.\2/')
|
||||
$SED -e 's/^PostgreSQL \([[0-9]]*\)\(\.[[0-9]]*\)\{0,1\}\(.*\)$/\1\2/')
|
||||
|
||||
if test -z "$version_num"; then
|
||||
AC_MSG_ERROR([Could not detect PostgreSQL version from pg_config.])
|
||||
fi
|
||||
|
||||
if test "$version_num" != '9.5' -a "$version_num" != '9.6'; then
|
||||
if test "$version_num" != '9.5' -a "$version_num" != '9.6' -a "$version_num" != '10'; then
|
||||
AC_MSG_ERROR([Citus is not compatible with the detected PostgreSQL version ${version_num}.])
|
||||
else
|
||||
AC_MSG_NOTICE([building against PostgreSQL $version_num])
|
||||
|
|
Loading…
Reference in New Issue