[postgis-tickets] r15153 - PostGIS not building on latest OSX XCode

Regina Obe lr at pcorp.us
Mon Sep 26 14:47:06 PDT 2016


Author: robe
Date: 2016-09-26 14:47:05 -0700 (Mon, 26 Sep 2016)
New Revision: 15153

Modified:
   branches/2.3/NEWS
   branches/2.3/configure.ac
Log:
PostGIS not building on latest OSX XCode
References #3643 for PostGIS 2.3.1 (patch from pramsey)

Modified: branches/2.3/NEWS
===================================================================
--- branches/2.3/NEWS	2016-09-26 20:32:07 UTC (rev 15152)
+++ branches/2.3/NEWS	2016-09-26 21:47:05 UTC (rev 15153)
@@ -1,3 +1,9 @@
+PostGIS 2.3.1
+2016/xx/xx
+
+  * Bug Fixes
+  - #3643 PostGIS not building on latest OSX XCode
+
 PostGIS 2.3.0
 2016/09/26
 

Modified: branches/2.3/configure.ac
===================================================================
--- branches/2.3/configure.ac	2016-09-26 20:32:07 UTC (rev 15152)
+++ branches/2.3/configure.ac	2016-09-26 21:47:05 UTC (rev 15153)
@@ -564,6 +564,20 @@
 XML2_LDFLAGS=`$XML2CONFIG --libs`
 XML2_CPPFLAGS=`$XML2CONFIG --cflags`
 
+AC_PATH_PROG([XCRUN], [xcrun])
+if test "x$XCRUN" = "x"; then
+	AC_MSG_RESULT([OSX XCode is OK])
+else
+      XCODE_VER=`$XCRUN --show-sdk-version`
+      if test $XCODE_VER = "10.12"; then
+              AC_MSG_RESULT([OSX XCode 10.12 is Not OK... hacking])
+              XML2_LDFLAGS=`$XML2CONFIG --exec-prefix=/usr --libs`
+      else
+              AC_MSG_RESULT([OSX XCode is OK])
+      fi
+fi
+
+
 dnl Extract the version
 POSTGIS_LIBXML2_VERSION=`$XML2CONFIG --version`
 



More information about the postgis-tickets mailing list