source: gs2-extensions/tdb/trunk/src/jni/m4/ac_prog_javac.m4@ 30206

Last change on this file since 30206 was 30206, checked in by jmt12, 5 years ago

A m4 directory containing a number of M4 packages used to compile this project. Running aclocal will cause the other (default) M4 packages to be linked into here too (so there is a .svnignore to ignore them)

File size: 1.7 KB
Line 
1dnl @synopsis AC_PROG_JAVAC
2dnl
3dnl AC_PROG_JAVAC tests an existing Java compiler. It uses the
4dnl environment variable JAVAC then tests in sequence various common
5dnl Java compilers. For political reasons, it starts with the free
6dnl ones.
7dnl
8dnl If you want to force a specific compiler:
9dnl
10dnl - at the configure.in level, set JAVAC=yourcompiler before calling
11dnl AC_PROG_JAVAC
12dnl
13dnl - at the configure level, setenv JAVAC
14dnl
15dnl You can use the JAVAC variable in your Makefile.in, with @JAVAC@.
16dnl
17dnl *Warning*: its success or failure can depend on a proper setting of
18dnl the CLASSPATH env. variable.
19dnl
20dnl TODO: allow to exclude compilers (rationale: most Java programs
21dnl cannot compile with some compilers like guavac).
22dnl
23dnl Note: This is part of the set of autoconf M4 macros for Java
24dnl programs. It is VERY IMPORTANT that you download the whole set,
25dnl some macros depend on other. Unfortunately, the autoconf archive
26dnl does not support the concept of set of macros, so I had to break it
27dnl for submission. The general documentation, as well as the sample
28dnl configure.in, is included in the AC_PROG_JAVA macro.
29dnl
30dnl @category Java
31dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>
32dnl @version 2000-07-19
33dnl @license GPLWithACException
34
35AC_DEFUN([AC_PROG_JAVAC],[
36AC_REQUIRE([AC_EXEEXT])dnl
37if test "x$JAVAPREFIX" = x; then
38 test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT javac$EXEEXT)
39else
40 test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT javac$EXEEXT, $JAVAPREFIX)
41fi
42test "x$JAVAC" = x && AC_MSG_ERROR([no acceptable Java compiler found in \$PATH])
43AC_PROG_JAVAC_WORKS
44AC_PROVIDE([$0])dnl
45])
Note: See TracBrowser for help on using the repository browser.