-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
52 lines (41 loc) · 1.3 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.60])
AC_INIT([gmml], [0.1.1], [[email protected]])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign silent-rules])
AC_CONFIG_SRCDIR([src/parameter_file.cc])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SUBDIRS([gtest])
AC_PROG_CXX
AC_PROG_CC
LT_INIT([dlopen])
AC_CHECK_PROG([have_sander], [sander], [yes])
if test "x${have_sander}" = xyes; then
AC_DEFINE([HAVE_SANDER], 1, [Define to 1 if sander is in the search path])
fi
AC_CHECK_HEADERS([sys/time.h unistd.h])
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_CHECK_TYPES([ptrdiff_t])
AC_FUNC_ERROR_AT_LINE
AC_FUNC_FORK
AC_CHECK_FUNCS([gettimeofday localtime_r])
ACX_PTHREAD
AC_CONFIG_FILES([Makefile
test/Makefile])
# Boost libraries below version 1.30 may be fine but 1.30 is probably a
# sufficiently old version to check for.
AX_BOOST_BASE([1.30],,[
AC_MSG_ERROR([gmml requires boost version 1.30 or higher])
])
AC_OUTPUT
if test "x${have_sander}" != xyes; then
echo \
"--------------------------------------------------
Warning: sander was not found in your environment.
You will not be able to use structure minimization.
---------------------------------------------------"
fi