## Configure the ports 05/04/04. define([AC_CACHE_LOAD], )dnl define([AC_CACHE_SAVE], )dnl ## make sure we are in the correct dir AC_INIT(AMRPort.h) ## There are some configs etc in ./config AC_CONFIG_AUX_DIR(config) ## Set what kind of a host and system this is AC_CANONICAL_HOST AC_CANONICAL_SYSTEM AC_HEADER_STDC DOXYGEN="" AC_ARG_WITH(doxygen, [Location of doxygen: --with-doxygen=EXECUTABLE, The dir name of the doxygen binary. --with-doxygen='/share/bizarre/bin/doxygen' ], [with_doxygen="$withval"], [with_doxygen=yes]) case "$with_doxygen" in no) # User specified --without-doxygen; AC_MSG_WARN([Option '--without-doxygen' Causes some c++ documentation generation to be skipped.]) cca_have_doxygen=no ;; yes) # User didn't give the option or didn't give useful # information, search for it ourselves with_doxygen=_searching ;; *) full_path_to_doxygen="$with_doxygen" cca_have_doxygen=yes ;; esac if test "$with_doxygen" = _searching ; then AC_CHECK_PROG(doxygen_1, doxygen, doxygen, NONE) if test ! "$doxygen_1" = NONE ; then full_path_to_doxygen=`which $doxygen_1` cca_have_doxygen=yes fi fi DOXYGENTARG="dox" if test -z "$full_path_to_doxygen" ; then AC_MSG_RESULT([Building CCA without doxygen. Use --with-doygen=/doxygen/location/executableName.]) DOXYGENTARG="" DOXYGEN="@echo no-doxygen" fi ## -------------- where do I install the ports ? if test "${prefix}" = "NONE"; then prefix=/usr/local fi if test "${exec_prefix}" = "NONE"; then exec_prefix=$prefix fi FINAL_INSTALL_DIR="${prefix}" VERSION_MAJOR=0.1 VERSION_MINOR=0.2 ## -------------- make the final MakeIncl file ---------------------- AC_SUBST(full_path_to_doxygen) AC_SUBST(FINAL_INSTALL_DIR) AC_OUTPUT(MakeIncl.CFRFS_Ports)