ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE_old/configure.ac
Revision: 366
Committed: Wed Mar 19 17:29:41 2003 UTC (21 years, 3 months ago) by mmeineke
File size: 2544 byte(s)
Log Message:
compiles and links. And promptly segfaults.

File Contents

# User Rev Content
1 mmeineke 354 AC_INIT([oopse],0.5)
2 mmeineke 267 AC_CONFIG_SRCDIR(src/mySrc)
3     AM_CONFIG_HEADER(./config.h)
4     AM_INIT_AUTOMAKE
5     AC_PROG_CC
6     AC_PROG_CXX
7     AC_PROG_F77([ifc f90 g77])
8     AC_F77_LIBRARY_LDFLAGS
9     AM_PROG_LEX
10     AC_PROG_YACC
11     AC_PROG_RANLIB
12     AC_PROG_INSTALL
13 mmeineke 273
14 mmeineke 275 dnl *****************************************************
15     dnl set up compiler and machine dependent fortran files
16     dnl *****************************************************
17    
18     case $F77 in
19 mmeineke 276 ifc) fortran_machine_defs='Linux_ifc_machdep.$(OBJEXT)' flibs_extra='-lPEPCF90' ;;
20 mmeineke 275 *) AC_MSG_ERROR([currently only ifc is supported as the fortran compiler. See README for details]) ;;
21     esac
22     AC_SUBST([fortran_machine_defs])
23 mmeineke 276 AC_SUBST([flibs_extra])
24 mmeineke 275
25     dnl *****************************************************
26 mmeineke 273 dnl check for libs and headers
27 mmeineke 275 dnl ******************************************************
28 mmeineke 273
29 mmeineke 275
30 mmeineke 273 AC_ARG_WITH(sprng_include,
31     AC_HELP_STRING([--with-sprng_include=<include dir>],
32     [specify the location of the sprng headers (default is /usr/local/include/sprng)]),
33     [sprng_include="$withval"], [sprng_include="/usr/local/include/sprng"] )
34     AC_SUBST(sprng_include)
35     AC_CHECK_HEADERS([$sprng_include/sprng.h],
36     AC_DEFINE(USE_SPRNG, 1, [define whether we have the sprng libraries]),
37     AC_MSG_ERROR(sprng header files not found.))
38    
39     AC_ARG_WITH(sprng_libdir,
40     AC_HELP_STRING([--with-sprng_libdir=<library dir>],
41     [specify the location of the sprng libraries (default is /usr/local/lib)]),
42     [sprng_libdir="$withval"], [sprng_libdir="/usr/local/lib"] )
43     AC_SUBST(sprng_libdir)
44     AC_CHECK_FILE([$sprng_libdir/libsprng.a],,
45     AC_MSG_ERROR(libsprng.a not found.))
46    
47     AC_ARG_WITH(mpich_include,
48     AC_HELP_STRING([--with-mpich_include=<include dir>],
49     [specify the location of the mpich headers (default is /usr/local/include)]),
50     [mpich_include="$withval"], [mpich_include="/usr/local/include"] )
51     AC_SUBST(mpich_include)
52     AC_CHECK_HEADERS([$mpich_include/mpi.h],
53     AC_DEFINE(HAVE_MPICH, 1, [define whether we have the mpich libraries]),
54     AC_MSG_ERROR(mpich header files not found.))
55    
56     AC_ARG_WITH(mpich_libdir,
57     AC_HELP_STRING([--with-mpich_libdir=<library dir>],
58     [specify the location of the mpuch libraries (default is /usr/local/lib)]),
59     [mpich_libdir="$withval"], [mpich_libdir="/usr/local/lib"] )
60     AC_SUBST(mpich_libdir)
61     AC_CHECK_FILE([$mpich_libdir/libmpich.a],,
62     AC_MSG_ERROR(libmpi.a not found.))
63    
64    
65 mmeineke 366 AC_OUTPUT([Makefile forceFields/Makefile src/Makefile src/mdtools/Makefile src/mdtools/libBASS/Makefile src/mdtools/libmdCode/Makefile\
66 mmeineke 276 src/oose/Makefile src/oopse/Makefile])