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])
+
else
AC_MSG_RESULT([not found])
AC_MSG_ERROR([gdal-config not found. Use --without-raster or try --with-gdalconfig=<path to gdal-config>])
AC_MSG_RESULT()
AC_MSG_RESULT([ --------------- Extensions --------------- ])
if test "x$RASTER" = "xraster"; then
- AC_MSG_RESULT([ PostGIS Raster: enabled])
+ if test "x$POSTGIS_RASTER_DISABLE_OFFLINE" = "x1"; then
+ AC_MSG_RESULT([ PostGIS Raster: enabled (no offline)])
+ else
+ AC_MSG_RESULT([ PostGIS Raster: enabled (offline included)])
+ fi
else
AC_MSG_RESULT([ PostGIS Raster: disabled])
/* Define to 1 if a warning is outputted every time a double is truncated */
#undef POSTGIS_RASTER_WARN_ON_TRUNCATION
+
+/* Define to disable support for offline rasters */
+#undef POSTGIS_RASTER_DISABLE_OFFLINE