From 7bf3fbc42e10f9d62b353abb7b7612b0875d8abe Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 5 Aug 2015 07:25:51 +0000 Subject: [PATCH] Fix --without-postgresql handling git-svn-id: http://svn.osgeo.org/postgis/trunk@13883 b70326c6-7e19-0410-871a-916f4a2858ee --- configure.ac | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/configure.ac b/configure.ac index 1b38afc04..4a236f11e 100644 --- a/configure.ac +++ b/configure.ac @@ -357,6 +357,19 @@ fi AC_SUBST([ICONV_LDFLAGS]) AC_SUBST([ICONV_CFLAGS]) +dnl ==================================== +dnl --without-postgresql +dnl ==================================== +LIBLWGEOM_ONLY="no" +AC_ARG_WITH([postgresql], + [AS_HELP_STRING([--without-postgresql], + [Disable the postgresql extensions])], + [], []) +if test "x$with_postgresql" = "xno"; then + LIBLWGEOM_ONLY="yes" + AC_MSG_RESULT([PostgreSQL support disabled]) +fi +AC_SUBST([LIBLWGEOM_ONLY]) dnl =========================================================================== dnl Detect the version of PostgreSQL installed on the system @@ -1019,22 +1032,6 @@ fi AC_SUBST([TOPOLOGY]) -dnl ==================================== -dnl --without-postgresql -dnl ==================================== -AC_ARG_WITH([postgresql], - [AS_HELP_STRING([--without-postgresql], - [Disable the postgresql extensions])], - [], [LIBLWGEOM_ONLY="no"]) -if test "x$with_postgresql" != "xno"; then - LIBLWGEOM_ONLY="yes" - AC_MSG_RESULT([PostgreSQL support requested]) -else - AC_MSG_RESULT([PostgreSQL support disabled]) -fi - -AC_SUBST([LIBLWGEOM_ONLY]) - dnl ==================================== dnl interrupt tests dnl ==================================== -- 2.40.0