• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/db-4.7.25.NC/dist/aclocal_java/
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 programs.
6dnl It is VERY IMPORTANT that you download the whole set, some
7dnl macros depend on other. Unfortunately, the autoconf archive does not
8dnl support the concept of set of macros, so I had to break it for
9dnl submission.
10dnl The general documentation, as well as the sample configure.in, is
11dnl included in the AC_PROG_JAVA macro.
12dnl
13dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>
14dnl @version $Id: ac_prog_javac_works.m4,v 12.0 2004/11/17 03:43:38 bostic Exp $
15dnl
16AC_DEFUN([AC_PROG_JAVAC_WORKS],[
17AC_CACHE_CHECK([if $JAVAC works], ac_cv_prog_javac_works, [
18JAVA_TEST=Test.java
19CLASS_TEST=Test.class
20cat << \EOF > $JAVA_TEST
21/* [#]line __oline__ "configure" */
22public class Test {
23}
24EOF
25if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) >/dev/null 2>&1; then
26  ac_cv_prog_javac_works=yes
27else
28  AC_MSG_ERROR([The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)])
29  echo "configure: failed program was:" >&AC_FD_CC
30  cat $JAVA_TEST >&AC_FD_CC
31fi
32rm -f $JAVA_TEST $CLASS_TEST
33])
34AC_PROVIDE([$0])dnl
35])
36