[postgis-tickets] r17481 - Clean postgis_config.h.in and related functions

Raul raul at rmr.ninja
Mon Jun 10 06:56:14 PDT 2019


Author: algunenano
Date: 2019-06-10 06:56:14 -0700 (Mon, 10 Jun 2019)
New Revision: 17481

Modified:
   trunk/configure.ac
   trunk/postgis/lwgeom_functions_basic.c
   trunk/postgis/postgis_legacy.c
   trunk/postgis_config.h.in
Log:
Clean postgis_config.h.in and related functions

Closes https://github.com/postgis/postgis/pull/412
Closes #4423



Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2019-06-10 10:55:10 UTC (rev 17480)
+++ trunk/configure.ac	2019-06-10 13:56:14 UTC (rev 17481)
@@ -1124,16 +1124,6 @@
 AC_SUBST([POSTGIS_SCRIPTS_VERSION])
 
 
-dnl ===========================================================================
-dnl Other parameters
-dnl
-
-dnl Always enable BBOX caching by default
-AC_DEFINE_UNQUOTED([POSTGIS_AUTOCACHE_BBOX], [1], [Enable caching of bounding box within geometries])
-
-dnl Always enable use of ANALYZE statistics by default
-AC_DEFINE_UNQUOTED([POSTGIS_USE_STATS], [1], [Enable use of ANALYZE statistics])
-
 dnl ====================================
 dnl address standardizer stuff
 dnl ====================================

Modified: trunk/postgis/lwgeom_functions_basic.c
===================================================================
--- trunk/postgis/lwgeom_functions_basic.c	2019-06-10 10:55:10 UTC (rev 17480)
+++ trunk/postgis/lwgeom_functions_basic.c	2019-06-10 13:56:14 UTC (rev 17481)
@@ -44,8 +44,6 @@
 Datum LWGEOM_npoints(PG_FUNCTION_ARGS);
 Datum LWGEOM_nrings(PG_FUNCTION_ARGS);
 Datum ST_Area(PG_FUNCTION_ARGS);
-Datum postgis_uses_stats(PG_FUNCTION_ARGS);
-Datum postgis_autocache_bbox(PG_FUNCTION_ARGS);
 Datum postgis_scripts_released(PG_FUNCTION_ARGS);
 Datum postgis_version(PG_FUNCTION_ARGS);
 Datum postgis_liblwgeom_version(PG_FUNCTION_ARGS);
@@ -207,22 +205,6 @@
 	PG_RETURN_TEXT_P(result);
 }
 
-PG_FUNCTION_INFO_V1(postgis_uses_stats);
-Datum postgis_uses_stats(PG_FUNCTION_ARGS)
-{
-	PG_RETURN_BOOL(true);
-}
-
-PG_FUNCTION_INFO_V1(postgis_autocache_bbox);
-Datum postgis_autocache_bbox(PG_FUNCTION_ARGS)
-{
-#ifdef POSTGIS_AUTOCACHE_BBOX
-	PG_RETURN_BOOL(true);
-#else
-	PG_RETURN_BOOL(false);
-#endif
-}
-
 PG_FUNCTION_INFO_V1(postgis_libxml_version);
 Datum postgis_libxml_version(PG_FUNCTION_ARGS)
 {

Modified: trunk/postgis/postgis_legacy.c
===================================================================
--- trunk/postgis/postgis_legacy.c	2019-06-10 10:55:10 UTC (rev 17480)
+++ trunk/postgis/postgis_legacy.c	2019-06-10 13:56:14 UTC (rev 17481)
@@ -75,3 +75,5 @@
 POSTGIS_DEPRECATE("3.0.0", LWGEOM_mindistance3d);
 POSTGIS_DEPRECATE("3.0.0", intersects);
 POSTGIS_DEPRECATE("3.0.0", pgis_geometry_accum_finalfn);
+POSTGIS_DEPRECATE("3.0.0", postgis_autocache_bbox);
+POSTGIS_DEPRECATE("2.0.0", postgis_uses_stats);

Modified: trunk/postgis_config.h.in
===================================================================
--- trunk/postgis_config.h.in	2019-06-10 10:55:10 UTC (rev 17480)
+++ trunk/postgis_config.h.in	2019-06-10 13:56:14 UTC (rev 17481)
@@ -14,27 +14,9 @@
    language is requested. */
 #undef ENABLE_NLS
 
-/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
-   CoreFoundation framework. */
-#undef HAVE_CFLOCALECOPYCURRENT
-
-/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in
-   the CoreFoundation framework. */
-#undef HAVE_CFPREFERENCESCOPYAPPVALUE
-
-/* Define if the GNU dcgettext() function is already present or preinstalled.
-   */
-#undef HAVE_DCGETTEXT
-
 /* Define for some functions we are interested in */
-#undef HAVE_VASPRINTF
-#undef HAVE_ASPRINTF
 #undef HAVE_FSEEKO
-#undef HAVE_STRCASESTR
 
-/* Define to 1 if you have the <dlfcn.h> header file. */
-#undef HAVE_DLFCN_H
-
 /* Define if the GNU gettext() function is already present or preinstalled. */
 #undef HAVE_GETTEXT
 
@@ -47,9 +29,6 @@
 /* ieeefp.h header */
 #undef HAVE_IEEEFP_H
 
-/* Define to 1 if you have the <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
-
 /* Define to 1 if you have the `geos_c' library (-lgeos_c). */
 #undef HAVE_LIBGEOS_C
 
@@ -86,27 +65,6 @@
 /* Define to 1 if you have the <libxml/xpath.h> header file. */
 #undef HAVE_LIBXML_XPATH_H
 
-/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#undef HAVE_STDINT_H
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#undef HAVE_STDLIB_H
-
-/* Define to 1 if you have the <strings.h> header file. */
-#undef HAVE_STRINGS_H
-
-/* Define to 1 if you have the <string.h> header file. */
-#undef HAVE_STRING_H
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#undef HAVE_SYS_STAT_H
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#undef HAVE_SYS_TYPES_H
-
 /* Define to 1 if you have the <unistd.h> header file. */
 #undef HAVE_UNISTD_H
 
@@ -116,16 +74,12 @@
 /* Define to 1 if sfcgal is being built */
 #undef HAVE_SFCGAL
 
-/* Define to the sub-directory in which libtool stores uninstalled libraries.
-   */
+/* Define to the sub-directory in which libtool stores uninstalled libraries. */
 #undef LT_OBJDIR
 
 /* Location of PostgreSQL locale directory */
 #undef PGSQL_LOCALEDIR
 
-/* Enable caching of bounding box within geometries */
-#undef POSTGIS_AUTOCACHE_BBOX
-
 /* PostGIS build date */
 #undef POSTGIS_BUILD_DATE
 
@@ -159,9 +113,6 @@
 /* PROJ library version */
 #undef POSTGIS_PROJ_VERSION
 
-/* PROJ 6: Flag to use the old API */
-#undef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
-
 /* PostGIS Raster build date */
 #undef POSTGIS_RASTER_BUILD_DATE
 
@@ -189,15 +140,10 @@
 /* PostGIS scripts version */
 #undef POSTGIS_SCRIPTS_VERSION
 
-/* Enable use of ANALYZE statistics */
-#undef POSTGIS_USE_STATS
 
 /* PostGIS version */
 #undef POSTGIS_VERSION
 
-/* Define command to determine the current directory during regression */
-#undef PWDREGRESS
-
 /* Define to 1 if you have the ANSI C header files. */
 #undef STDC_HEADERS
 



More information about the postgis-tickets mailing list