1dnl @synopsis AC_CHECK_RQRD_CLASS 2dnl 3dnl AC_CHECK_RQRD_CLASS tests the existence of a given Java class, either in 4dnl a jar or in a '.class' file and fails if it doesn't exist. 5dnl Its success or failure can depend on a proper setting of the 6dnl CLASSPATH env. variable. 7dnl 8dnl Note: This is part of the set of autoconf M4 macros for Java programs. 9dnl It is VERY IMPORTANT that you download the whole set, some 10dnl macros depend on other. Unfortunately, the autoconf archive does not 11dnl support the concept of set of macros, so I had to break it for 12dnl submission. 13dnl The general documentation, as well as the sample configure.in, is 14dnl included in the AC_PROG_JAVA macro. 15dnl 16dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr> 17dnl @version $Id: ac_check_rqrd_class.m4,v 12.0 2004/11/17 03:43:38 bostic Exp $ 18dnl 19 20AC_DEFUN([AC_CHECK_RQRD_CLASS],[ 21CLASS=`echo $1|sed 's/\./_/g'` 22AC_CHECK_CLASS($1) 23if test "$HAVE_LAST_CLASS" = "no"; then 24 AC_MSG_ERROR([Required class $1 missing, exiting.]) 25fi 26]) 27