Fix build with offline raster enabled (the default)
authorSandro Santilli <strk@keybit.net>
Thu, 10 Apr 2014 09:53:52 +0000 (09:53 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 10 Apr 2014 09:53:52 +0000 (09:53 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12451 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index 6c6392eda3ef9a12e67d3d214f692146a881f266..ae56eecf65245e9c33a1f8211b1ec5452b75a8a2 100644 (file)
@@ -1107,19 +1107,20 @@ if test "x$with_raster" != "xno"; then
 
                AC_SUBST([GDALFPOLYGONIZE])
 
-    dnl ===========================================================================
-    dnl Allow output of double truncation warnings with --with-raster-dblwarning
-    dnl ===========================================================================
-    AC_ARG_ENABLE(
-      [offline-rasters],
-      AC_HELP_STRING([--disable-offline-rasters], [disable support for off-db rasters]),
-      [POSTGIS_RASTER_DISABLE_OFFLINE=1],
-      [POSTGIS_RASTER_DISABLE_OFFLINE=0])
-
-    AC_DEFINE_UNQUOTED(
-      [POSTGIS_RASTER_DISABLE_OFFLINE],
-      [$POSTGIS_RASTER_DISABLE_OFFLINE],
-      [Define to disable support for offline rasters])
+               dnl ===========================================================================
+               dnl Disable offline raster storage with --disable-offline-raster
+               dnl ===========================================================================
+               AC_ARG_ENABLE(
+                       [offline-rasters],
+                       AC_HELP_STRING([--disable-offline-rasters], [disable support for off-db rasters]),
+                       [POSTGIS_RASTER_DISABLE_OFFLINE=1],
+                       [POSTGIS_RASTER_DISABLE_OFFLINE=0])
+               if test "x$POSTGIS_RASTER_DISABLE_OFFLINE" = "x1"; then
+                       AC_DEFINE_UNQUOTED(
+                               [POSTGIS_RASTER_DISABLE_OFFLINE],
+                               [$POSTGIS_RASTER_DISABLE_OFFLINE],
+                               [Define to disable support for offline rasters])
+               fi
 
        else
                AC_MSG_RESULT([not found])