mirror of
https://github.com/ceph/ceph
synced 2024-12-21 02:42:48 +00:00
59aad34795
Check for org.junit.rules.ExternalResource if build with --enable-cephfs-java and --with-debug. Checking for junit4 isn't enough since junit4 has this class not before 4.7. Added some m4 files to get some JAVA related macros. Changed autogen.sh to work with local m4 files/macros. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
dnl @synopsis AC_PROG_JAVAC_WORKS
|
|
dnl
|
|
dnl Internal use ONLY.
|
|
dnl
|
|
dnl Note: This is part of the set of autoconf M4 macros for Java
|
|
dnl programs. It is VERY IMPORTANT that you download the whole set,
|
|
dnl some macros depend on other. Unfortunately, the autoconf archive
|
|
dnl does not support the concept of set of macros, so I had to break it
|
|
dnl for submission. The general documentation, as well as the sample
|
|
dnl configure.in, is included in the AC_PROG_JAVA macro.
|
|
dnl
|
|
dnl @category Java
|
|
dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>
|
|
dnl @version 2000-07-19
|
|
dnl @license GPLWithACException
|
|
|
|
AC_DEFUN([AC_PROG_JAVAC_WORKS],[
|
|
AC_CACHE_CHECK([if $JAVAC works], ac_cv_prog_javac_works, [
|
|
JAVA_TEST=Test.java
|
|
CLASS_TEST=Test.class
|
|
cat << \EOF > $JAVA_TEST
|
|
/* [#]line __oline__ "configure" */
|
|
public class Test {
|
|
}
|
|
EOF
|
|
if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) >/dev/null 2>&1; then
|
|
ac_cv_prog_javac_works=yes
|
|
else
|
|
AC_MSG_ERROR([The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)])
|
|
echo "configure: failed program was:" >&AC_FD_CC
|
|
cat $JAVA_TEST >&AC_FD_CC
|
|
fi
|
|
rm -f $JAVA_TEST $CLASS_TEST
|
|
])
|
|
AC_PROVIDE([$0])dnl
|
|
])
|