File: configure.ac

package info (click to toggle)
arpack%2B%2B 2.2-9
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,500 kB
  • ctags: 2,295
  • sloc: cpp: 16,612; sh: 8,279; ansic: 2,312; makefile: 307
file content (76 lines) | stat: -rw-r--r-- 2,859 bytes parent folder | download
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.58)
AC_INIT(arpack++, 2.2, prudhomm@debian.org)
AM_INIT_AUTOMAKE(arpack++, 2.2)

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; ])
AC_CHECK_LIB([g2c], [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 -lg2c])
AC_CHECK_LIB([arpack], [dnaupd_], [all_libs="-larpack ${all_libs}"],[ echo "arpack might be missing.";all_libs="-larpack ${all_libs}"], [-llapack -lblas -lg2c])

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
                  examples/Makefile
                  examples/matrices/Makefile
                  examples/matrices/sym/Makefile
                  examples/matrices/nonsym/Makefile
                  examples/matrices/complex/Makefile
                  examples/matprod/Makefile
                  examples/matprod/sym/Makefile
                  examples/matprod/nonsym/Makefile
                  examples/matprod/complex/Makefile
                  examples/reverse/Makefile
                  examples/reverse/sym/Makefile 
                  examples/reverse/nonsym/Makefile 
                  examples/reverse/complex/Makefile 
                  examples/band/Makefile
                  examples/band/sym/Makefile 
                  examples/band/nonsym/Makefile 
                  examples/band/complex/Makefile 
                  examples/dense/Makefile
                  examples/dense/sym/Makefile 
                  examples/dense/nonsym/Makefile 
                  examples/dense/complex/Makefile 
                  examples/product/Makefile
                  examples/product/simple/Makefile 
                  examples/product/sym/Makefile 
                  examples/product/nonsym/Makefile 
                  examples/product/complex/Makefile 
])
# need superlu
#                  examples/areig/Makefile
#                  examples/harwell/Makefile
#                  examples/harwell/sym/Makefile 
#                  examples/harwell/nonsym/Makefile 
#                  examples/harwell/complex/Makefile 
#])

AC_OUTPUT