[30338] trunk/base

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 24 23:50:16 PDT 2007


Revision: 30338
          http://trac.macosforge.org/projects/macports/changeset/30338
Author:   afb at macports.org
Date:     2007-10-24 23:50:15 -0700 (Wed, 24 Oct 2007)

Log Message:
-----------
issue warning for old versions of Mac OS X and Xcode

Modified Paths:
--------------
    trunk/base/configure
    trunk/base/configure.ac

Modified: trunk/base/configure
===================================================================
--- trunk/base/configure	2007-10-25 05:25:18 UTC (rev 30337)
+++ trunk/base/configure	2007-10-25 06:50:15 UTC (rev 30338)
@@ -2096,6 +2096,25 @@
 echo "${ECHO_T}$MACOSX_VERSION" >&6; }
 fi
 
+case "$MACOSX_VERSION" in
+  10.0*|10.1*|10.2*)
+    { echo "$as_me:$LINENO: WARNING: This version of Mac OS X is not supported" >&5
+echo "$as_me: WARNING: This version of Mac OS X is not supported" >&2;}
+    { echo "$as_me:$LINENO: WARNING: Please upgrade at http://store.apple.com/" >&5
+echo "$as_me: WARNING: Please upgrade at http://store.apple.com/" >&2;}
+    ;;
+  10.1.[0-4]|10.2.[0-7]|10.3.[0-8]|10.4.[0-8])
+    { echo "$as_me:$LINENO: WARNING: This version of Mac OS X is out of date" >&5
+echo "$as_me: WARNING: This version of Mac OS X is out of date" >&2;}
+    { echo "$as_me:$LINENO: WARNING: Please run Software Update to update it" >&5
+echo "$as_me: WARNING: Please run Software Update to update it" >&2;}
+    ;;
+  10.3*|10.4*|10.5*)
+        ;;
+  *)
+    ;;
+esac
+
 XCODEPLIST=/Developer/Applications/Xcode.app/Contents/version.plist
 if test -r "$XCODEPLIST"; then
   { echo "$as_me:$LINENO: checking Xcode version" >&5
@@ -2105,6 +2124,19 @@
 echo "${ECHO_T}$XCODE_VERSION" >&6; }
 fi
 
+case "$XCODE_VERSION" in
+  1.[0-4]*|2.[0-3]*)
+    { echo "$as_me:$LINENO: WARNING: This version of Xcode Tools is not supported" >&5
+echo "$as_me: WARNING: This version of Xcode Tools is not supported" >&2;}
+    { echo "$as_me:$LINENO: WARNING: Please upgrade at http://connect.apple.com/" >&5
+echo "$as_me: WARNING: Please upgrade at http://connect.apple.com/" >&2;}
+    ;;
+  1.5*|2.4*|3.*)
+        ;;
+  *)
+    ;;
+esac
+
 # translate mp_version (1.600) to regular version (1.6.0)
 { echo "$as_me:$LINENO: checking MacPorts version" >&5
 echo $ECHO_N "checking MacPorts version... $ECHO_C" >&6; }

Modified: trunk/base/configure.ac
===================================================================
--- trunk/base/configure.ac	2007-10-25 05:25:18 UTC (rev 30337)
+++ trunk/base/configure.ac	2007-10-25 06:50:15 UTC (rev 30338)
@@ -16,6 +16,22 @@
   AC_MSG_RESULT([$MACOSX_VERSION])
 fi
 
+case "$MACOSX_VERSION" in
+  10.0*|10.1*|10.2*)
+    AC_WARN(This version of Mac OS X is not supported)
+    AC_WARN(Please upgrade at http://store.apple.com/)
+    ;;
+  10.1.[[0-4]]|10.2.[[0-7]]|10.3.[[0-8]]|10.4.[[0-8]])
+    AC_WARN(This version of Mac OS X is out of date)
+    AC_WARN(Please run Software Update to update it)
+    ;;
+  10.3*|10.4*|10.5*)
+    dnl Supported version
+    ;;
+  *)
+    ;;
+esac
+
 XCODEPLIST=/Developer/Applications/Xcode.app/Contents/version.plist
 if test -r "$XCODEPLIST"; then
   AC_MSG_CHECKING(Xcode version)
@@ -23,6 +39,18 @@
   AC_MSG_RESULT([$XCODE_VERSION])
 fi
 
+case "$XCODE_VERSION" in
+  1.[[0-4]]*|2.[[0-3]]*)
+    AC_WARN(This version of Xcode Tools is not supported)
+    AC_WARN(Please upgrade at http://connect.apple.com/)
+    ;;
+  1.5*|2.4*|3.*)
+    dnl Supported version
+    ;;
+  *)
+    ;;
+esac
+
 # translate mp_version (1.600) to regular version (1.6.0)
 AC_MSG_CHECKING(MacPorts version)
 MP_VERSION=`cat config/mp_version | tr -d '\n'`

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071024/e2b16338/attachment-0001.html


More information about the macports-changes mailing list