]> granicus.if.org Git - postgis/commitdiff
Add --without-postgresql switch to only build liblwgeom (#3157)
authorSandro Santilli <strk@keybit.net>
Wed, 5 Aug 2015 06:57:34 +0000 (06:57 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 5 Aug 2015 06:57:34 +0000 (06:57 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13882 b70326c6-7e19-0410-871a-916f4a2858ee

GNUmakefile.in
configure.ac

index 3c7f1d8abaafa8aa319cc8710fa78b9a5c2a86eb..13c0d528415ae6c2db03d77fc407c39b03da392c 100644 (file)
@@ -4,8 +4,10 @@
 #
 #-----------------------------------------------------
 
-# todo: add all subdirs
-SUBDIRS = liblwgeom libpgcommon postgis regress @RASTER@ @TOPOLOGY@ loader utils doc @EXTENSIONS@
+SUBDIRS = liblwgeom
+ifeq (@LIBLWGEOM_ONLY@,no)
+SUBDIRS += libpgcommon postgis regress @RASTER@ @TOPOLOGY@ loader utils doc @EXTENSIONS@
+endif
 
 PERL = @PERL@
 
index 025ec94eaa02f05f89923e1f1a65d761157ec653..1b38afc047d3148458024739c7a6cebc4efec88a 100644 (file)
@@ -1019,6 +1019,22 @@ 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 ====================================