Line 0
Link Here
|
|
|
1 |
# -*- Autoconf -*- |
2 |
# Process this file with autoconf to produce a configure script. |
3 |
|
4 |
AC_PREREQ(2.59) |
5 |
AC_INIT(lapack, 3.0+, lapack@cs.utk.edu) |
6 |
AM_INIT_AUTOMAKE([foreign]) |
7 |
|
8 |
# Checks for programs. |
9 |
AC_PROG_INSTALL |
10 |
AC_PROG_F77 |
11 |
AC_PROG_LIBTOOL |
12 |
|
13 |
AC_ARG_ENABLE(single-real, AS_HELP_STRING([--disable-single-real], |
14 |
[Enable single real precision (default: enabled)]), |
15 |
[S=$enableval], [S=yes SINGLE=yes]) |
16 |
|
17 |
AC_ARG_ENABLE(double-real, AS_HELP_STRING([--disable-double-real], |
18 |
[Enable double real precision (default: enabled)]), |
19 |
[D=$enableval], [D=yes DOUBLE=yes]) |
20 |
|
21 |
AC_ARG_ENABLE(single-complex, AS_HELP_STRING([--disable-single-complex], |
22 |
[Enable single complex precision (default: enabled)]), |
23 |
[C=$enableval], [C=yes SINGLE=yes]) |
24 |
|
25 |
AC_ARG_ENABLE(double-complex, AS_HELP_STRING([--disable-double-complex], |
26 |
[Enable double complex precision (default: enabled)]), |
27 |
[Z=$enableval], [Z=yes DOUBLE=yes]) |
28 |
|
29 |
AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests], |
30 |
[Build test programs (default: disabled)]), |
31 |
[DO_TEST=$enableval], [DO_TEST=no]) |
32 |
|
33 |
AC_ARG_VAR(NOOPT_FFLAGS, Fortran 77 compiler flags to use for unoptimized files) |
34 |
|
35 |
if test "x$S" = "xno" \ |
36 |
&& test "x$D" = "xno" \ |
37 |
&& test "x$C" = "xno" \ |
38 |
&& test "x$Z" = "xno"; then |
39 |
AC_MSG_ERROR([You must enable at least one precision!]) |
40 |
fi |
41 |
|
42 |
if test "x$DO_TEST" = "xyes"; then |
43 |
TESTING=testing |
44 |
fi |
45 |
|
46 |
AM_CONDITIONAL([SINGLE], [test "x$SINGLE" = "xyes"]) |
47 |
AM_CONDITIONAL([DOUBLE], [test "x$DOUBLE" = "xyes"]) |
48 |
AM_CONDITIONAL([S], [test "x$S" = "xyes"]) |
49 |
AM_CONDITIONAL([D], [test "x$D" = "xyes"]) |
50 |
AM_CONDITIONAL([C], [test "x$C" = "xyes"]) |
51 |
AM_CONDITIONAL([Z], [test "x$Z" = "xyes"]) |
52 |
AM_CONDITIONAL([DO_TEST], [test "x$DO_TEST" = "xyes"]) |
53 |
AC_SUBST(TESTING) |
54 |
|
55 |
AC_CONFIG_FILES([ |
56 |
INSTALL/Makefile |
57 |
Makefile |
58 |
SRC/Makefile]) |
59 |
# BLAS/SRC/Makefile |
60 |
# TESTING/EIG/Makefile |
61 |
# TESTING/LIN/Makefile |
62 |
# TESTING/MATGEN/Makefile |
63 |
# TESTING/Makefile |
64 |
# TIMING/EIG/EIGSRC/Makefile |
65 |
# TIMING/EIG/Makefile |
66 |
# TIMING/LIN/LINSRC/Makefile |
67 |
# TIMING/LIN/Makefile |
68 |
# TIMING/Makefile]) |
69 |
AC_OUTPUT |