-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
83 lines (72 loc) · 2.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
77
78
79
80
81
82
83
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
AC_INIT([pomdp-solve], [5.3], [[email protected]])
AM_INIT_AUTOMAKE(pomdp-solve, 5.3)
# Allow the defined vars to come from a file instead of a slew of '-D'
# compiler flags.
AM_CONFIG_HEADER([config.h])
## Option for using compile -g flag for debugging symbols
##
AM_CONDITIONAL(DEBUG, false)
AC_ARG_ENABLE(debug,
[ --enable-debug enable debugging symbols],
[
if test "x$enableval" = "xyes" ; then
AM_CONDITIONAL(DEBUG, true)
fi
]
)
## Option for using compile -pg flag for profiling
##
AM_CONDITIONAL(PROFILE, false)
AC_ARG_ENABLE(profile,
[ --enable-profile enable debugging symbols and profiling],
[
if test "x$enableval" = "xyes" ; then
AM_CONDITIONAL(PROFILE, true)
fi
]
)
## Option for using dmalloc memory leak checking library
##
AM_CONDITIONAL(DMALLOC, false)
AC_ARG_ENABLE(dmalloc,
[ --enable-dmalloc enable using dmalloc memory checker],
[
if test "x$enableval" = "xyes" ; then
AM_CONDITIONAL(DMALLOC, true)
fi
]
)
# Checks for programs.
AC_PROG_YACC
AC_PROG_CC
AM_PROG_LEX
AC_PROG_RANLIB
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lcplex':
AC_CHECK_LIB([cplex], [main])
# FIXME: Replace `main' with a function in `-lm':
AC_CHECK_LIB([m], [main])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([float.h limits.h stddef.h stdlib.h string.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_HEADER_TIME
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_TYPE_SIGNAL
AC_FUNC_STRTOD
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([bzero floor gettimeofday memset pow sqrt strstr])
AC_OUTPUT([Makefile \
src/Makefile \
src/mdp/Makefile \
src/lp-solve/Makefile \
src/laspack/Makefile
testing/Makefile])