-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
66 lines (51 loc) · 2.17 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.69)
# 4.2.5 November 2 2012
# 4.2.5.1 December 2012
# 4.2.6 July 2014
#AC_INIT([autogrid], [4.2.6], [[email protected]])
# the m4_esyscmd following creates a string such as VERSION='4.2.5.x.2014-12-25'
# indicating when the "autoreconf" was most recently run.
# This date is also inserted into PACKAGE_VERSION and PACKAGE_STRING
# AC_INIT([autogrid],[m4_translit(m4_esyscmd(date +4.2.7.x.%Y-%m-%d),m4_newline)],[[email protected]])
AC_INIT([autogrid], [4.2.8], [[email protected]])
AC_CONFIG_SRCDIR([atom_parameter_manager.cpp])
#AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE(subdir-objects)
# Checks for programs.
AC_PROG_CXX
AC_CANONICAL_HOST
# Checks for libraries.
AC_CHECK_LIB([m], [sqrt])
# Checks for header files.
AC_HEADER_STDC
#AC_CHECK_HEADERS([limits.h stddef.h stdlib.h string.h sys/param.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_STRUCT_TM
# Checks for library functions.
AC_FUNC_MALLOC
#AC_CHECK_FUNCS([gethostname pow round sqrt strncasecmp])
AC_CHECK_FUNCS([gethostname getpid GetProcessId fchmod setlinebuf sysconf times getrusage pow sqrt strncasecmp])
case $host_os in
*cygwin* ) CYGWIN=yes;;
* ) CYGWIN=no;;
esac
AM_CONDITIONAL([WANT_BIGSTACK], [test "$CYGWIN" = yes])
# AC_CONFIG_LINKS(parse_param_line.cpp:../autodock/parse_param_line.cc)
# AC_CONFIG_LINKS(read_parameter_library.cpp:../autodock/read_parameter_library.cc)
# AC_CONFIG_LINKS(stop.cpp:../autodock/stop.cc)
# M Pique: Open MP detection taken from Joachim Wuttke at
# http://stackoverflow.com/questions/9037434/enable-openmp-checks-and-flags-in-autoconf-and-automake
# who suggests also: AC_SUBST(AM_CXXFLAGS,"$OPENMP_CXXFLAGS")
AC_LANG(C++)
AC_PROG_CXX
AC_OPENMP # requires autoconf 2.62 or newer, sets OPENMP_CXXFLAGS if successful
AM_CONDITIONAL([WANT_OMP], [test "x$OPENMP_CXXFLAGS" != "x"])
# See "automake" manual, version 1.10, section 10.5 (Python)
#AM_PATH_PYTHON([2.1],, [:])
#AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT