https://github.com/cran/Matrix
Raw File
Tip revision: b334490512f26281232778425c2c7237eccfb69e authored by Douglas Bates on 11 August 2000, 00:00:00 UTC
version 0.3-3
Tip revision: b334490
configure.in
AC_INIT(src/SVD.cc)
: ${R_HOME=`R RHOME`}
if test -z "${R_HOME}"; then
  echo "could not determine R_HOME"
  exit 1
fi
CC=`grep "^CC" ${R_HOME}/etc/Makeconf | sed "s/^CC *= *//"`
AC_PROG_CC
F77=`grep "^FC" ${R_HOME}/etc/Makeconf | sed "s/^FC *= *//"`
FLIBS=`grep "^FLIBS" ${R_HOME}/etc/Makeconf | sed "s/^FLIBS *= *//"`
if test -n "`grep F77 ${R_HOME}/include/Rconfig.h | grep '_$'`"; then
  dgemm_func=dgemm_
  cheev_func=cheev_
else
  dgemm_func=dgemm
  cheev_func=cheev
fi
OCTAVE_BLAS_LIBS
if test -z "${BLAS_LIBS}"; then
  echo "could not find your BLAS library"
  exit 1
fi
AC_CHECK_LIB(lapack, ${cheev_func}, , NO_LIBLAPACK=1,
  [${BLAS_LIBS} ${FLIBS}])
if test ${NO_LIBLAPACK}; then
  echo "could not find your LAPACK library."
  exit 1
fi
AC_OUTPUT(src/Makevars)
back to top