|
Packit Service |
88ab54 |
##### http://autoconf-archive.cryp.to/ac_prog_jar.html
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# SYNOPSIS
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# AC_PROG_JAR
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# DESCRIPTION
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# AC_PROG_JAR tests for an existing jar program. It uses the
|
|
Packit Service |
88ab54 |
# environment variable JAR then tests in sequence various common jar
|
|
Packit Service |
88ab54 |
# programs.
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# If you want to force a specific compiler:
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# - at the configure.in level, set JAR=yourcompiler before calling
|
|
Packit Service |
88ab54 |
# AC_PROG_JAR
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# - at the configure level, setenv JAR
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# You can use the JAR variable in your Makefile.in, with @JAR@.
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# Note: This macro depends on the autoconf M4 macros for Java
|
|
Packit Service |
88ab54 |
# programs. It is VERY IMPORTANT that you download that whole set,
|
|
Packit Service |
88ab54 |
# some macros depend on other. Unfortunately, the autoconf archive
|
|
Packit Service |
88ab54 |
# does not support the concept of set of macros, so I had to break it
|
|
Packit Service |
88ab54 |
# for submission.
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# The general documentation of those macros, as well as the sample
|
|
Packit Service |
88ab54 |
# configure.in, is included in the AC_PROG_JAVA macro.
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# LAST MODIFICATION
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# 2000-07-19
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# COPYLEFT
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# Copyright (c) 2000 Egon Willighagen <e.willighagen@science.ru.nl>
|
|
Packit Service |
88ab54 |
#
|
|
Packit Service |
88ab54 |
# Copying and distribution of this file, with or without
|
|
Packit Service |
88ab54 |
# modification, are permitted in any medium without royalty provided
|
|
Packit Service |
88ab54 |
# the copyright notice and this notice are preserved.
|
|
Packit Service |
88ab54 |
|
|
Packit Service |
88ab54 |
AC_DEFUN([AC_PROG_JAR],[
|
|
Packit Service |
88ab54 |
AC_REQUIRE([AC_EXEEXT])dnl
|
|
Packit Service |
88ab54 |
if test "x$JAVAPREFIX" = x; then
|
|
Packit Service |
88ab54 |
test "x$JAR" = x && AC_CHECK_PROGS(JAR, jar$EXEEXT)
|
|
Packit Service |
88ab54 |
else
|
|
Packit Service |
88ab54 |
test "x$JAR" = x && AC_CHECK_PROGS(JAR, jar, $JAVAPREFIX)
|
|
Packit Service |
88ab54 |
fi
|
|
Packit Service |
88ab54 |
true
|
|
Packit Service |
88ab54 |
AC_PROVIDE([$0])dnl
|
|
Packit Service |
88ab54 |
])
|