[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compaq fortran 6.6 compiler unrecognized under NT and cygwin
From: |
Xiaowen Wang |
Subject: |
Compaq fortran 6.6 compiler unrecognized under NT and cygwin |
Date: |
10 Apr 2003 12:43:29 -0500 |
Hi:
I'm porting a unix app to win32. The app works well with autoconf and
automake on linux. In NT and cygwin, I set CC to MSVC C compiler cl.exe
and F77 to Compaq fortran 6.6 compiler df.exe. The configure can not
configure the fortran compiler.
Here's the relevant portion in configure.ac:
#
# Fortran77 integration
#
# Check link flags. $FLIBS is set to appropriate value
AC_F77_LIBRARY_LDFLAGS
# Check f77 name mangling, F77_FUNC and F77_FUNC_ macros are defined.
AC_F77_WRAPPERS
# Checks the blas library
BLASLIB=""
AC_ARG_WITH(blas, AC_HELP_STRING([--with-blas=xxx],
[specify a blas library]),
[
# first get the appropriate f77 name of function "dgemv"
AC_F77_FUNC(dgemv, dgemv_f77nm)
# now check whether it's available in libxxx.a or libxxx.so
AC_CHECK_LIB($withval, $dgemv_f77nm,
[
BLASLIB="-l$withval"
AC_DEFINE(USE_VENDOR_BLAS, 1, [Use user specified blas])
], [], [$FLIBS -lm])
if test "x$BLASLIB" != "x"; then # found it
LIBS="$BLASLIB $LIBS"
fi
], [])
if test "x$BLASLIB" = "x"; then
AC_MSG_ERROR([blas must be specified])
fi
And here's the last portion of the config output when running
./configure --prefix=/e/nlibs --with-blas=mkl_m
LDFLAGS="-L/e/nlibs/blas" CC=cl F77=df
:
checking how to get verbose linking output from df.exe... configure:
WARNING: compilation failed
checking for Fortran 77 libraries...
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme...
configure: WARNING: unknown Fortran 77 name-mangling scheme
checking for unknown in -lmkl_m... no
configure: error: blas must be specified
.
Thanks
XW
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Compaq fortran 6.6 compiler unrecognized under NT and cygwin,
Xiaowen Wang <=