authors.git
libpgcommon/Makefile
libpgcommon/cunit/Makefile
+utils/Makefile
AC_SUBST([TOPOLOGY])
+dnl ===========================================================================
+dnl SRID stuff
+dnl ===========================================================================
+
+SRID_MAX=999999
+SRID_USR_MAX=998999
+AC_SUBST([SRID_MAX])
+AC_SUBST([SRID_USR_MAX])
+
dnl ====================================
dnl raster stuff
doc/Makefile
doc/Makefile.comments
doc/html/image_src/Makefile
+ utils/Makefile
$RT_MAKEFILE_LIST])
dnl ===========================================================================
* Maximum allowed SRID value in serialized geometry.
* Currently we are using 21 bits (2097152) of storage for SRID.
*/
-#define SRID_MAXIMUM 999999
+#define SRID_MAXIMUM @SRID_MAX@
/**
* Maximum valid SRID value for the user
* We reserve 1000 values for internal use
*/
-#define SRID_USER_MAXIMUM 998999
+#define SRID_USER_MAXIMUM @SRID_USR_MAX@
/** Unknown SRID value */
#define SRID_UNKNOWN 0
+++ /dev/null
-SCRIPTS = \
- postgis_restore.pl \
- create_undef.pl \
- svn_repo_revision.pl \
- postgis_proc_upgrade.pl \
- profile_intersects.pl \
- test_estimation.pl \
- test_joinestimation.pl
-
-all:
- chmod +x $(SCRIPTS)
-
-# We don't install utils (why?)
-install uninstall:
-
-# There's nothing to clean
-clean distclean:
-
-# And there's nothing to check
-check:
--- /dev/null
+# **********************************************************************
+# * $Id$
+# *
+# * PostGIS - Spatial Types for PostgreSQL
+# * http://postgis.refractions.net
+# *
+# * Copyright 2008 Mark Cave-Ayland
+# *
+# * This is free software; you can redistribute and/or modify it under
+# * the terms of the GNU General Public Licence. See the COPYING file.
+# *
+# **********************************************************************
+
+SCRIPTS = \
+ postgis_restore.pl \
+ create_undef.pl \
+ svn_repo_revision.pl \
+ postgis_proc_upgrade.pl \
+ profile_intersects.pl \
+ test_estimation.pl \
+ test_joinestimation.pl
+
+SRID_MAXIMUM = @SRID_MAX@
+SRID_USER_MAXIMUM = @SRID_USR_MAX@
+
+all: postgis_restore.pl
+ chmod +x $(SCRIPTS)
+
+postgis_restore.pl: postgis_restore.pl.in
+ sed 's,@SRID_MAXIMUM@,$(SRID_MAXIMUM),g;s,@SRID_USER_MAXIMUM@,$(SRID_USER_MAXIMUM),' $< >$@
+
+# We don't install utils (why?)
+install uninstall:
+
+clean:
+ rm -f postgis_restore.pl
+
+distclean: clean
+ rm -f Makefile
+
+# And there's nothing to check
+check:
# NOTE: the SRID limits here are being discussed:
# http://postgis.refractions.net/pipermail/postgis-devel/2012-February/018463.html
-my $SRID_MAXIMUM = 999999;
-my $SRID_USER_MAXIMUM = 998999;
+my $SRID_MAXIMUM = @SRID_MAXIMUM@;
+my $SRID_USER_MAXIMUM = @SRID_USER_MAXIMUM@;
if ( @ARGV && $ARGV[0] eq '-v' ) {
$DEBUG = 1;