AC_INIT([aloe], [1.1a]) AM_INIT_AUTOMAKE AC_PROG_CC AC_PROG_RANLIB dnl AC_CHECK_PROGS(JAVA, java, AC_MSG_ERROR([JRE not found (java).])) dnl AC_CHECK_PROGS(JAVAC, javac, AC_MSG_ERROR([JDK not found (javac).])) dnl AC_CHECK_HEADER(jni.h, [], AC_MSG_ERROR([JNI headers not found.])) dnl Find the JDK dnl Results go in JAVA_HOME AC_MSG_CHECKING([for JDK location]) dnl The order is: --with-java-home first, environment second, guessed value third. dnl This is a safe default. Could screw up on the security features, but dnl oh well, this is what --with-java2 is for. if test -n "${JAVA_HOME}" ; then JAVA_HOME_ENV="${JAVA_HOME}" else JAVA_HOME_ENV="" fi JAVA_HOME="" AC_ARG_WITH(java-home, [ --with-java-home=DIR Where is your JDK root directory.], [ # This stuff works if the command line parameter --with-java-home was # specified, so it takes priority rightfully. JAVA_HOME=${withval} if test ! -d "${JAVA_HOME}" ; then AC_MSG_ERROR(Not a directory: ${JAVA_HOME}) fi ], [ JAVA_HOME=${JAVA_HOME_ENV} ]) AC_SUBST(JAVA_HOME) if test -n "${JAVA_HOME}"; then if test ! -f "${JAVA_HOME}/include/jni.h" ; then AC_MSG_ERROR(jni.h not found at Java include path ${JAVA_HOME}/include/jni.h) fi AC_MSG_RESULT(Compiling CMDMAN JNI using ${JAVA_HOME} as JDK) else AC_MSG_RESULT(Skipping CMDMAN JNI, JDK not found...) fi AM_CONDITIONAL(IS_JAVA, test -n "${JAVA_HOME}") AC_CHECK_HEADERS(time.h) AC_CHECK_HEADERS(stdio.h) AC_CHECK_HEADERS(stdlib.h) AC_CHECK_FUNCS(strdup strerror strtod time) AC_CHECK_LIB(readline, readline,,[AC_MSG_ERROR([readline library not found!])]) AC_CHECK_LIB(history, add_history,,[AC_MSG_ERROR([history library not found!])]) AC_FUNC_MALLOC AC_SUBST([am__tar],['${AMTAR} cf - "$$tardir"'; am__untar='${AMTAR} xf -']) AC_SUBST(FULL_DIST) AC_SUBST(MAKE_OBJ) AC_ARG_WITH(objects, [ --with-alldist Include all directories in the dist], [ AC_SUBST([FULL_DIST],yes) ]) AM_CONDITIONAL(IS_FULLDIST, test -n "${FULL_DIST}") AM_PROG_CC_C_O AC_CONFIG_FILES([Makefile utils/lnx_make/Makefile hw_api/lnx/Makefile sw_daemons/lnx_make/Makefile sw_api/lnx_make/Makefile cmdman_console/Makefile modules/binsource/lnx_make/Makefile modules/chmux/lnx_make/Makefile modules/chsim/lnx_make/Makefile modules/convcoder/lnx_make/Makefile modules/convdecoder/lnx_make/Makefile modules/crc/lnx_make/Makefile modules/decimator/lnx_make/Makefile modules/interleaver/lnx_make/Makefile modules/ratem/lnx_make/Makefile modules/sink/lnx_make/Makefile modules/source/lnx_make/Makefile modules/timemux/lnx_make/Makefile modules/turbocoder/lnx_make/Makefile modules/turbodecoder/lnx_make/Makefile modules/typetools/lnx_make/Makefile modules/uectrl/lnx_make/Makefile modules/unratem/lnx_make/Makefile ]) AC_OUTPUT AC_MSG_RESULT([ ============================================================== == FLEXNets == ALOE has been configured successfully. You can compile and install it by typing 'make && sudo make install' After that, you can run P-HAL by typing 'runph example-work' (see README for more information). You can choose other compiler flags, e.g.: include debugging symbols and enable symbol resolve: ./configure CFLAGS='-rdynamic -O0 -g' optimize for native processor including SSE instructions ./configure CFLAGS='-O3 -march=native -mfpmath=sse ============================================================== ])