aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorErnst de Haan <znerd@FreeBSD.org>2003-12-15 07:04:50 +0000
committerErnst de Haan <znerd@FreeBSD.org>2003-12-15 07:04:50 +0000
commita423698f97ae768ed9e8c71b9c7adae82493d761 (patch)
tree30d36a5209472b03cce23b0ac20372bc2cc8762d /Mk
parent509bde52c67275f45883ace6ea18f2a85ed4f198 (diff)
downloadports-a423698f97ae768ed9e8c71b9c7adae82493d761.tar.gz
ports-a423698f97ae768ed9e8c71b9c7adae82493d761.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.java.mk11
1 files changed, 7 insertions, 4 deletions
diff --git a/Mk/bsd.java.mk b/Mk/bsd.java.mk
index 8df6def91a15..76e181ead03f 100644
--- a/Mk/bsd.java.mk
+++ b/Mk/bsd.java.mk
@@ -204,7 +204,7 @@ JAVA_HOME= ${_JAVA_HOME}
#
# If the setting is 1.3+, then use an already installed 1.3 or 1.4 JDK. If
# there is no such JDK, then set USE_JAVA to 1.3. The FreeBSD JDK 1.4 is
-# preferred over 1.3 JDK's.
+# preferred over all other JDK's.
#
# If the setting is 1.4+, then set it to 1.4 right away. There is no other
# option at the moment.
@@ -254,11 +254,14 @@ USE_JAVA= 1.4
defined(HAVE_JAVA_FREEBSD_1_3) || \
defined(HAVE_JAVA_SUN_LINUX_1_3) || \
defined(HAVE_JAVA_IBM_LINUX_1_3) || \
- defined(HAVE_JAVA_BLACKDOWN_LINUX_1_3) || \
- !defined(HAVE_JAVA_SUN_LINUX_1_4)
+ defined(HAVE_JAVA_BLACKDOWN_LINUX_1_3)
USE_JAVA= 1.3
-. else
+. elif defined(HAVE_JAVA_SUN_LINUX_1_4) || \
+ defined(HAVE_JAVA_IBM_LINUX_1_4) || \
+ defined(HAVE_JAVA_BLACKDOWN_LINUX_1_4)
USE_JAVA= 1.4
+. else
+USE_JAVA= 1.3
. endif
. elif (${USE_JAVA} == "1.4+")