source: gs2-extensions/tdb/trunk/src/jni/m4/ac_prog_javac_works.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.1 KB
Line 
1dnl @synopsis AC_PROG_JAVAC_WORKS
2dnl
3dnl Internal use ONLY.
4dnl
5dnl Note: This is part of the set of autoconf M4 macros for Java
6dnl programs. It is VERY IMPORTANT that you download the whole set,
7dnl some macros depend on other. Unfortunately, the autoconf archive
8dnl does not support the concept of set of macros, so I had to break it
9dnl for submission. The general documentation, as well as the sample
10dnl configure.in, is included in the AC_PROG_JAVA macro.
11dnl
12dnl @category Java
13dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>
14dnl @version 2000-07-19
15dnl @license GPLWithACException
16
17AC_DEFUN([AC_PROG_JAVAC_WORKS],[
18AC_CACHE_CHECK([if $JAVAC works], ac_cv_prog_javac_works, [
19JAVA_TEST=Test.java
20CLASS_TEST=Test.class
21cat << \EOF > $JAVA_TEST
22/* [#]line __oline__ "configure" */
23public class Test {
24}
25EOF
26if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) >/dev/null 2>&1; then
27 ac_cv_prog_javac_works=yes
28else
29 AC_MSG_ERROR([The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)])
30 echo "configure: failed program was:" >&AC_FD_CC
31 cat $JAVA_TEST >&AC_FD_CC
32fi
33rm -f $JAVA_TEST $CLASS_TEST
34])
35AC_PROVIDE([$0])dnl
36])
Note: See TracBrowser for help on using the repository browser.