-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
77 lines (64 loc) · 2 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
69
70
71
72
73
74
75
76
#
# Process this file with autoconf to produce a configure script.
# See the README file for more details.
#
AC_PREREQ(2.59)
AC_INIT([smartpack], [3.4.1], [asminer@iastate.edu], [smartpack], [http://smart.cs.iastate.edu])
AM_INIT_AUTOMAKE([-Wall foreign parallel-tests color-tests subdir-objects])
# Allow silent builds, and make it the default, if we can:
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_SRCDIR([src/README.txt])
AC_CONFIG_MACRO_DIR([m4])
# Check for programs
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX(11)
AM_PROG_LEX
AC_PROG_YACC
# Use AM_PROG_AR if we can...
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AM_PROG_LIBTOOL
#
# Check for GMP
#
AC_ARG_WITH([gmp],
[AS_HELP_STRING([--without-gmp], [disable support for gmp])],
[],
[with_gmp=yes])
# LIBGMP=
AS_IF(
[test "x$with_gmp" != xno],
[AC_CHECK_LIB([gmp], [__gmpz_init], [], [AC_MSG_FAILURE(["gmp test failed (--without-gmp to disable)"])], [])],
[])
AM_CONDITIONAL([LINK_GMP], [test "x$with_gmp" != xno])
# Check for header files.
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([sys/time.h unistd.h])
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_FUNC_REALLOC
AC_TYPE_SIGNAL
# Our configuration stuff
AC_SUBST(MDD_LIBRARY)
# Makefiles we need to build
AC_CONFIG_FILES([Makefile
src/Makefile
src/_LSLib/Makefile
src/_LSLib/examples/Makefile
src/_RngLib/Makefile
src/_RngLib/examples/Makefile
src/_SimLib/Makefile
src/_SimLib/examples/Makefile
src/_IntSets/Makefile
src/_IntSets/examples/Makefile
src/_StateLib/Makefile
src/_StateLib/examples/Makefile
src/_GraphLib/Makefile
src/_GraphLib/examples/Makefile
src/_MCLib/Makefile
src/_MCLib/examples/Makefile
Tests/Makefile
])
AC_CONFIG_SUBDIRS([src/_Meddly])
AC_OUTPUT