summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSam Ruby <rubys@php.net>2000-01-28 10:53:06 +0000
committerSam Ruby <rubys@php.net>2000-01-28 10:53:06 +0000
commit137765c95a9739fa4c157355bac58d635a20ba92 (patch)
tree73e6ed66f1b82a8fa73e8e8576f93a562f9d5ec9 /ext
parent302ccb0d97d80e1b3f5483975f1af11ec1faaa26 (diff)
downloadphp-git-137765c95a9739fa4c157355bac58d635a20ba92.tar.gz
accomodate old versions of kaffe which don't support jar
Diffstat (limited to 'ext')
-rw-r--r--ext/java/config.m420
-rw-r--r--ext/rpc/java/config.m420
2 files changed, 26 insertions, 14 deletions
diff --git a/ext/java/config.m4 b/ext/java/config.m4
index d8536b9196..7f1164cd12 100644
--- a/ext/java/config.m4
+++ b/ext/java/config.m4
@@ -10,6 +10,13 @@ AC_ARG_WITH(java,
if test "$withval" != "no"; then
JAVA_SHARED="libphp_java.la"
+ # substitute zip for systems which don't have jar in the PATH
+ if JAVA_JAR=`which jar 2>/dev/null`; then
+ JAVA_JAR="$JAVA_JAR cf"
+ else
+ JAVA_JAR='zip -q0'
+ fi
+
if test "$withval" = "yes"; then
if test -d /usr/local/lib/kaffe; then
JAVA_CFLAGS="-DKAFFE"
@@ -23,6 +30,12 @@ AC_ARG_WITH(java,
AC_MSG_RESULT(no)
AC_MSG_ERROR(unable to find Java VM libraries)
fi
+
+ # accomodate old versions of kaffe which don't support jar
+ if kaffe -version 2>&1 | grep 1.0b > /dev/null; then
+ JAVA_JAR='zip -q0'
+ fi
+
else
if test -f $withval/lib/libjava.so; then
JAVA_INCLUDE="-I$withval/include"
@@ -49,13 +62,6 @@ AC_ARG_WITH(java,
fi
fi
- # substitute zip for systems which don't have jar in the PATH
- if JAVA_JAR=`which jar 2>/dev/null`; then
- JAVA_JAR="$JAVA_JAR cf"
- else
- JAVA_JAR='zip -q0'
- fi
-
AC_DEFINE(HAVE_JAVA,1,[ ])
PHP_EXTENSION(java, shared)
AC_MSG_RESULT(yes)
diff --git a/ext/rpc/java/config.m4 b/ext/rpc/java/config.m4
index d8536b9196..7f1164cd12 100644
--- a/ext/rpc/java/config.m4
+++ b/ext/rpc/java/config.m4
@@ -10,6 +10,13 @@ AC_ARG_WITH(java,
if test "$withval" != "no"; then
JAVA_SHARED="libphp_java.la"
+ # substitute zip for systems which don't have jar in the PATH
+ if JAVA_JAR=`which jar 2>/dev/null`; then
+ JAVA_JAR="$JAVA_JAR cf"
+ else
+ JAVA_JAR='zip -q0'
+ fi
+
if test "$withval" = "yes"; then
if test -d /usr/local/lib/kaffe; then
JAVA_CFLAGS="-DKAFFE"
@@ -23,6 +30,12 @@ AC_ARG_WITH(java,
AC_MSG_RESULT(no)
AC_MSG_ERROR(unable to find Java VM libraries)
fi
+
+ # accomodate old versions of kaffe which don't support jar
+ if kaffe -version 2>&1 | grep 1.0b > /dev/null; then
+ JAVA_JAR='zip -q0'
+ fi
+
else
if test -f $withval/lib/libjava.so; then
JAVA_INCLUDE="-I$withval/include"
@@ -49,13 +62,6 @@ AC_ARG_WITH(java,
fi
fi
- # substitute zip for systems which don't have jar in the PATH
- if JAVA_JAR=`which jar 2>/dev/null`; then
- JAVA_JAR="$JAVA_JAR cf"
- else
- JAVA_JAR='zip -q0'
- fi
-
AC_DEFINE(HAVE_JAVA,1,[ ])
PHP_EXTENSION(java, shared)
AC_MSG_RESULT(yes)