Back to the Main Page. | ax_f90_library_setup |
Download the M4 Source. |
AX_F90_LIBRARY_SETUP(LIBRARY, HEADER-REGEXP, MODULE-REGEXP, LIB-REGEXP, FUNCTION-BODY)
2005-01-14 0.5.65 : Fortran
Luc Maisonobe <luc@spaceroots.org>
license: AllPermissive
AX_F90_MODULE_EXTENSION
if test x$ax_f90_modext = xunknown ; then
AC_MSG_ERROR([unable to find f90 modules extension])
fi
AX_F90_LIBRARY_SETUP(alchemy,[],alchemy.$ax_f90_modext,libalchemy*,[
use alchemy
call transmute_into_gold('lead')
])
./configure --with-alchemy=$HOME/esoteric
AC_DEFUN([AX_F90_LIBRARY_SETUP],[ AC_ARG_WITH([$1],[ --with-$1=path specify search path form $1 module and library], [if test x${withval} = xno ; then AC_MSG_WARN([$1 disabled at user option]) fi],[withval=""]) if test x$2 != x ; then AX_F90_HEADER([$1],[$2],[$5],$withval,[ FCFLAGS="$FCFLAGS $AS_TR_SH(F90_HEADER_$1)" ],[]) fi if test x$3 != x ; then AX_F90_MODULE([$1],[$3],[$5],$withval,[ FCFLAGS="$FCFLAGS $AS_TR_SH(F90_MODULE_$1)" ],[]) fi AX_F90_LIBRARY([$1],[$4],[$5],$withval,[ LDFLAGS="$LDFLAGS $AS_TR_SH(F90_LDFLAGS_$1)" LIBS="$AS_TR_SH(F90_LIBS_$1) $LIBS" ],[]) ])