AC_INIT(src/BanditWorld.c) AC_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(libbanditworld,0.0.1) AM_PROG_LIBTOOL AC_PROG_INSTALL AC_LANG_C AC_PROG_CC AC_PROG_MAKE_SET AC_HEADER_STDC dnl check for swig AC_PROG_SWIG(1.3.30) dnl check for a working java environment AC_CHECK_CLASSPATH AC_PROG_JAVAC AC_PROG_JAVA AC_JNI_INCLUDE_DIR for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS do JNI_INCLUDES="$JNI_INCLUDES -I$JNI_INCLUDE_DIR" done AC_SUBST(JNI_INCLUDES) dnl check for scilab and its includes AC_PROG_SCILAB dnl check for gnuplot AC_PROG_GNUPLOT dnl check for math lib AC_CHECK_LIB(m,log,,AC_MSG_ERROR([ You need a mathematical library on your system !])) AC_OUTPUT(Makefile \ src/Makefile \ java/Makefile \ scilab/Makefile)