--- a/make/common/Defs.gmk Tue Mar 18 11:04:42 2008 -0700
+++ b/make/common/Defs.gmk Tue Mar 18 11:06:34 2008 -0700
@@ -31,6 +31,13 @@
# WARNING: This file is shared with other workspaces.
# So when it includes other files, it must use JDK_TOPDIR.
#
+
+# Check for strange explicit settings (change to empty or true)
+ifdef OPENJDK
+ ifneq ($(OPENJDK),true)
+ x:=$(error "OPENJDK (if defined) can only be set to true")
+ endif
+endif
#
# On Solaris, the 'make' utility from Sun will not work with these makefiles.
@@ -85,19 +92,6 @@ CLOSED_SRC_DIR_EXISTS := $(shell \
fi)
ifeq ($(CLOSED_SRC_DIR_EXISTS), false)
OPENJDK = true
-endif
-
-# Check for strange explicit settings (change to empty or true)
-ifdef OPENJDK
- ifeq ($(OPENJDK),false)
- # Silently treat as not defined
- OPENJDK =
- else
- ifneq ($(OPENJDK),true)
- dummy := $(warning "WARNING: OPENKJDK=$(OPENJDK) being treated as true")
- OPENJDK = true
- endif
- endif
endif
# Define where closed directories are