Merge
authorigor
Wed, 08 Dec 2010 00:35:33 -0800
changeset 7310 4a42e58ee6c3
parent 7309 c0a09e5eca8e (diff)
parent 7305 d0b48c126362 (current diff)
child 7311 97b6d9dcd699
Merge
jdk/src/share/classes/sun/net/httpserver/SelectorCache.java
--- a/jdk/make/common/Defs.gmk	Mon Dec 06 20:35:04 2010 -0800
+++ b/jdk/make/common/Defs.gmk	Wed Dec 08 00:35:33 2010 -0800
@@ -83,14 +83,19 @@
   CLOSED_SRC  = $(BUILDDIR)/../src/closed
 endif
 
-# If we have no closed directory, force it to an openjdk build
-CLOSED_SRC_DIR_EXISTS := $(shell \
-  if [ -d $(CLOSED_SRC) ] ; then \
-    echo true; \
-  else \
-    echo false; \
-  fi)
-ifeq ($(CLOSED_SRC_DIR_EXISTS), false)
+# If CLOSE_SRC_INCLUDED isn't set to true, check if there's any
+# closed directory.
+ifneq ($(CLOSED_SRC_INCLUDED), true)
+  CLOSED_SRC_INCLUDED := $(shell \
+    if [ -d $(CLOSED_SRC) ] ; then \
+      echo true; \
+    else \
+      echo false; \
+    fi)
+endif
+
+# Set OPENJDK based on CLOSED_SRC_INCLUDED
+ifeq ($(CLOSED_SRC_INCLUDED), false)
   OPENJDK = true
 endif