[postgis-tickets] r17244 - Configure: Accept missing proj pg-config script

Raul raul at rmr.ninja
Mon Feb 11 09:54:28 PST 2019


Author: algunenano
Date: 2019-02-11 09:54:28 -0800 (Mon, 11 Feb 2019)
New Revision: 17244

Modified:
   trunk/configure.ac
Log:
Configure: Accept missing proj pg-config script

It was introduced in PROJ 4.8 and wasn't included under some
distributions until 4.9



Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2019-02-11 17:35:54 UTC (rev 17243)
+++ trunk/configure.ac	2019-02-11 17:54:28 UTC (rev 17244)
@@ -853,10 +853,15 @@
 		fi
 	fi
 elif test ! -z "$PKG_CONFIG"; then
-	PKG_CHECK_MODULES([PROJ], [proj], [
+        dnl To keep compatibility with PROJ pre 4.8, default to lproj if not found
+	PKG_CHECK_MODULES([PROJ], [proj],
+            [
                 PROJ_CPPFLAGS="$PROJ_CFLAGS"
                 PROJ_LDFLAGS="$PROJ_LIBS"
-            ], [])
+            ],
+            [
+                PROJ_LDFLAGS="-lproj"
+            ])
 fi
 
 



More information about the postgis-tickets mailing list