]> granicus.if.org Git - postgis/commitdiff
PostGIS not building on latest OSX XCode
authorRegina Obe <lr@pcorp.us>
Mon, 26 Sep 2016 21:47:05 +0000 (21:47 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 26 Sep 2016 21:47:05 +0000 (21:47 +0000)
References #3643 for PostGIS 2.3.1 (patch from pramsey)

git-svn-id: http://svn.osgeo.org/postgis/branches/2.3@15153 b70326c6-7e19-0410-871a-916f4a2858ee

NEWS
configure.ac

diff --git a/NEWS b/NEWS
index 0535be621dd951deca35cbb3f2ef20416d81f408..b9291aa875c9bd98c09c3163ca5532c89bb18028 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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
 
index 5c246995567dddec0c339fe7c4a27b5b456c4a1b..7fc973d34ca53bf9e4f07e3cfbab36a4b54066d9 100644 (file)
@@ -564,6 +564,20 @@ dnl Extract the linker and include flags
 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`