1 |
dnl Available from the GNU Autoconf Macro Archive at: |
dnl Available from the GNU Autoconf Macro Archive at: |
2 |
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_prog_jar.html |
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_prog_jar.html |
3 |
dnl |
dnl |
4 |
|
dnl Changes for gjdoc: check for "fastjar, jar", not only "jar"; |
5 |
|
dnl output warning if detected jar is kaffe jar. |
6 |
|
dnl |
7 |
AC_DEFUN([AC_PROG_JAR],[ |
AC_DEFUN([AC_PROG_JAR],[ |
8 |
AC_REQUIRE([AC_EXEEXT])dnl |
AC_REQUIRE([AC_EXEEXT])dnl |
9 |
if test "x$JAVAPREFIX" = x; then |
if test "x$JAVAPREFIX" = x; then |
10 |
test "x$JAR" = x && AC_CHECK_PROGS(JAR, jar$EXEEXT) |
test "x$JAR" = x && AC_CHECK_PROGS(JAR, fastjar$EXEEXT jar$EXEEXT) |
11 |
else |
else |
12 |
test "x$JAR" = x && AC_CHECK_PROGS(JAR, jar, $JAVAPREFIX) |
test "x$JAR" = x && AC_CHECK_PROGS(JAR, fastjar$EXEEXT jar$EXEEXT, $JAVAPREFIX) |
13 |
fi |
fi |
14 |
test "x$JAR" = x && AC_MSG_ERROR([no acceptable jar program found in \$PATH]) |
test "x$JAR" = x && AC_MSG_ERROR([no acceptable jar program found in \$PATH]) |
15 |
|
grep kaffe\.tools\.jar\.Jar $JAR >/dev/null || \ |
16 |
|
AC_MSG_WARN([The build seems to be using the Jar tool that comes with |
17 |
|
Kaffe. Note that there are known issues in some versions of this tool. |
18 |
|
If you see error messages from the Jar tool, or the build hangs, |
19 |
|
please set environment variable JAR to a working Jar tool.]) |
20 |
AC_PROVIDE([$0])dnl |
AC_PROVIDE([$0])dnl |
21 |
]) |
]) |