configure.ac 4.69 KB
Newer Older
1
# Copyright (C) 2008, 2009, 2010, 2011, 2012 Laboratoire de Recherche et
2
# Dveloppement de l'Epita (LRDE).
Guillaume Sadegh's avatar
Guillaume Sadegh committed
3
4
5
# Copyright (C) 2003, 2004, 2005, 2006, 2007 Laboratoire d'Informatique de
# Paris 6 (LIP6), dpartement Systmes Rpartis Coopratifs (SRC), Universit
# Pierre et Marie Curie.
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# This file is part of Spot, a model checking library.
#
# Spot is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Spot is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Spot; see the file COPYING.  If not, write to the Free
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.

24
AC_PREREQ([2.61])
25
AC_INIT([spot], [0.8.3a], [spot@lrde.epita.fr])
26
AC_CONFIG_AUX_DIR([tools])
27
AC_CONFIG_MACRO_DIR([m4])
28
29
30
AM_INIT_AUTOMAKE([1.11 gnu tar-ustar color-tests parallel-tests])
AC_CONFIG_HEADERS([config.h])dnl Private config, not to be used in .hh files.
AX_PREFIX_CONFIG_H([src/misc/_config.h])dnl Public config, for .hh files.
31

32
# If the user didn't supply a CFLAGS value,
33
34
35
36
# set an empty one to prevent autoconf to stick -O2 -g here.
test -z "$CFLAGS" && CFLAGS=
test -z "$CXXFLAGS" && CXXFLAGS=

37
adl_ENABLE_DEVEL
38
39
40
41
42
43
44
45
46
47
48
49
50

AC_ARG_ENABLE([python],
              [AC_HELP_STRING([--disable-python],
                              [do not compile Python bindings])],
              [], [enable_python=yes])

AM_CONDITIONAL([USE_PYTHON], [test "x${enable_python:-yes}" = xyes])

if test "x${enable_python:-yes}" = xyes; then
  AC_MSG_NOTICE([You may configure with --disable-python ]dnl
[if you do not need Python bindings.])
  adl_CHECK_PYTHON
fi
51

52
53
AC_PROG_CC
AM_PROG_CC_C_O
54
55
56
57
58
59
60
AC_PROG_CXX

AM_PROG_LEX
AC_PROG_YACC

AC_LANG(C++)

61
62
63
64
AC_HEADER_UNORDERED_MAP
AC_HEADER_TR1_UNORDERED_MAP
AC_HEADER_EXT_HASH_MAP

65
AX_CHECK_BUDDY
66
AX_CHECK_LBTT
67
AX_CHECK_GSPNLIB
68
AX_CHECK_BOOST([1.34], [103400])
69

70
71
AC_CHECK_HEADERS([sys/times.h])
AC_CHECK_FUNCS([times srand48 drand48])
72

73
LT_CONFIG_LTDL_DIR([ltdl])
74
LT_INIT([win32-dll])
75
LTDL_INIT([subproject convenience])
76

77
78
79
80
adl_ENABLE_DEBUG
ad_GCC_OPTIM
adl_NDEBUG

81
spot_INTEL
82
83
84
if test x$enable_warnings = xyes; then
  CF_GXX_WARNINGS
fi
85

86
AM_CONDITIONAL([NEVER], [false])
87
88
89
# We need the absolute path for dot in the "doc/dot" script. Other place
# only require a relative path.
AC_PATH_PROG([DOT], [dot])
90
91
92
93
AC_CHECK_PROG([LBT], [lbt], [lbt])
AC_CHECK_PROG([LTL2BA], [ltl2ba], [ltl2ba])
AC_CHECK_PROG([MODELLA], [modella], [modella])
AC_CHECK_PROG([LTL2NBA], [script4lbtt.py], [script4lbtt.py])
94
AC_CHECK_PROG([PERL], [perl], [perl])
95
AC_CHECK_PROG([SPIN], [spin], [spin])
96
AX_CHECK_VALGRIND
97
AC_CHECK_PROG([WRING2LBTT], [wring2lbtt], [wring2lbtt])
98
99
100
# Debian has a binary for SWIG 2.0 named swig2.0 and they kept swig as
# an alias for swig-1.3.  Let's use the former when available.
AC_CHECK_PROGS([SWIG], [swig2.0 swig], [swig])
101
102
103

AC_CONFIG_FILES([
  Makefile
104
105
106
  bench/Makefile
  bench/emptchk/Makefile
  bench/emptchk/defs
107
108
  bench/gspn-ssp/Makefile
  bench/gspn-ssp/defs
109
110
  bench/ltlcounter/Makefile
  bench/ltlcounter/defs
111
112
  bench/ltlclasses/Makefile
  bench/ltlclasses/defs
113
114
  bench/ltl2tgba/Makefile
  bench/ltl2tgba/defs
Flix Abecassis's avatar
Flix Abecassis committed
115
116
  bench/scc-stats/Makefile
  bench/split-product/Makefile
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
117
118
  bench/wdba/Makefile
  bench/wdba/defs
119
  doc/Doxyfile
120
  doc/Makefile
121
  doc/tl/Makefile
122
  iface/dve2/defs
123
  iface/dve2/Makefile
124
  iface/gspn/defs
125
126
  iface/gspn/Makefile
  iface/Makefile
127
128
  src/eltlparse/Makefile
  src/eltltest/defs
129
  src/eltltest/Makefile
130
  src/evtgbaalgos/Makefile
131
  src/evtgba/Makefile
132
133
  src/evtgbaparse/Makefile
  src/evtgbatest/defs
134
135
  src/evtgbatest/Makefile
  src/kripke/Makefile
136
  src/ltlast/Makefile
137
  src/ltlenv/Makefile
138
  src/ltlparse/Makefile
139
140
141
  src/kripkeparse/Makefile
  src/kripketest/Makefile
  src/kripketest/defs
142
  src/ltltest/defs
143
  src/ltltest/Makefile
144
  src/ltlvisit/Makefile
145
  src/Makefile
146
  src/misc/Makefile
147
  src/neverparse/Makefile
148
  src/sanity/Makefile
149
150
151
152
  src/saba/Makefile
  src/sabaalgos/Makefile
  src/sabatest/defs
  src/sabatest/Makefile
153
  src/tgbaalgos/gtec/Makefile
154
155
  src/tgbaalgos/Makefile
  src/tgba/Makefile
156
  src/tgbaparse/Makefile
157
  src/tgbatest/defs
158
  src/tgbatest/Makefile
159
  wrap/Makefile
160
  wrap/python/Makefile
161
  wrap/python/ajax/Makefile
162
  wrap/python/tests/Makefile
163
])
164
AC_CONFIG_FILES([bench/ltl2tgba/ltl2baw.pl:bench/ltl2tgba/ltl2baw.in],
165
		[chmod +x bench/ltl2tgba/ltl2baw.pl])
166
AC_CONFIG_FILES([doc/dot], [chmod +x doc/dot])
167
AC_CONFIG_FILES([wrap/python/tests/run], [chmod +x wrap/python/tests/run])
168
AC_OUTPUT