]> granicus.if.org Git - php/commitdiff
adding in PATH check for JavaJar as well...
authorDan Kalowsky <kalowsky@php.net>
Wed, 14 Aug 2002 14:36:08 +0000 (14:36 +0000)
committerDan Kalowsky <kalowsky@php.net>
Wed, 14 Aug 2002 14:36:08 +0000 (14:36 +0000)
ext/java/config.m4
ext/rpc/java/config.m4

index af691ca3d11189e33363ab4d34e5c8183812b64d..51ee18bf2911687835b662578fcf7cc4af0358b6 100644 (file)
@@ -16,9 +16,17 @@ AC_DEFUN(JAVA_FIND_JAR, [
     if test -z "$JAVA_JAR"; then
       JAVA_JAR='zip -q0'
     fi
-
-    PHP_SUBST(JAVA_JAR)
+  else
+  dnl
+  dnl we have a custom path defined so use it
+  dnl
+    if test -d $PHP_JAVA/bin; then
+      JAVA_JAR=$PHP_JAVA/bin/javac
+    else
+      AC_MSG_ERROR([Unable to locate $PHP_JAVA/bin])
+    fi
   fi
+  PHP_SUBST(JAVA_JAR)
   AC_MSG_RESULT(`echo $JAVA_JAR`)
 ])
 
index af691ca3d11189e33363ab4d34e5c8183812b64d..51ee18bf2911687835b662578fcf7cc4af0358b6 100644 (file)
@@ -16,9 +16,17 @@ AC_DEFUN(JAVA_FIND_JAR, [
     if test -z "$JAVA_JAR"; then
       JAVA_JAR='zip -q0'
     fi
-
-    PHP_SUBST(JAVA_JAR)
+  else
+  dnl
+  dnl we have a custom path defined so use it
+  dnl
+    if test -d $PHP_JAVA/bin; then
+      JAVA_JAR=$PHP_JAVA/bin/javac
+    else
+      AC_MSG_ERROR([Unable to locate $PHP_JAVA/bin])
+    fi
   fi
+  PHP_SUBST(JAVA_JAR)
   AC_MSG_RESULT(`echo $JAVA_JAR`)
 ])