7151898: Check for LANG in Mac OS X jdk build sanity check [macosx]
authormichaelm
Thu, 15 Mar 2012 16:45:55 +0000
changeset 12190 2a7d7cc90f2f
parent 12054 e395fe961b4a
child 12191 115ba6d4dcdd
7151898: Check for LANG in Mac OS X jdk build sanity check [macosx] Reviewed-by: ohair, smarks
jdk/make/common/shared/Sanity.gmk
--- a/jdk/make/common/shared/Sanity.gmk	Thu Mar 08 13:44:33 2012 -0800
+++ b/jdk/make/common/shared/Sanity.gmk	Thu Mar 15 16:45:55 2012 +0000
@@ -348,7 +348,13 @@
 	    "        Try setting LANG to 'C'. \n" \
 	    "" >> $(WARNING_FILE) ; \
         fi
+ifeq ($(PLATFORM), macosx)
+	@if [ "$(LANG)" = "" ]; then \
+	  $(ECHO) "ERROR: LANG must be set on Mac OS X. Recommended value is \"C\"" >> $(ERROR_FILE) ; \
+	fi
 endif
+endif
+
 
 ######################################################
 # Check the Windows cygwin version