|
|
|
# -*- Autoconf -*- |
|
# Process this file with autoconf to produce a configure script. |
|
|
|
AC_PREREQ(2.59) |
|
AC_INIT(lapack, 3.0+, lapack@cs.utk.edu) |
|
AM_INIT_AUTOMAKE([foreign]) |
|
|
|
# Checks for programs. |
|
AC_PROG_INSTALL |
|
AC_PROG_F77 |
|
AC_PROG_LIBTOOL |
|
|
|
AC_ARG_ENABLE(single-real, AS_HELP_STRING([--disable-single-real], |
|
[Enable single real precision (default: enabled)]), |
|
[S=$enableval], [S=yes SINGLE=yes]) |
|
|
|
AC_ARG_ENABLE(double-real, AS_HELP_STRING([--disable-double-real], |
|
[Enable double real precision (default: enabled)]), |
|
[D=$enableval], [D=yes DOUBLE=yes]) |
|
|
|
AC_ARG_ENABLE(single-complex, AS_HELP_STRING([--disable-single-complex], |
|
[Enable single complex precision (default: enabled)]), |
|
[C=$enableval], [C=yes SINGLE=yes]) |
|
|
|
AC_ARG_ENABLE(double-complex, AS_HELP_STRING([--disable-double-complex], |
|
[Enable double complex precision (default: enabled)]), |
|
[Z=$enableval], [Z=yes DOUBLE=yes]) |
|
|
|
AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests], |
|
[Build test programs (default: disabled)]), |
|
[DO_TEST=$enableval], [DO_TEST=no]) |
|
|
|
AC_ARG_VAR(NOOPT_FFLAGS, Fortran 77 compiler flags to use for unoptimized files) |
|
|
|
if test "x$S" = "xno" \ |
|
&& test "x$D" = "xno" \ |
|
&& test "x$C" = "xno" \ |
|
&& test "x$Z" = "xno"; then |
|
AC_MSG_ERROR([You must enable at least one precision!]) |
|
fi |
|
|
|
if test "x$DO_TEST" = "xyes"; then |
|
TESTING=testing |
|
fi |
|
|
|
AM_CONDITIONAL([SINGLE], [test "x$SINGLE" = "xyes"]) |
|
AM_CONDITIONAL([DOUBLE], [test "x$DOUBLE" = "xyes"]) |
|
AM_CONDITIONAL([S], [test "x$S" = "xyes"]) |
|
AM_CONDITIONAL([D], [test "x$D" = "xyes"]) |
|
AM_CONDITIONAL([C], [test "x$C" = "xyes"]) |
|
AM_CONDITIONAL([Z], [test "x$Z" = "xyes"]) |
|
AM_CONDITIONAL([DO_TEST], [test "x$DO_TEST" = "xyes"]) |
|
AC_SUBST(TESTING) |
|
|
|
AC_CONFIG_FILES([ |
|
INSTALL/Makefile |
|
Makefile |
|
SRC/Makefile]) |
|
# BLAS/SRC/Makefile |
|
# TESTING/EIG/Makefile |
|
# TESTING/LIN/Makefile |
|
# TESTING/MATGEN/Makefile |
|
# TESTING/Makefile |
|
# TIMING/EIG/EIGSRC/Makefile |
|
# TIMING/EIG/Makefile |
|
# TIMING/LIN/LINSRC/Makefile |
|
# TIMING/LIN/Makefile |
|
# TIMING/Makefile]) |
|
AC_OUTPUT |