10 |
|
AC_PROG_YACC |
11 |
|
AC_PROG_RANLIB |
12 |
|
AC_PROG_INSTALL |
13 |
+ |
|
14 |
+ |
dnl check for libs and headers |
15 |
+ |
|
16 |
+ |
AC_ARG_WITH(sprng_include, |
17 |
+ |
AC_HELP_STRING([--with-sprng_include=<include dir>], |
18 |
+ |
[specify the location of the sprng headers (default is /usr/local/include/sprng)]), |
19 |
+ |
[sprng_include="$withval"], [sprng_include="/usr/local/include/sprng"] ) |
20 |
+ |
AC_SUBST(sprng_include) |
21 |
+ |
AC_CHECK_HEADERS([$sprng_include/sprng.h], |
22 |
+ |
AC_DEFINE(USE_SPRNG, 1, [define whether we have the sprng libraries]), |
23 |
+ |
AC_MSG_ERROR(sprng header files not found.)) |
24 |
+ |
|
25 |
+ |
AC_ARG_WITH(sprng_libdir, |
26 |
+ |
AC_HELP_STRING([--with-sprng_libdir=<library dir>], |
27 |
+ |
[specify the location of the sprng libraries (default is /usr/local/lib)]), |
28 |
+ |
[sprng_libdir="$withval"], [sprng_libdir="/usr/local/lib"] ) |
29 |
+ |
AC_SUBST(sprng_libdir) |
30 |
+ |
AC_CHECK_FILE([$sprng_libdir/libsprng.a],, |
31 |
+ |
AC_MSG_ERROR(libsprng.a not found.)) |
32 |
+ |
|
33 |
+ |
AC_ARG_WITH(mpich_include, |
34 |
+ |
AC_HELP_STRING([--with-mpich_include=<include dir>], |
35 |
+ |
[specify the location of the mpich headers (default is /usr/local/include)]), |
36 |
+ |
[mpich_include="$withval"], [mpich_include="/usr/local/include"] ) |
37 |
+ |
AC_SUBST(mpich_include) |
38 |
+ |
AC_CHECK_HEADERS([$mpich_include/mpi.h], |
39 |
+ |
AC_DEFINE(HAVE_MPICH, 1, [define whether we have the mpich libraries]), |
40 |
+ |
AC_MSG_ERROR(mpich header files not found.)) |
41 |
+ |
|
42 |
+ |
AC_ARG_WITH(mpich_libdir, |
43 |
+ |
AC_HELP_STRING([--with-mpich_libdir=<library dir>], |
44 |
+ |
[specify the location of the mpuch libraries (default is /usr/local/lib)]), |
45 |
+ |
[mpich_libdir="$withval"], [mpich_libdir="/usr/local/lib"] ) |
46 |
+ |
AC_SUBST(mpich_libdir) |
47 |
+ |
AC_CHECK_FILE([$mpich_libdir/libmpich.a],, |
48 |
+ |
AC_MSG_ERROR(libmpi.a not found.)) |
49 |
+ |
|
50 |
+ |
|
51 |
|
AC_OUTPUT([Makefile src/Makefile src/mdtools/Makefile src/mdtools/libBASS/Makefile src/mdtools/libmdCode/Makefile]) |