Browse Source

- Fail gracefully and not just bail out with an error message from dirname

because no argument was given.
experimental/new_ui_api
Markus Fischer 24 years ago
parent
commit
c7a15e6388
  1. 6
      ext/java/config.m4
  2. 6
      ext/rpc/java/config.m4

6
ext/java/config.m4

@ -21,6 +21,12 @@ if test "$PHP_JAVA" != "no"; then
else
JAVA_JAR=
fi
PHP_JAVAC=`which javac`
if test -z "$PHP_JAVAC"; then
AC_MSG_ERROR([Unable to locate the javac binary in your system path
Either adjust your Java installation or provide the Java installation path,
e.g. --with-java=/java expecting /java/bin/ to contain the binaries])
fi
PHP_JAVA=`cd \`dirname \\\`which javac\\\`\`/..;pwd`
else
test -x $PHP_JAVA/bin/jar && JAVA_JAR="$PHP_JAVA/bin/jar cf"

6
ext/rpc/java/config.m4

@ -21,6 +21,12 @@ if test "$PHP_JAVA" != "no"; then
else
JAVA_JAR=
fi
PHP_JAVAC=`which javac`
if test -z "$PHP_JAVAC"; then
AC_MSG_ERROR([Unable to locate the javac binary in your system path
Either adjust your Java installation or provide the Java installation path,
e.g. --with-java=/java expecting /java/bin/ to contain the binaries])
fi
PHP_JAVA=`cd \`dirname \\\`which javac\\\`\`/..;pwd`
else
test -x $PHP_JAVA/bin/jar && JAVA_JAR="$PHP_JAVA/bin/jar cf"

Loading…
Cancel
Save