Index: /trunk/src/VBox/Main/webservice/Makefile.kmk
===================================================================
--- /trunk/src/VBox/Main/webservice/Makefile.kmk	(revision 31021)
+++ /trunk/src/VBox/Main/webservice/Makefile.kmk	(revision 31022)
@@ -436,5 +436,5 @@
 	/opt/sun-jdk-1.5*/bin/java \
         /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java))
- ifndef VBOX_JAVA15
+ ifeq ($(strip $(VBOX_JAVA15)),)
   $(error Failed to autodetect VBOX_JAVA15, please set it manually)
  endif
@@ -447,5 +447,5 @@
 	/usr/bin/wsimport \
 	/opt/sun-jdk-1.6*/bin/wsimport))
- ifndef VBOX_WSIMPORT16
+ ifeq ($(strip $(VBOX_WSIMPORT16)),)
   $(error Failed to autodetect VBOX_WSIMPORT16, please set it manually)
  endif
