[geos-commits] r2744 - trunk
svn_geos at osgeo.org
svn_geos at osgeo.org
Thu Nov 26 14:49:25 EST 2009
Author: pramsey
Date: 2009-11-26 14:49:24 -0500 (Thu, 26 Nov 2009)
New Revision: 2744
Modified:
trunk/configure.in
Log:
Add magic flags for OS/X Snow Leopard only. (#299)
Modified: trunk/configure.in
===================================================================
--- trunk/configure.in 2009-11-26 19:46:31 UTC (rev 2743)
+++ trunk/configure.in 2009-11-26 19:49:24 UTC (rev 2744)
@@ -201,7 +201,6 @@
-
dnl --------------------------------------------------------------------
dnl - check whether python is required for the build
dnl --------------------------------------------------------------------
@@ -284,6 +283,38 @@
dnl --------------------------------------------------------------------
+dnl - do operating-system specific things
+dnl --------------------------------------------------------------------
+
+AC_MSG_CHECKING([OS-specific settings])
+
+case "${host_os}" in
+ *darwin*)
+ AC_MSG_RESULT([${host_os}])
+ AC_MSG_CHECKING([for OS/X version])
+ kernel=`uname -r`
+
+ # "Darwin 9.6.0" is Mac OSX 10.5.6
+ # "Darwin 10.x" would presumably be Mac OS X 10.6.x
+ case "${kernel}" in
+ 8.*)
+ AC_MSG_RESULT([Mac OS X 10.4 Tiger])
+ ;;
+ 9.*)
+ AC_MSG_RESULT([Mac OS X 10.5 Leopard])
+ ;;
+ 10.*)
+ CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor -Woverloaded-virtual"
+ AC_MSG_RESULT([Mac OS X 10.6 Snow Leopard])
+ ;;
+ *)
+ AC_MSG_RESULT([Mac OS X (Darwin ${kernel} kernel)])
+ ;;
+ esac
+ ;;
+esac
+
+dnl --------------------------------------------------------------------
dnl - check for boost
dnl --------------------------------------------------------------------
More information about the geos-commits
mailing list