-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
68 lines (59 loc) · 1.77 KB
/
configure.ac
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
AC_PREREQ(2.59)
dnl Init basic data for package
dnl define following variables :
dnl - PACKAGE_NAME, the name ;
dnl - PACKAGE_TARNAME, the name used for the tarball ;
dnl - PACKAGE_VERSION, the version ;
dnl - PACKAGE_STRING, the name + the version ;
dnl - PACKAGE_BUGREPORT, the mail.
AC_INIT([FLAME - Fully Loaded library for Atomistic Modelling Environment],[1.0],[[email protected]],[flame])
dnl Look for ranlib and canonicalize it with the $host variable
AC_CHECK_TOOL(RANLIB, ranlib, :)
if test "$ranlib" = ":" ; then
AC_MSG_ERROR(["No 'ranlib' program found."])
fi
dnl Look for ar and canonicalize it with the $host variable
AC_CHECK_TOOL(AR, ar, :)
if test "$ar" = ":" ; then
AC_MSG_ERROR(["No 'ar' program found."])
fi
dnl for configuring the FCFUNC macro
AC_CONFIG_HEADERS(config.h)
dnl Init something, don't know exactly what...
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([--warnings=no-portability, subdir-objects])
prefix_pwd=$(pwd)
AC_PREFIX_DEFAULT([$prefix_pwd])
dnl If FC environment variable is not already set, it
dnl looks for a modern Fortran compiler, prefering newest
dnl fortran available (e. g. Fortran95). Then FC variable
dnl is set.
AC_PROG_FC([], [Fortran 90])
AC_PROG_F77([], [Fortran 77])
AC_FC_SRCEXT(f90)
AC_LANG(Fortran)
AC_FC_LINE_LENGTH([unlimited])
AC_FC_WRAPPERS()
AC_PROG_CC()
AC_PROG_CXX()
dnl Check for python
AM_PATH_PYTHON([2.3], , [:])
dnl Check for existence of other options
AX_MPI()
AX_LAMMPS()
AX_SPGLIB()
AX_BPS()
AX_MKL()
dnl pass the FUTILE variable to the Makefiles
AC_ARG_VAR([FUTILE], [FUTILE root path])
dnl Check for sed and put it in the SED variable
AC_PROG_SED()
dnl Give the name of file.in to transform to file
AC_CONFIG_FILES([
Makefile
src/Makefile
src/lenosky_tb/Makefile
tests/Makefile
tests-scripts/Makefile
])
AC_OUTPUT