?? fc.m4
字號:
dnl ######################################################################dnldnl File: fc.m4dnldnl Purpose: Determine F90 (a.k.a. FC) compilers.dnldnl Version: $Id: fc.m4,v 1.2 2005/07/13 00:02:25 kruger Exp $dnldnl Copyright Tech-X Corporation, 2001-2005. Redistribution alloweddnl provided this copyright statement remains intact.dnldnl ######################################################################dnl ----------------------------------------------------------------------dnl dnl See README.fortrandnl Relevant files:dnl f77.m4, f77flags.m4, f77interop.m4, mpif77.m4dnl fc.m4, fcflags.m4, fcinterop.m4, mpif90.m4dnldnl Set the variable:dnl FCdnldnl Notes:dnl o See fcflags.m4 for setting the flags. The separation is dnl done to make the configure flags more intuitivednldnl ----------------------------------------------------------------------dnl ----------------------------------------------------------------------dnl allow flags or environment to overwrite variablesdnl ----------------------------------------------------------------------AC_ARG_WITH(FC,[ --with-FC=MyF90 to use MyF90 instead of the default Fortran compiler],FC="$withval")AC_MSG_CHECKING(for F90 compilers )dnl ----------------------------------------------------------------------dnl Set up default valuesdnl ----------------------------------------------------------------------if test "$FC" != none; then dnl Check whether an absolute path if test -n "$FC"; then absp=`echo "$FC" | grep ^/` fi if test -n "$absp"; then exists=`ls $FC` if test -z $exists; then AC_MSG_ERROR($FC does not exist.) fi dnl Not an absolute path, so must find else dnl Allow additional places to look for FC AC_ARG_WITH(FC_PATH,[ --with-FC_PATH=<F90 compiler directory> to set root for f90 installation], F90_PATH="$withval")dnl First look in path, dnl then system paths, then paths for compilersdnl that work on more than one platform. Thus give user the preference,dnl then the systems (which are ignored on other systems), then the generic if test -z "$FC_PATH"; then FC_PATH=$PATH:/usr/local/lf9562/bin:/opt/SUNWspro/bin:/usr/local/intel_fc_80/bin:/usr/local/pgi/linux86/bin:/usr/absoft/bin:/Applications/Absoft/bin fidnl Look for specified compiler or else any of those supported if test -n "$FC"; then FCS=$FC else FCS="lf95 pgf90 xlf90 ifort ifc f90" fi AC_PATH_PROGS(FC, $FCS, "", $FC_PATH) fi if test -n "$FC"; then AC_MSG_RESULT(... $FC) AC_SUBST(FC) FC_BINDIR=`dirname $FC` echo Using F90 compiler $FC. else AC_MSG_WARN(Unable to find f90 in your path. F90 modules will not compile.) fielse FC="" AC_MSG_WARN(F90 specified as none. F90 modules will not compile.)fidnl ----------------------------------------------------------------------dnl exportdnl ----------------------------------------------------------------------AC_MSG_RESULT($FC)AC_SUBST(FC)dnl ----------------------------------------------------------------------dnl FC_BASE is in case the FC flag gets overwritten by mpif90dnl ----------------------------------------------------------------------FC_BASE=`basename $FC`AC_SUBST(FC_BASE)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -