-
Notifications
You must be signed in to change notification settings - Fork 31
/
configure.ac
606 lines (545 loc) · 21.5 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
AC_PREREQ(2.65)
AC_INIT([ltsmin],[3.1.0],[[email protected]])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([autotools])
AM_INIT_AUTOMAKE([1.14 foreign subdir-objects])
AC_CONFIG_SRCDIR([src/pins-lib/pins.c])
AC_CONFIG_HEADERS([src/hre/config.h])
AC_SUBST([pkglibdir], "\${libdir}/${PACKAGE_NAME}-${PACKAGE_VERSION}")
AC_USE_SYSTEM_EXTENSIONS
AC_DEFINE([LTSMIN_PATHNAME_MAX], 1024, [Define maximal length of pathnames])
AC_DEFINE([LTSMIN_CONFIG_INCLUDED], 1, [Controls where headers are included from])
AC_DEFINE([DEFFILEMODE], 0666, [Define default file mode])
m4_divert_text([DEFAULTS], [: "${ARFLAGS=crs} ${AR_FLAGS=crs}"])
#DejaGNU
if test x"$DEJAGNU" = x
then
DEJAGNU="\$(top_srcdir)/testsuite/ltsmin.exp"
fi
AC_SUBST(DEJAGNU)
AC_PROG_CC_FOR_BUILD
AM_PROG_CC_C_O
AC_PROG_CXX
ACX_FINK
ACX_MACPORTS
ACX_PKGSRC
ACX_PTHREAD(, [AC_MSG_FAILURE([no pthread support found.])])
LT_PREREQ(2.4)
LT_CONFIG_LTDL_DIR([ltdl])
LT_INIT([disable-shared win32-dll])
LTDL_INIT
AX_CHECK_FLEX([
%option prefix="ltsmin_"
%option header-file="conftest.h"
%option outfile="conftest.c"
%option nodefault noyywrap reentrant noyyalloc noyyrealloc noyyfree batch noinput
%option extra-type="ltsmin_parse_env_t"
%%
],,
[AC_MSG_FAILURE([no compatible lexer generator found.])])
AC_PROG_MAKE_SET
AC_PROG_INSTALL
PKG_PROG_PKG_CONFIG
m4_pattern_forbid([^PKG_[A-Z_]+$], [missing some pkgconf macros (pkgconf package)])
AS_IF([test x"$PKG_CONFIG" = x], [AC_MSG_FAILURE([Please install pkgconf])])
AC_ARG_ENABLE([pkgconf_static],
[AS_HELP_STRING([--enable-pkgconf-static], [
Configure pkgconf to search for private libs too.
This is necessary when you want to statically link binaries.])])
AS_IF([test "x$enable_pkgconf_static" = "xyes"], [PKG_CONFIG="$PKG_CONFIG --static"])
AX_PROG_BISON([BISON="$YACC"],[AC_MSG_FAILURE([Please install Bison])])
AX_PROG_BISON_VERSION([3.0.2],,[AC_MSG_FAILURE([Please install Bison >= 3.0.2])])
dnl Checks for programs.
ACX_SPINS([:], [AC_MSG_WARN([SpinS will not be compiled.])])
AC_ARG_ENABLE([dist],
[AS_HELP_STRING([--disable-dist],
[do not build distributed tools, that require MPI])])
AS_IF([test "x$enable_dist" != "xno"],[
AC_LANG_PUSH([C])
AX_MPI([have_mpi=yes],[AC_MSG_WARN([unable to find working MPI C complier wrapper])])
AC_LANG_POP([C])
AC_LANG_PUSH([C++])
AX_MPI([have_mpi=yes],[AC_MSG_WARN([unable to find working MPI C++ complier wrapper])])
AC_LANG_POP([C++])
])
AC_PROG_CC_C99
gl_EARLY
AX_CXX_COMPILE_STDCXX_17(, [mandatory])
AS_IF([test x"$ac_cv_prog_cc_c99" = xno],
[AC_MSG_FAILURE([no acceptable C99 compiler found.])])
AX_TRY_CFLAGS_IFELSE([-W -Wall])
AX_TRY_CFLAGS_IFELSE([-pipe])
AX_TRY_CXXFLAGS_IFELSE([-W -Wall])
AX_TRY_CXXFLAGS_IFELSE([-pipe])
AX_CC_COMPILE_CXX_LINK
ACX_MCRL([:],
[AC_MSG_WARN([no acceptable muCRL installation found.])])
ACX_MCRL2([:],
[AC_MSG_WARN([no acceptable mCRL2 installation found.])])
AC_CHECK_PROGS(ASCIIDOC, [asciidoc])
if test x"$ASCIIDOC" = x && test -d "${srcdir}/.git"; then
AC_MSG_WARN([Asciidoc is needed for building documentation.])
fi
AC_CHECK_PROGS(XMLTO, [xmlto])
if test x"$XMLTO" = x && test -d "${srcdir}/.git"; then
AC_MSG_WARN([xmlto is needed for building man pages.])
fi
DX_DOXYGEN_FEATURE(ON)
DX_HTML_FEATURE(ON)
DX_CHM_FEATURE(OFF)
DX_CHI_FEATURE(OFF)
DX_MAN_FEATURE(OFF)
DX_RTF_FEATURE(OFF)
DX_XML_FEATURE(OFF)
DX_PDF_FEATURE(ON)
DX_PS_FEATURE(OFF)
DX_DOT_FEATURE(OFF)
DX_INIT_DOXYGEN([$PACKAGE_NAME])
AC_CACHE_SAVE
# Checks for libraries.
AC_SEARCH_LIBS([pow], [m])
gl_INIT
AC_ARG_WITH([bignum],
[AS_HELP_STRING([--with-bignum=<type>],
[enable support for bignums (type=yes|gmp|tommath|no) @<:@default=yes@:>@])],
[], [with_bignum=yes])
AS_CASE(["$with_bignum"],
[no],[],
[yes|gmp|tommath],
[AS_IF([test x"$with_bignum" = xyes || test x"$with_bignum" = xgmp],
[AC_CHECK_LIB([gmp], [__gmpz_init],
[with_bignum=gmp; have_libgmp=yes],
[AS_IF([test x"$with_bignum" = xgmp],
[with_bignum=no; AC_MSG_WARN([cannot use libgmp as bignum library.])])])])
AS_IF([test x"$with_bignum" = xyes || test x"$with_bignum" = xtommath],
[AC_CHECK_LIB([tommath], [mp_init],
[with_bignum=tommath; have_libtommath=yes],
[AS_IF([test x"$with_bignum" = xtommath],
[with_bignum=no; AC_MSG_WARN([cannot use libtommath as bignum library.])])])])],
[AC_MSG_WARN([unknown bignum library request (--with-bignum=$with_bignum) ignored.])])
if test "x$acx_mcrl" = xyes; then
ACX_MCRL_LIBS(
[AX_LET([LIBS], ["$MCRL_LIBS $LIBS"],
[LDFLAGS], ["$MCRL_LDFLAGS $LDFLAGS"],
[AC_CHECK_FUNCS([STgetSummandCount STgetProjection],
[have_libstep_info=yes],
[AC_MSG_WARN([muCRL library too old; some tools will not be built.])
have_libstep_info=no
break])])],
[acx_mcrl=no
AC_MSG_WARN([some muCRL libraries not found.])])
fi
if test "x$acx_mcrl2" = xyes; then
ACX_MCRL2_LIBS(
[:],
[acx_mcrl2=no
AC_MSG_WARN([mcrl2 library not found.])])
fi
ACX_DDD([:],
[AC_MSG_WARN([No libDDD installation found.])])
ACX_SDD([:],
[AC_MSG_WARN([No SDD installation found.])])
AC_ARG_WITH([spot],
AS_HELP_STRING([--without-spot], [do not include the Spot library for LTL model checking]))
AS_IF([test "x$with_spot" != "xno"], [
PKG_CHECK_MODULES([SPOT], [libspot >= 2.3], [
acx_spot=yes
], [
AC_MSG_WARN(No valid Spot version found!)
])
])
acx_buddy=""
AS_IF([test "x$acx_spot" = "xyes"], [
PKG_CHECK_MODULES([BDDX], [libbddx >= 2.3],[
AC_MSG_NOTICE([Because Spot was found, the Spot Buddy implementation will be used!])
acx_buddy="Spot version (because Spot was found)"
AC_SUBST([BUDDY_LIBS],["$BDDX_LIBS"])
AC_SUBST([BUDDY_CFLAGS],["$BDDX_CFLAGS"])
],[
AC_MSG_ERROR(Could not find libbddx!
Because both Spot and LTSmin distribute BuDDy,
we have to choose between BUDDY versions,
if Spot is found, then the Spot version will be used,
meaning libbddx must be installed.)])
],[
AC_ARG_WITH([buddy],
AS_HELP_STRING([--without-buddy], [do not include BuDDy for symbolic state storage]))
AS_IF([test "x$with_buddy" != "xno"], [
PKG_CHECK_MODULES([BDD], [libbdd >= 2.4], [
acx_buddy="LTSmin version (because Spot was not found or disabled)"
AC_SUBST([BUDDY_LIBS],["$BDD_LIBS"])
AC_SUBST([BUDDY_CFLAGS],["$BDD_CFLAGS"])
], [
AC_MSG_WARN(No valid BuDDy version found!)
])
])
])
ACX_CLINE_DEF([], [])
AC_CHECK_LIB([rt], [aio_error])
ACX_CADP_BCG_WRITE([have_bcg=yes],
[have_bcg=no
AC_MSG_WARN([no acceptable BCG libraries found; building without.])])
AC_CHECK_LIB([zip],[zip_open],
[AC_SUBST([LIBZIP_LIBS],[-lzip])
AX_LET([CPPFLAGS],["$CPPFLAGS"],
[dnl Version 0.10 of libzip needs a zipconf.h in the lib directory.
dnl The assumption here is that this directory is known relative
dnl to the include directory. Note that this is not foolproof, if
dnl e.g. zipconf.h is in some default location (other than /usr
dnl /lib/libzip/include); in which case the user has to add the
dnl path explicitly.
for f in $CPPFLAGS; do
case "$f" in
-I*) if test -f "${f#-I}/zip.h"; then
if test -f "${f#-I}/../lib/libzip/include/zipconf.h"; then
AC_SUBST([LIBZIP_CPPFLAGS],[$f/../lib/libzip/include])
CPPFLAGS="$LIBZIP_CPPFLAGS $CPPFLAGS"
break
fi
fi
;;
esac
done
if test -f "/usr/lib/ziplib/zipconf.h"; then
AC_SUBST([LIBZIP_CPPFLAGS],[-I/usr/lib/libzip/include])
CPPFLAGS="$LIBZIP_CPPFLAGS $CPPFLAGS"
break
fi
AC_CHECK_HEADERS([zip.h],,[AC_MSG_FAILURE([zip.h not found.])])])
acx_libzip=yes
],
[acx_libzip=no
AC_MSG_WARN([no acceptable zip library found; building without.])
])
# Checks for gperftools profiler
AC_ARG_WITH([profiler],
[AS_HELP_STRING([--with-profiler],
[enable support for gperftools in spgsolver @<:@default=no@:>@])],
[with_profiler=yes], [with_profiler=no])
AS_IF([test x"$with_profiler" = xyes],
[AC_CHECK_LIB([profiler],[ProfilerStart],
[AC_SUBST([PROFILER_LDFLAGS],['-lprofiler -ltcmalloc'])
AC_SUBST([PROFILER_CPPFLAGS],[-DHAVE_PROFILER])
acx_profiler=yes
],
[acx_profiler=no
AC_MSG_WARN([no acceptable profiler library found; building without.])
])
])
# Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h limits.h stdint.h stdlib.h string.h strings.h dnl
unistd.h execinfo.h])
AS_IF([test x"$have_libgmp" = xyes],
[AC_CHECK_HEADERS([gmp.h],,[AC_MSG_FAILURE([gmp.h not found.])])
AC_LANG_PUSH([C++])
AC_CHECK_HEADERS([gmpxx.h],,[AC_MSG_FAILURE([gmpxx.h not found.])])
AC_LANG_POP([C++])
])
AS_IF([test x"$have_libtommath" = xyes],
[AC_CHECK_HEADERS([tommath.h],,[AC_MSG_FAILURE([tommath.h not found.])])])
AC_CACHE_SAVE
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_INT8_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
AC_CACHE_SAVE
# Checks for library functions.
dnl LTSmin has its own *alloc wrappers
dnl AC_FUNC_MALLOC
dnl AC_FUNC_REALLOC
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([atexit bzero ftruncate strdup strndup strchr strstr strtol dnl
asprintf memset mkdir pow strcasecmp strrchr backtrace backtrace_symbols dnl
strsep mkdtemp alarm shm_open fork wait nice])
AC_CHECK_DECLS([strdup, strndup, strchr, strrchr, strstr, asprintf,dnl
mkdtemp, strsep])
AX_REQUIRE_ONE_FUNC([posix_memalign _aligned_malloc], ,
[AC_MSG_ERROR([unable to allocate page-aligned memory])])
# check for fine-grained multi-core synchronization primitives
acx_atomics=yes
AX_CHECK_FUNC_INCLUDE([],[__sync_bool_compare_and_swap],
[int x = 0;
__sync_bool_compare_and_swap(&x,0,1)],
[],[acx_atomics=no])
AX_CHECK_FUNC_INCLUDE([],[__sync_fetch_and_add],
[int x = 0;
__sync_fetch_and_add(&x,1)],
[],[acx_atomics=no])
AX_CHECK_FUNC_INCLUDE([],[__sync_fetch_and_and],
[int x = 0;
__sync_fetch_and_and(&x,1)],
[],[acx_atomics=no])
AX_CHECK_FUNC_INCLUDE([],[__sync_fetch_and_or],
[int x = 0;
__sync_fetch_and_or(&x,1)],
[],[acx_atomics=no])
AX_CHECK_FUNC_INCLUDE([],[__sync_synchronize],
[__sync_synchronize()],
[],[acx_atomics=no])
if test x"$acx_atomics" != "xyes"; then
AC_MSG_FAILURE([no acceptable atomic operations found.])
fi
if test "x$have_libspg" == xyes; then
AC_DEFINE([HAVE_LIBSPG], [], [Defined if the SPG lib has been compiled.])
fi
AC_SUBST(AM_CPPFLAGS,['-I${top_srcdir}/src -I${top_builddir}/src'])
AC_ARG_ENABLE([opaal], [AS_HELP_STRING([--disable-opaal], [Do not compile OPAAL front-end])])
AS_IF([test "x$enable_opaal" != "xno"], [
AC_CHECK_PROGS(OPAAL_LTSMIN,[opaal_ltsmin])
have_opaal="yes"
])
AC_ARG_ENABLE([scoop],[AS_HELP_STRING([--disable-scoop],[Do not compile scoop front-end])])
AS_IF([test "x$enable_scoop" != "xno"], [
AC_CHECK_PROG(GHC, ghc, ghc)
AC_CHECK_PROG(HAPPY, happy, happy)
AS_IF([test -n "$GHC" -a -n "$HAPPY"], [
AC_CONFIG_SUBDIRS([scoop])
[have_scoop="yes"]
])
])
AX_BOOST_BASE([1.46],[have_boost="yes"],)
AX_PATH_VIENNACL(1.5.1, no)
if (test x$HAVE_VIENNACL = x1); then
have_viennacl="yes"
else
AC_MSG_WARN([no acceptable ViennaCL installation found.])
fi
PKG_CHECK_MODULES([ZLIB], [zlib], [], [AC_MSG_FAILURE([zlib not found.])])
AC_ARG_ENABLE([pnml], [AS_HELP_STRING([--disable-pnml], [Do not compile PNML front-end])])
AS_IF([test "x$enable_pnml" != "xno"], [
PKG_CHECK_MODULES([XML2], [libxml-2.0], [
SAVE_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$XML2_CFLAGS"
AC_CHECK_HEADER([libxml/parser.h], [
acx_pnml=yes
PNML_CFLAGS="$XML2_CFLAGS"
PNML_LIBS="$XML2_LIBS"
AC_SUBST(PNML_CFLAGS)
AC_SUBST(PNML_LIBS)
], [
AC_MSG_WARN([libxml2 is installed but the required headers could not be found.])
AC_MSG_WARN([[Please refer to http://ltsmin.utwente.nl/#libxml2 how to resolve this issue.]])
])
CPPFLAGS="$SAVE_CPPFLAGS"
], [:])
])
AS_IF([test "x$acx_pnml" != "xyes"], [
AC_MSG_WARN(No acceptable libxml2 package found. Not building PNML front-end)
])
PKG_CHECK_MODULES([POPT], [popt],[
dnl just substitute them, because popt is needed everywhere
AC_SUBST([LIBS], ["$LIBS $POPT_LIBS"])
AC_SUBST([AM_CFLAGS], ["$AM_CFLAGS $POPT_CFLAGS"])
],[
AC_MSG_ERROR(Missing required package popt please install popt.)
])
AC_ARG_ENABLE([prob], [AS_HELP_STRING([--disable-prob], [Do not compile ProB front-end])])
AS_IF([test "x$enable_prob" != "xno"], [
PKG_CHECK_MODULES([CZMQ], [libczmq],[
acx_prob=yes
PROB_CFLAGS="$CZMQ_CFLAGS"
PROB_LIBS="$CZMQ_LIBS"
AC_SUBST(PROB_CFLAGS)
AC_SUBST(PROB_LIBS)],
AC_MSG_WARN(libczmq is not installed. Not building ProB front-end)
)
])
AC_ARG_ENABLE([werror],
[AS_HELP_STRING([--enable-werror], [Use -Werror @<:@no@:>@])])
AS_IF([test "x$enable_werror" = "xyes"], [
AC_SUBST([AM_CFLAGS], ["$AM_CFLAGS -Werror"])
AC_SUBST([AM_CXXFLAGS], ["$AM_CXXFLAGS -Werror"])
])
AC_ARG_WITH([sylvan],
[AS_HELP_STRING([--without-sylvan], [do not include Sylvan multi-core decision diagram packages])])
AS_IF([test "x$with_sylvan" != "xno"], [
PKG_CHECK_MODULES([SYLVAN], [sylvan >= 1.8.1 sylvan < 1.9],[
have_sylvan=yes
AC_SUBST([TEST_SYLVAN], [yes]) dnl to make sure dejagnu tests with Sylvan
], [
AC_MSG_WARN([Sylvan >= 1.8.1, < 1.9 is not installed.])
])
])
AC_DEFINE(
[__assume(cond)],
[do { if (!(cond)) __builtin_unreachable(); } while (0)],
[Provide a hint to the optimizer]
)
dnl Check if we need to have Wine to run tests.
dnl Wine is required on when x-compiling a Windows target.
AM_CONDITIONAL([NEEDS_WINE], [test "x$BUILD_EXEEXT" != "x$EXEEXT" -a "x$EXEEXT" = "x.exe"])
AM_COND_IF([NEEDS_WINE], [
AC_CHECK_PROG([WINE], [wine], [wine$BUILD_EXEEXT])
dnl check for wineserver, this speeds up Wine loading time
AC_CHECK_PROG([WINESERVER], [wineserver], [wineserver$BUILD_EXEEXT])
AM_CONDITIONAL([WINE_MISSING], [
test "x$WINE" != "xwine$BUILD_EXEEXT" -o "x$WINESERVER" != "xwineserver$BUILD_EXEEXT"])
AM_COND_IF([WINE_MISSING], [AC_MSG_WARN([[Wine could not be found, tests can not be run.]])])
], [AM_CONDITIONAL([WINE_MISSING], [false])])
#AM_CONDITIONAL([HAVE_POSIX], [test x"$POSIX_SHARED" = "xyes"])
AM_CONDITIONAL([HAVE_SCOOP], [test x"$have_scoop" = "xyes"])
AM_CONDITIONAL([HAVE_SYLVAN], [test x"$have_sylvan" = "xyes"])
AM_COND_IF([HAVE_SYLVAN], [AC_DEFINE([HAVE_SYLVAN],, [Define if using Sylvan.])])
AM_CONDITIONAL([HAVE_OPAAL], [test x"$have_opaal" = "xyes"])
AM_CONDITIONAL([HAVE_OPAAL_COMPILER], [test x"$OPAAL_LTSMIN" != x])
AM_CONDITIONAL([HAVE_MPI], [test x"$have_mpi" != "x"])
AM_CONDITIONAL([HAVE_LIBGMP],
[test x"$with_bignum" != xno && test x"$have_libgmp" = xyes])
AM_CONDITIONAL([HAVE_LIBTOMMATH],
[test x"$with_bignum" != xno && test x"$have_libtommath" = xyes])
AM_CONDITIONAL([HAVE_LIBMCRL], [test x"$acx_mcrl" = xyes])
AM_CONDITIONAL([HAVE_LIBMCRL2], [test x"$acx_mcrl2" = xyes])
AM_CONDITIONAL([HAVE_LIBPBES], [test x"$acx_pbes" = xyes])
AM_CONDITIONAL([HAVE_LIBSTEP_INFO], [test x"$have_libstep_info" = xyes])
AM_CONDITIONAL([HAVE_LIBDDD], [test x"$acx_libddd" = xyes])
AM_CONDITIONAL([HAVE_ASCIIDOC], [test x"$ASCIIDOC" != x])
AM_CONDITIONAL([HAVE_XMLTO], [test x"$XMLTO" != x])
AM_CONDITIONAL([HAVE_LIBBCG], [test x"$have_bcg" = xyes])
AM_CONDITIONAL([HAVE_CADP], [test x"$acx_cadp" = xyes])
AM_CONDITIONAL([HAVE_DVE], [true]) dnl can be built unconditionally
AM_CONDITIONAL([HAVE_SPINS], [true])
AM_CONDITIONAL([HAVE_SPINS_COMPILER], [test x"$acx_spins" = "xyes"])
#AM_CONDITIONAL([HAVE_ATOMICS], [test x"$acx_atomics" = xyes])
AM_CONDITIONAL([HAVE_VERSION_CONTROL], [test -d "${srcdir}/.git"])
AM_CONDITIONAL([HAVE_LIBZIP], [test x"$acx_libzip" = xyes])
AM_CONDITIONAL([HAVE_PROFILER], [test x"$acx_profiler" = xyes])
AM_CONDITIONAL([HAVE_BOOST], [test x"$have_boost" = xyes])
AM_CONDITIONAL([HAVE_VIENNACL], [test x"$have_viennacl" = xyes])
AM_CONDITIONAL([HAVE_PNML], [test x"$acx_pnml" = xyes])
AM_CONDITIONAL([HAVE_PROB], [test x"$acx_prob" = xyes])
AM_CONDITIONAL([HAVE_SPOT], [test x"$acx_spot" = xyes])
AM_CONDITIONAL([HAVE_SDD], [test x"$acx_libsdd" = xyes])
AM_COND_IF([HAVE_SPOT], [AC_DEFINE([HAVE_SPOT],, [Define if using Spot.])])
AM_CONDITIONAL([HAVE_BUDDY], [test x"$acx_buddy" != x])
AM_COND_IF([HAVE_BUDDY], [AC_DEFINE([HAVE_BUDDY],, [Define if using BuDDy.])])
AC_ARG_ENABLE([check_DVE], [AS_HELP_STRING([--disable-check-DVE], [Disable DVE tests])])
AC_ARG_ENABLE([check_Promela], [AS_HELP_STRING([--disable-check-Promela], [Disable Promela tests])])
EXTRA_CHECKS="check-ETF"
AS_IF([test "x$enable_check_DVE" != "xno"], [
EXTRA_CHECKS="$EXTRA_CHECKS check-DVE"
AC_SUBST([TEST_DVE], [yes])
])
AM_COND_IF([HAVE_LIBMCRL], [EXTRA_CHECKS="$EXTRA_CHECKS check-LPO"])
AM_COND_IF([HAVE_LIBMCRL2], [
EXTRA_CHECKS="$EXTRA_CHECKS check-LPS"
AC_SUBST([TEST_LPS], [yes])
])
AM_COND_IF([HAVE_SCOOP], [EXTRA_CHECKS="$EXTRA_CHECKS check-MAPA"])
AM_COND_IF([HAVE_OPAAL_COMPILER], [EXTRA_CHECKS="$EXTRA_CHECKS check-OPAAL"])
AM_COND_IF([HAVE_LIBMCRL2], [EXTRA_CHECKS="$EXTRA_CHECKS check-PBES"])
AM_COND_IF([HAVE_PNML], [EXTRA_CHECKS="$EXTRA_CHECKS check-PNML"])
AM_COND_IF([HAVE_PROB], [EXTRA_CHECKS="$EXTRA_CHECKS check-ProB"])
AS_IF([test "x$enable_check_Promela" != "xno"], [
AM_COND_IF([HAVE_SPINS_COMPILER], [
EXTRA_CHECKS="$EXTRA_CHECKS check-Promela"
AC_SUBST([TEST_PROMELA], [yes])
])
])
EXTRA_CHECKS="$EXTRA_CHECKS check-DFS-FIFO check-LTL"
AM_COND_IF([HAVE_LIBMCRL2], [EXTRA_CHECKS="$EXTRA_CHECKS check-LTS"])
EXTRA_CHECKS="$EXTRA_CHECKS check-MU check-POR check-safety check-SCC"
AC_SUBST([EXTRA_CHECKS])
AM_CONDITIONAL(BUILD_OS_IS_DARWIN,
[case "${build_os}" in
darwin*) true ;;
*) false ;;
esac])
AC_CONFIG_COMMANDS_POST(
[ac_configure_args="$ac_configure_args --enable-keep-terminated-procs dnl
--disable-shared dnl
--libdir='$(eval echo "$pkglibdir")'"])
AC_CONFIG_FILES([
www/_config.yml
Makefile
examples/Makefile
lib/Makefile
src/Makefile
src/andl-lib/Makefile
src/hre-io/Makefile
src/hre/Makefile
src/hre-mpi/Makefile
src/lts-io/Makefile
src/lts-lib/Makefile
src/ltsmin-lib/Makefile
src/mc-lib/Makefile
src/pins-lib/Makefile
src/prob-lib/Makefile
src/pins-lib/por/Makefile
src/util-lib/Makefile
src/vset-lib/Makefile
src/spg-lib/Makefile
src/gcf-tool/Makefile
src/ldd2bdd/Makefile
src/ltsmin-printtrace/Makefile
src/ltsmin-compare/Makefile
src/ltsmin-convert/Makefile
src/ltsmin-reduce/Makefile
src/ltsmin-reduce-dist/Makefile
src/pins2lts-dist/Makefile
src/pins2lts-dist/gcc/Makefile
src/pins2lts-dist/mpicc/Makefile
src/pins2lts-mc/parallel/Makefile
src/pins2lts-mc/algorithm/Makefile
src/pins2lts-mc/Makefile
src/pins2lts-seq/Makefile
src/pins2lts-sym/Makefile
src/pins2lts-sym/maxsum/Makefile
src/pins-open/Makefile
src/spg/Makefile
src/dm/Makefile
src/bignum/Makefile
src/ce/Makefile
src/tests/wine-wrapper.sh
src/torx/Makefile
src/scripts/Makefile
src/tests/Makefile
src/tests/gcc/Makefile
src/tests/mpicc/Makefile
doc/Makefile
lemon/Makefile
testsuite/Makefile
testsuite/wine.exp
])
AC_CONFIG_LINKS([src/ltsmin-lib/lempar.c:lemon/lempar.c])
AC_CONFIG_SUBDIRS([ltl2ba])
AC_OUTPUT
cat <<EOM
Configuration:
======================================================================
ASCIIDOC = ${ASCIIDOC:-NOT FOUND, not building documentation}
BIGNUM = ${with_bignum}
BUDDY = ${acx_buddy:-NOT FOUND, building without BuDDy support}
CADP = ${CADP:-NOT FOUND, building without CADP support}
CC = ${CC:-NOT FOUND}
CXX = ${CXX:-NOT FOUND}
LIBDDD = ${LIBDDD:-NOT FOUND, building without DDD support}
MCRL = ${with_mcrl:-NOT FOUND, building without muCRL support}
MCRL2 = ${with_mcrl2:-NOT FOUND, building without mCRL2 support}
MPICC = ${MPICC:-NOT FOUND, building without MPI support}
MPICXX = ${MPICXX:-NOT FOUND, building without MPI support}
OPAAL = ${have_opaal:-TBB malloc NOT FOUND, building without opaal support}
PBES = ${acx_pbes:-NOT FOUND, building without PBES support}
SCOOP = ${have_scoop:-NO, either scoop was disabled or ghc/happy/ghc-pkg/hashmap/deepseq could not be found}
SPINS = ${acx_spins:-NO, JDK or Ant not found (override with --with-spins)}
SPOT = ${acx_spot:-NO, Spot not found, or disabled}
XMLTO = ${XMLTO:-NOT FOUND, not building manpages}
BOOST = ${have_boost:-NOT FOUND, not including advanced variable reordering algorithms}
VIENNACL = ${have_viennacl:-NO, not including advanced variable reordering algorithms}
PNML = ${acx_pnml:-NO, not building pnml (Petri net) front-end}
PROB = ${acx_prob:-NO, either ProB was disabled or CZMQ could not be found}
SDD = ${acx_libsdd:-NOT FOUND, not including SDDs}
Sylvan = ${have_sylvan:-NOT FOUND, not including parallel symbolic algorithms}
======================================================================
EOM