1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.58)
AC_INIT(arpack++, 2.3, christophe.prudhomme@ujf-grenoble.fr)
AM_INIT_AUTOMAKE(arpack++, 2.3)
AC_CONFIG_SRCDIR([configure.ac])
AM_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CXX
# Checks for libraries.
AC_CHECK_LIB([m], [log], [all_libs="-lm"],[ echo "you need libm.";exit 1; ])
dnl AC_CHECK_LIB([gfortran], [s_copy], [all_libs="-lg2c"],[ echo "you need g2c.";exit 1; ])
AC_CHECK_LIB([blas], [daxpy_], [all_libs="-lblas ${all_libs}"],[echo "blas might be missing.";all_libs="-lblas ${all_libs}"])
AC_CHECK_LIB([lapack], [dgemm_],[all_libs="-llapack ${all_libs}"],[echo "lapack might be missing.";all_libs="-llapack ${all_libs}"], [-lblas])
AC_CHECK_LIB([arpack], [dnaupd_], [all_libs="-larpack ${all_libs}"],[ echo "arpack might be missing.";all_libs="-larpack ${all_libs}"], [-llapack -lblas])
AC_SUBST(all_libs)
LIBS="${all_libs} ${LIBS}"
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([malloc.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_PROG_LIBTOOL
# Checks for library functions.
AC_CHECK_FUNCS([sqrt strchr])
AC_CONFIG_FILES([ Makefile include/Makefile src/Makefile
])
# need superlu
# examples/areig/Makefile
# examples/harwell/Makefile
# examples/harwell/sym/Makefile
# examples/harwell/nonsym/Makefile
# examples/harwell/complex/Makefile
#])
AC_OUTPUT
|