1 dnl taken from http://ac-archive.sourceforge.net/
3 dnl @synopsis AC_PROG_JAR
5 dnl AC_PROG_JAR tests for an existing jar program. It uses the
6 dnl environment variable JAR then tests in sequence various common jar
9 dnl If you want to force a specific compiler:
11 dnl - at the configure.in level, set JAR=yourcompiler before calling
14 dnl - at the configure level, setenv JAR
16 dnl You can use the JAR variable in your Makefile.in, with @JAR@.
18 dnl Note: This macro depends on the autoconf M4 macros for Java
19 dnl programs. It is VERY IMPORTANT that you download that whole set,
20 dnl some macros depend on other. Unfortunately, the autoconf archive
21 dnl does not support the concept of set of macros, so I had to break it
24 dnl The general documentation of those macros, as well as the sample
25 dnl configure.in, is included in the AC_PROG_JAVA macro.
28 dnl @author Egon Willighagen <e.willighagen@science.ru.nl>
29 dnl @version 2000-07-19
30 dnl @license AllPermissive
32 AC_DEFUN([AC_PROG_JAR],[
33 AC_REQUIRE([AC_EXEEXT])dnl
34 if test "x$JAVAPREFIX" = x; then
35 test "x$JAR" = x && AC_CHECK_PROGS(JAR, fastjar$EXEEXT zip$EXEEXT jar$EXEEXT)
37 test "x$JAR" = x && AC_CHECK_PROGS(JAR, fastjar zip jar, $JAVAPREFIX)
39 test "x$JAR" = x && AC_MSG_ERROR([no acceptable jar program found in \$PATH])