summaryrefslogtreecommitdiffstats
path: root/gettext-tools/m4/javaexec.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-03-14 14:28:54 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:13:03 +0200
commit6eb85ffb20ed7d9668ac3c7d368f596a3d996e42 (patch)
treece915449e18d5f30efd4c6fe3f8dac8f220c8211 /gettext-tools/m4/javaexec.m4
parent713ac50cd8aaefd7d52d4bfe39c621cae3a9e324 (diff)
downloadexternal_gettext-6eb85ffb20ed7d9668ac3c7d368f596a3d996e42.zip
external_gettext-6eb85ffb20ed7d9668ac3c7d368f596a3d996e42.tar.gz
external_gettext-6eb85ffb20ed7d9668ac3c7d368f596a3d996e42.tar.bz2
Provide test result in variable CONF_JAVA.
Diffstat (limited to 'gettext-tools/m4/javaexec.m4')
-rw-r--r--gettext-tools/m4/javaexec.m450
1 files changed, 37 insertions, 13 deletions
diff --git a/gettext-tools/m4/javaexec.m4 b/gettext-tools/m4/javaexec.m4
index f15c13b..50dbec2 100644
--- a/gettext-tools/m4/javaexec.m4
+++ b/gettext-tools/m4/javaexec.m4
@@ -1,5 +1,5 @@
-# javaexec.m4 serial 2 (gettext-0.13)
-dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
+# javaexec.m4 serial 3 (gettext-0.15)
+dnl Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -16,9 +16,16 @@ AC_DEFUN([gt_JAVAEXEC],
yes
#endif
], CLASSPATH_SEPARATOR=';', CLASSPATH_SEPARATOR=':')
+ CONF_JAVA=
+ HAVE_JAVA_ENVVAR=
+ HAVE_GIJ=
+ HAVE_JAVA=
+ HAVE_JRE=
+ HAVE_JVIEW=
HAVE_JAVAEXEC=1
if test -n "$JAVA"; then
- ac_result="$JAVA"
+ HAVE_JAVA_ENVVAR=1
+ CONF_JAVA="$JAVA"
else
pushdef([AC_MSG_CHECKING],[:])dnl
pushdef([AC_CHECKING],[:])dnl
@@ -37,30 +44,41 @@ AC_DEFUN([gt_JAVAEXEC],
export CLASSPATH
if test -n "$HAVE_GIJ_IN_PATH" \
&& gij --version >/dev/null 2>/dev/null \
- ifelse([$1], , , [&& gij $1 >/dev/null 2>/dev/null]); then
+ ifelse([$1], , , [&& {
+ echo "$as_me:__oline__: gij $1" >&AS_MESSAGE_LOG_FD
+ gij $1 >&AS_MESSAGE_LOG_FD 2>&1
+ }]); then
HAVE_GIJ=1
- ac_result="gij"
+ CONF_JAVA="gij"
else
if test -n "$HAVE_JAVA_IN_PATH" \
&& java -version >/dev/null 2>/dev/null \
- ifelse([$1], , , [&& java $1 >/dev/null 2>/dev/null]); then
+ ifelse([$1], , , [&& {
+ echo "$as_me:__oline__: gij $1" >&AS_MESSAGE_LOG_FD
+ java $1 >&AS_MESSAGE_LOG_FD 2>&1
+ }]); then
HAVE_JAVA=1
- ac_result="java"
+ CONF_JAVA="java"
else
if test -n "$HAVE_JRE_IN_PATH" \
&& (jre >/dev/null 2>/dev/null || test $? = 1) \
- ifelse([$1], , , [&& jre $1 >/dev/null 2>/dev/null]); then
+ ifelse([$1], , , [&& {
+ echo "$as_me:__oline__: gij $1" >&AS_MESSAGE_LOG_FD
+ jre $1 >&AS_MESSAGE_LOG_FD 2>&1
+ }]); then
HAVE_JRE=1
- ac_result="jre"
+ CONF_JAVA="jre"
else
if test -n "$HAVE_JVIEW_IN_PATH" \
&& (jview -? >/dev/null 2>/dev/null || test $? = 1) \
- ifelse([$1], , , [&& jview $1 >/dev/null 2>/dev/null]); then
+ ifelse([$1], , , [&& {
+ echo "$as_me:__oline__: gij $1" >&AS_MESSAGE_LOG_FD
+ jview $1 >&AS_MESSAGE_LOG_FD 2>&1
+ }]); then
HAVE_JVIEW=1
- ac_result="jview"
+ CONF_JAVA="jview"
else
HAVE_JAVAEXEC=
- ac_result="no"
fi
fi
fi
@@ -69,10 +87,16 @@ AC_DEFUN([gt_JAVAEXEC],
CLASSPATH="$save_CLASSPATH"
])
fi
+ if test -n "$HAVE_JAVAEXEC"; then
+ ac_result="$CONF_JAVA"
+ else
+ ac_result="no"
+ fi
AC_MSG_RESULT([$ac_result])
- AC_SUBST(JAVA)
+ AC_SUBST(CONF_JAVA)
AC_SUBST(CLASSPATH)
AC_SUBST(CLASSPATH_SEPARATOR)
+ AC_SUBST(HAVE_JAVA_ENVVAR)
AC_SUBST(HAVE_GIJ)
AC_SUBST(HAVE_JAVA)
AC_SUBST(HAVE_JRE)