-
Notifications
You must be signed in to change notification settings - Fork 48
/
configure.ac
1718 lines (1438 loc) · 76.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
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
################################################################################
# #
# Checking common prerequisites #
# #
################################################################################
AC_PREREQ(2.57)
AC_INIT(PandA, 2024.03, panda-info@polimi.it)
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([-Wno-portability 1.9 tar-pax subdir-objects])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_SRCDIR([configure.ac])
AC_DISABLE_SHARED
#AC_DISABLE_STATIC
AC_CONFIG_MACRO_DIR(etc/macros)
#Flags have to be emptied since AC_PROG_CXX and AC_PROG_CC set them to "-g -O2"
: ${CFLAGS=""}
: ${CXXFLAGS=""}
CFLAGS_EXT=-O2
CXXFLAGS_EXT=-O2
CXXFLAGS_EXTFPLL=-O2
CXXFLAGS_STD=-O2
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_DEFINE_UNQUOTED(HOST_GCC, "${CC}", "Define the host compiler")
AC_PROG_CPP
AC_PROG_AWK
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AM_PROG_LEX
AC_PROG_YACC
AC_PROG_F77
AC_ARG_ENABLE(clanglibcpp, [ --enable-clanglibcpp Clang is going to use libc++ ], [panda_clanglibcpp="$enableval"], [panda_clanglibcpp="no"])
AC_ARG_ENABLE(oldclangabi, [ --enable-oldclangabi Clang plugins are compiled with the old abi ], [panda_clangoldabi="$enableval"], [panda_clangoldabi="no"])
###################### libc++ support #######################
if test "x$panda_clanglibcpp" = xyes; then
CXXFLAGS+=" -stdlib=libc++ "
if test "x$panda_clangoldabi" = xyes; then
CXXFLAGS+=-D_GLIBCXX_USE_CXX11_ABI=0
fi
CXXFLAGS_EXT+=" -stdlib=libc++ "
if test "x$panda_clangoldabi" = xyes; then
CXXFLAGS_EXT+=-D_GLIBCXX_USE_CXX11_ABI=0
fi
CXXFLAGS_STD+=" -stdlib=libc++ "
if test "x$panda_clangoldabi" = xyes; then
CXXFLAGS_STD+=-D_GLIBCXX_USE_CXX11_ABI=0
fi
fi
# Check if compiler support c++17
AC_COMPILE_STDCXX_17
# Check if compiler support std::hexfloat
AC_HEXFLOAT
############################### c++17 checking ##############################
if test "x$ac_cv_cxx_compile_cxx17_native" = xno; then
if test "x$ac_cv_cxx_compile_cxx17_cxx" = xyes; then
CXXFLAGS+=" --std=c++17 "
CXXFLAGS_EXT+=" --std=c++17 "
CXXFLAGS_STD+=" --std=c++17 "
elif test "x$ac_cv_cxx_compile_cxx17_gxx" = xyes; then
CXXFLAGS+=" --std=g++17 "
CXXFLAGS_EXT+=" --std=g++17 "
CXXFLAGS_STD+=" --std=g++17 "
elif test "x$ac_cv_cxx_compile_cxx17_cxx1z" = xyes; then
CXXFLAGS+=" --std=c++1z "
CXXFLAGS_EXT+=" --std=c++1z "
CXXFLAGS_STD+=" --std=c++1z "
else
AC_MSG_ERROR("Compiler does not support C++17")
fi
fi
AC_SUBST(CXXFLAGS_STD)
AM_CONDITIONAL(BUILD_MOCKTURTLE, test "x$ac_cv_cxx_compile_cxx17_native" = xyes || test "x$ac_cv_cxx_compile_cxx17_cxx" = xyes || test "x$ac_cv_cxx_compile_cxx17_gxx" = xyes || test "x$ac_cv_cxx_compile_cxx17_cxx1z" = xyes)
AM_PO_SUBDIRS
# we need bison instead of yacc
YACC_TRIMMED=$(echo ${YACC}| sed 's/-y//;s/ //')
if test ${YACC_TRIMMED} != bison; then
AC_MSG_ERROR(bison is required)
fi
#and flex instead of lex
if test "$LEX" != flex; then
AC_MSG_ERROR(flex is required)
fi
#now we take care of the different versions of bison
bison_27=no
BISON_VERSION=$(${YACC} -V | head -n1 | awk '{print $4}')
AS_VERSION_COMPARE(${BISON_VERSION}, "2.7", bison_27=no, bison_27=yes, bison_27=yes)
if test "$bison_27" = yes; then
AC_DEFINE(HAVE_BISON_2_7_OR_GREATER, 1, "Define yacc greater or equal than 2.7")
fi
AM_CONDITIONAL(BISON_2_7_OR_GREATER, test "x$bison_27" = xyes)
#now we take care of the different versions of flex
LEX_VERSION=$(${LEX} -V)
AS_VERSION_COMPARE($LEX_VERSION, "2.5.34", flex_2_5_34=no, flex_2_5_34=yex, flex_2_5_34=yes)
if test "$flex_2_5_34" = yes; then
# This is flex >= 2.5.34
AC_DEFINE(HAVE_FLEX_2_5_34_OR_GREATER, 1, "Define flex greater or equal than 2.5.35")
fi
AS_VERSION_COMPARE($LEX_VERSION, "2.5.35", flex_2_5_35=no, flex_2_5_35=yex, flex_2_5_35=yes)
if test "$flex_2_5_35" = yes; then
# This is flex >= 2.5.35
AC_DEFINE(HAVE_FLEX_2_5_35_OR_GREATER, 1, "Define flex greater or equal than 2.5.35")
fi
# Checks for libraries.
AC_CHECK_LIB([m], [pow])
#AC_CHECK_LIB([dl], [dlopen])
AC_CHECK_LIB([z], [gzopen])
# Checks for header files.
AC_FUNC_ALLOCA
AC_CHECK_HEADERS([float.h limits.h sys/timeb.h zlib.h stddef.h getopt.h ], [],[AC_MSG_ERROR("$ac_header not found")])
AC_HEADER_SYS_WAIT
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_C_VOLATILE
AC_CHECK_SIZEOF(unsigned long)
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_PROG_GCC_TRADITIONAL
AC_FUNC_STRTOD
AC_CHECK_FUNCS([floor memset modf pow sqrt strchr strcasecmp ])
AC_LANG_PUSH([C++])
AC_STRUCT_TM
AC_LIBTOOL_DLOPEN
AC_DISABLE_FAST_INSTALL
AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL
#check MinGW compilation
MINGW_AC_WIN32_NATIVE_HOST
AM_CONDITIONAL([MINGW64], [test x$mingw_cv_win32_host = xyes])
if test "x$mingw_cv_win32_host" = xyes; then
CXXFLAGS+=" -idirafter /usr/include "
fi
#check doxygen
test -z "$DOXYGEN" && AC_PATH_PROG(DOXYGEN, doxygen, doxygen, )
AC_CHECK_PROG(DOX_HAVE_DOT,dot,YES,NO)
#check svnversion
AC_CHECK_PROG(HAVE_SVNVERSION, svnversion, yes, no)
AC_SUBST(DOX_HAVE_DOT)
DOCUMENTATION_OUTPUTDIR=doc
AC_SUBST(DOCUMENTATION_OUTPUTDIR)
#check BOOST
AX_BOOST_BASE([1.48.0])
AC_DEFINE_UNQUOTED(BOOST_INCLUDE_DIR, "${BOOST_DIR}", "Define the boost include dir")
AC_LINUX_DISTRO
TOPSRCDIR=$(cd $srcdir; pwd)
BUILDDIR=$(pwd)
LAST_DIRECTORY=`echo "$TOPSRCDIR" | awk -F/ '{print $NF}'`
GIT_WORKTREE_PATH=$(echo $TOPSRCDIR/.git)
GIT_PRIVATE_PANDA=no
AC_MSG_CHECKING([if directory is a git repository])
if test -d $GIT_WORKTREE_PATH && test -f $GIT_WORKTREE_PATH/HEAD && test -f $GIT_WORKTREE_PATH/index; then
AC_MSG_RESULT([yes])
GIT_REMOTE_URL=$(git --git-dir $GIT_WORKTREE_PATH config --get remote.origin.url)
AC_MSG_CHECKING([if this is clone of ferrandi/private-PandA-bambu.git])
if [[[ $GIT_REMOTE_URL == *"private-PandA-bambu.git"* ]]]; then
GIT_PRIVATE_PANDA=yes
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no: $GIT_REMOTE_URL])
fi
else
AC_MSG_RESULT([no])
AC_MSG_CHECKING([if directory is a git worktree])
if test -f $TOPSRCDIR/.git; then
GIT_WORKTREE_PATH=$(head -1 $TOPSRCDIR/.git | sed -e 's/^gitdir://g')
if test -d $GIT_WORKTREE_PATH && test -f $GIT_WORKTREE_PATH/HEAD && test -f $GIT_WORKTREE_PATH/index; then
AC_MSG_RESULT([yes])
fi
else
AC_MSG_RESULT([no])
fi
fi
AM_CONDITIONAL(INSIDE_GIT, test -d $GIT_WORKTREE_PATH && test -f $GIT_WORKTREE_PATH/HEAD && test -f $GIT_WORKTREE_PATH/index)
AC_SUBST(GIT_WORKTREE_PATH)
if test $TOPSRCDIR = $PWD; then
echo "";
echo " ERROR: Build and srcs dir must be different";
echo "";
exit 1;
fi
if test "$prefix" = "NONE"; then
PREFIX=$ac_default_prefix
else
PREFIX=$prefix
fi
AC_DEFINE_UNQUOTED(PANDA_INCLUDE_INSTALLDIR, "${prefix}/include", "Define where panda includes are installed")
AC_DEFINE_UNQUOTED(PANDA_LIB_INSTALLDIR, "${prefix}/lib", "Define where panda libraries are installed")
AC_DEFINE_UNQUOTED(PANDA_DATA_INSTALLDIR, "${prefix}/share", "Define where panda data are installed")
################################################################################
# #
# Architecture options #
# #
################################################################################
############### x86_64 checking ############################
if test "$target_cpu" = x86_64; then
AC_DEFINE(X86_64, 1, "Define if host system is 64 bits")
fi
AM_CONDITIONAL(TARGET_X86_64, test "$target_cpu" = x86_64)
################################################################################
# #
# Configure options #
# #
################################################################################
#To build a NEW_PROJECT:
#check the configure parameters to see if the --enable-NEW_PROJECT has been activated
#and set the panda_USE_NEW_PROJECTD variable to $enableval which is the empty string or yes
AC_ARG_ENABLE(all, [ --enable-all compile all tools], [panda_USE_ALL="$enableval"])
#tools
AC_ARG_ENABLE(spider, [ --enable-spider compile spider tool for parse profiling analysis data], [panda_USE_SPIDER="$enableval"])
AC_ARG_ENABLE(bambu, [ --enable-bambu compile bambu tool for High-Level Synthesis], [panda_USE_BAMBU="$enableval"], [panda_USE_BAMBU="yes"])
AC_ARG_ENABLE(eucalyptus, [ --enable-eucalyptus compile eucalyptus tool for RTL characterization], [panda_USE_EUCALYPTUS="$enableval"])
AC_ARG_ENABLE(treegcc, [ --enable-treegcc compile tree-panda-gcc tool for gimple compilation], [panda_USE_TREE_PANDA_GCC="$enableval"])
#Ext libraries tools
#synthesis wrappers
#aid stuff
AC_ARG_ENABLE(release, [ --enable-release compile the source code for release (default enabled)], [panda_RELEASE="$enableval"], [panda_RELEASE="yes"])
AC_ARG_ENABLE(unordered, [ --enable-unordered compile the source code with unordered data structure (default disabled)], [panda_UNORDERED="$enableval"], [panda_UNORDERED="no"])
AC_ARG_ENABLE(Werror, [ --enable-Werror compile the source code with Werror option; a subset of possible warning is considered], [panda_WERROR="$enableval"])
AC_ARG_ENABLE(asserts, [ --disable-asserts disable most of the runtime check (default enabled)], [panda_ASSERTS="$enableval"], [panda_ASSERTS="yes"])
AC_ARG_ENABLE(debug, [ --enable-debug compile the source code with debug symbols (default disabled)], [panda_DEBUG="$enableval"], [panda_DEBUG="no"])
AC_ARG_ENABLE(opt, [ --enable-opt compile the source code with -O2 (default enabled) ], [panda_OPT="$enableval"], [panda_OPT="yes"])
AC_ARG_ENABLE(allstatic, [ --enable-allstatic create static binaries ], [panda_ALLSTATIC="$enableval"], [panda_ALLSTATIC="yes"])
AC_ARG_ENABLE(32bits, [ --enable-32bits create 32bits binaries ], [panda_32BITS="$enableval"])
AC_ARG_ENABLE(experimental, [ --enable-experimental compile the source code with experimental features], [panda_USE_EXPERIMENTAL="$enableval"], [panda_USE_EXPERIMENTAL="no"])
#etc/ext stuff
AC_ARG_ENABLE(flopoco, [ --enable-flopoco compile FloPoCo external library], [panda_USE_FLOPOCO="$enableval"])
################################################################################
# #
# Variable initialization #
# #
################################################################################
panda_USE_GENERIC_BASHBACKEND=no
panda_USE_I386_GCC=no;
panda_USE_LIBBAMBU=no;
panda_USE_LIBBDD=no
panda_USE_LIB_ALGORITHMS=no;
panda_USE_LIB_BACKEND=no;
panda_USE_LIB_BEHAVIOR=no;
panda_USE_LIB_CIRCUIT=no;
panda_USE_LIB_CLIQUECOVER=no;
panda_USE_LIB_DOMINANCE=no;
panda_USE_LIB_FROM_C=no;
panda_USE_LIB_FROM_DATA_XML=no;
panda_USE_LIB_GRAPH=no;
panda_USE_LIB_HLS=no;
panda_USE_LIB_HOST_PROFILING=no;
panda_USE_LIB_ILP=no;
panda_USE_LIB_LIBRARY_CHARACTERIZATION=no;
panda_USE_LIB_LOOPS=no;
panda_USE_LIB_PARSER=no;
panda_USE_LIB_POLIXML=no;
panda_USE_LIB_PRAGMA=no;
panda_USE_LIB_RTL_CHARACTERIZATION=no;
panda_USE_LIB_SIMULATION_WRAPPER=no;
panda_USE_LIB_SYNTHESIS_WRAPPER=no;
panda_USE_LIB_TECHNOLOGY=no;
panda_USE_LIB_TO_C=no;
panda_USE_LIB_TO_DATAFILE=no;
panda_USE_LIB_TREE=no;
panda_USE_LIB_TREE_MANIPULATION=no;
panda_USE_LIB_UTILITY=no;
panda_USE_LIB_VCD=no;
panda_USE_LIB_VCD_PARSER=no;
panda_USE_LIB_WRAPPER=no;
MIN_GCC_VERSION=0.0.0
MAX_GCC_VERSION=9.9.9
MIN_CLANG_VERSION=0.0.0
MAX_CLANG_VERSION=100.9.9
################################################################################
# #
# Implicated by configure options #
# #
################################################################################
if test "x$panda_USE_ALL" = xyes; then
panda_USE_BAMBU=yes;
panda_USE_EUCALYPTUS=yes;
panda_USE_SPIDER=yes;
fi
if test "x$panda_USE_BAMBU" != xyes && test "x$panda_USE_SPIDER" != xyes && test "x$panda_USE_EUCALYPTUS" != xyes; then
echo "";
echo " ERROR: No tools selected. Please configure with --enable-<tool> or --enable-all";
echo "";
exit 1;
fi
if test "x$panda_WERROR" != xno && test "x$GIT_PRIVATE_PANDA" == xyes; then
panda_WERROR=yes;
fi
################################################################################
# #
# Tool implications #
# #
################################################################################
if test "x$panda_USE_EXPERIMENTAL" = xyes; then
panda_RELEASE=no;
fi
################ Bambu checking ##############################
if test "x$panda_USE_BAMBU" = xyes; then
panda_USE_ABSEIL=yes;
panda_USE_BAMBU_RESULTS_XML=yes;
panda_USE_GENERIC_BASHBACKEND=yes;
panda_USE_GLPK=yes;
panda_USE_I386_GCC=yes;
panda_USE_LIBBAMBU=yes;
panda_USE_LIB_FROM_C=yes;
panda_USE_LIB_FROM_PRAGMA=yes;
panda_USE_LIB_GRAPH=yes;
panda_USE_LIB_HLS=yes;
panda_USE_LIB_HOST_PROFILING=yes;
panda_USE_LIB_PRAGMA=yes;
panda_USE_LIB_SIMULATION_WRAPPER=yes;
panda_USE_LIB_SYNTHESIS_WRAPPER=yes;
panda_USE_LIB_TECHNOLOGY=yes;
panda_USE_LIB_TO_C=yes;
panda_USE_LIB_TO_HDL=yes;
panda_USE_LIB_VCD=yes;
panda_USE_LIB_VCD_PARSER=yes;
panda_USE_PARAMETER=yes;
panda_USE_SPIDER=yes;
panda_USE_SYNTHESIS_TOOL=yes;
panda_USE_TASTE=yes;
panda_USE_TREE_PANDA_GCC=yes;
AS_VERSION_COMPARE($MIN_GCC_VERSION, [4.9.0], [MIN_GCC_VERSION=4.9.0],,)
AS_VERSION_COMPARE($MAX_GCC_VERSION, [9.0.0],,,[MAX_GCC_VERSION=9.0.0])
AS_VERSION_COMPARE($MIN_CLANG_VERSION, [4.0.0], [MIN_CLANG_VERSION=4.0.0],,)
AS_VERSION_COMPARE($MAX_CLANG_VERSION, [17.0.0],,,[MAX_CLANG_VERSION=17.0.0])
#characterization requires to configure at least one synthesis toolchain
if test "x$panda_USE_GENERIC_BASHBACKEND" = xyes; then
AC_APPEND(ENABLE_DOC,"EUCALYPTUS")
panda_USE_EUCALYPTUS=yes;
fi
AC_CHECK_HEADERS([bdd.h fdd.h bvec.h ], [panda_USE_LIBBDD=yes],[ echo "$ac_header not found: Clang/LLVM Point-to analysis will not be enabled"])
if test "x$panda_USE_LIBBDD" = xyes; then
AC_DEFINE(HAVE_LIBBDD, 1, "Define if bambu is built")
fi
### bambu experimental packages ###
if test "x$panda_USE_EXPERIMENTAL" = xyes; then
panda_USE_LIB_TO_DATAFILE=yes;
#in experimental mode, the FloPoCo library is activated by default
if test "x$panda_USE_FLOPOCO" != xno; then
panda_USE_FLOPOCO=yes;
fi
else
panda_USE_COIN_OR=no;
fi
AC_APPEND(ENABLE_DOC,"BAMBU")
fi
AM_CONDITIONAL(BUILD_BAMBU, test "x$panda_USE_BAMBU" = xyes)
AM_CONDITIONAL(BUILD_PTAA, test "x$panda_USE_LIBBDD" = xyes)
################ Eucalyptus checking ##############################
if test "x$panda_USE_EUCALYPTUS" = xyes; then
panda_USE_ABSEIL=yes;
panda_USE_LIB_CIRCUIT=yes;
panda_USE_LIB_DESIGN_FLOWS=yes;
panda_USE_LIB_TO_HDL=yes;
panda_USE_LIB_TECHNOLOGY=yes;
panda_USE_LIB_RTL_CHARACTERIZATION=yes;
panda_USE_LIB_SYNTHESIS_WRAPPER=yes;
panda_USE_LIB_UTILITY=yes;
if test "x$panda_USE_FLOPOCO" != xno; then
panda_USE_FLOPOCO=yes;
fi
AC_DEFINE(HAVE_EUCALYPTUS_BUILT, 1, "Define if eucalyptus is built")
fi
AM_CONDITIONAL(BUILD_EUCALYPTUS, test "x$panda_USE_EUCALYPTUS" = xyes)
################ Spider checking ##############################
if test "x$panda_USE_SPIDER" = xyes; then
panda_USE_ABSEIL=yes;
panda_USE_BAMBU_RESULTS_XML=yes;
panda_USE_LIB_FROM_DATA_XML=yes;
panda_USE_LIB_TO_DATAFILE=yes;
panda_USE_PARAMETER=yes;
panda_USE_LIB_FROM_DISCREPANCY=yes;
AC_APPEND(ENABLE_DOC,"SPIDER")
AC_DEFINE(HAVE_SPIDER_BUILT, 1, "Define if spider is built")
if test "x$panda_USE_EXPERIMENTAL" = xyes; then
panda_USE_SOURCE_CODE_STATISTICS_XML=yes;
panda_USE_LIB_TREE=yes;
fi
fi
AM_CONDITIONAL(BUILD_SPIDER, test "x$panda_USE_SPIDER" = xyes)
#################### PandA tree gcc checking #######################
if test "x$panda_USE_TREE_PANDA_GCC" = xyes; then
AC_DEFINE(HAVE_TREE_PANDA_GCC_BUILT, 1, "Define if tree-panda-gcc is built")
fi
AM_CONDITIONAL(BUILD_TREE_PANDA_GCC, test "x$panda_USE_TREE_PANDA_GCC" = xyes)
##################### Library implications #########################
if test "x$panda_USE_GLPK" = xno && test "x$panda_USE_COIN_OR" = xyes; then
panda_USE_GLPK=yes;
fi
if test "x$panda_USE_GLPK" = xyes || test "x$panda_USE_COIN_OR" = xyes; then
panda_USE_LIB_ILP=yes;
fi
if test "x$panda_USE_LIB_FROM_C" = xyes && test "x$panda_USE_I386_GCC" != xyes; then
panda_USE_I386_GCC=yes;
fi
if test "x$panda_USE_LIB_HLS" = xyes; then
panda_USE_LIB_CIRCUIT=yes;
panda_USE_LIB_CLIQUECOVER=yes;
panda_USE_LIB_TECHNOLOGY=yes;
fi
if test "x$panda_USE_LIB_FROM_C" = xyes; then
panda_USE_LIB_BEHAVIOR=yes;
panda_USE_LIB_DOMINANCE=yes;
panda_USE_LIB_FRONTEND_ANALYSIS=yes;
panda_USE_LIB_LOOPS=yes;
panda_USE_LIB_TREE=yes;
panda_USE_LIB_TREE_MANIPULATION=yes;
panda_USE_LIB_TREE_PARSER=yes;
fi
if test "x$panda_USE_LIB_FRONTEND_ANALYSIS" = xyes; then
panda_USE_LIB_DESIGN_FLOWS=yes;
panda_USE_LIB_POLIXML=yes;
fi
if test "x$panda_USE_LIB_TECHNOLOGY" = xyes; then
panda_USE_LIB_POLIXML=yes;
fi
if test "x$panda_USE_PARAMETER" = xyes; then
panda_USE_LIB_POLIXML=yes;
panda_USE_LIB_UTILITY=yes;
fi
if test "x$panda_USE_LIB_POLIXML" = xyes; then
panda_USE_LIB_FROM_POLIXML=yes;
fi
if (test "x$panda_USE_LIB_HLS" = xyes && (test "x$panda_USE_GENERIC_BASHBACKEND" = xyes)) then
panda_USE_LIB_RTL_CHARACTERIZATION=yes;
fi
if test "x$panda_USE_SYNTHESIS_TOOL" = xyes || test "x$panda_USE_CORE_TOOLS" = xyes || test "x$panda_USE_GENERIC_BASHBACKEND" = xyes; then
panda_USE_LIB_SYNTHESIS_WRAPPER=yes;
fi
if test "x$panda_USE_LIB_SYNTHESIS_WRAPPER" = xyes; then
panda_USE_LIB_TO_HDL=yes;
fi
if test "x$panda_USE_LIB_FROM_SOURCE_CODE_STATISTICS" = xyes; then
panda_USE_SOURCE_CODE_STASTICS_XML=yes;
fi
if test "x$panda_USE_LIB_FROM_PRAGMA" = xyes || test "x$panda_USE_TASTE" = xyes; then
panda_USE_SOURCE_CODE_MANIPULATION=yes
fi
if test "x$panda_USE_LIB_RTL_CHARACTERIZATION" = xyes; then
panda_USE_LIB_LIBRARY_CHARACTERIZATION=yes;
fi
if test "x$panda_USE_LIB_TO_DATAFILE" = xyes || test "x$panda_USE_LIB_DESIGN_FLOWS" = xyes; then
panda_USE_LIB_GRAPH=yes;
fi
if test "$DISTRO" = "arch"; then
panda_ALLSTATIC=no;
fi
if test "x$panda_USE_TASTE" = xyes; then
panda_USE_LIB_FROM_AADL_ASN=yes;
fi
###################### libc++ support #######################
if test "x$panda_clanglibcpp" = xyes; then
AC_DEFINE(EXTRA_CLANGPP_COMPILER_OPTION, " -stdlib=libc++ ", "Define extra compiler options")
else
AC_DEFINE(EXTRA_CLANGPP_COMPILER_OPTION, "", "Define extra compiler options")
fi
###################### Release and experimental checking #######################
if test "x$panda_RELEASE" = xyes; then
AC_DEFINE(RELEASE, 1, "Define if a release is built")
AC_DEFINE(NPROFILE, 1, "Define if profile is disabled")
CFLAGS+=" -DNDEBUG "
CFLAGS_EXT+=" -DNDEBUG "
CXXFLAGS+=" -DNDEBUG "
CXXFLAGS_EXT+=" -DNDEBUG "
CXXFLAGS_EXTFPLL+=" -DNDEBUG "
fi
AM_CONDITIONAL(BUILD_RELEASE, test "x$panda_RELEASE" = xyes)
if test "x$panda_USE_EXPERIMENTAL" = xyes; then
AC_DEFINE(HAVE_EXPERIMENTAL, 1, "Define if experimental features are added")
fi
AM_CONDITIONAL(BUILD_LIB_EXPERIMENTAL, test "x$panda_USE_EXPERIMENTAL" = xyes)
if test "x$panda_UNORDERED" = xyes; then
AC_DEFINE(HAVE_UNORDERED, 1, "Define if unordered data structure are used")
fi
if test "x$panda_ASSERTS" = xyes; then
AC_DEFINE(HAVE_ASSERTS, 1, "Define if assertions are enabled")
fi
################################################################################
# #
# External tools and libraries #
# #
################################################################################
################################### 32bits #####################################
if test "x$panda_32BITS" != x; then
CFLAGS+=" -m32 "
CFLAGS_EXT+=" -m32 "
CXXFLAGS+=" -m32 "
CXXFLAGS_EXT+=" -m32 "
CXXFLAGS_EXTFPLL+=" -m32 "
LDFLAGS+=" -m32 "
fi
if test ! -d ext ; then
mkdir ext;
fi
################################# ABSEIL stuff ################################
if test "x$panda_USE_ABSEIL" = xyes; then
$TOPSRCDIR/etc/macros/panda_config_subdir.sh ext/abseil-cpp $ac_configure_args "'CXXFLAGS=${CXXFLAGS_EXT}'" "'CFLAGS=${CFLAGS_EXT}'" "'LDFLAGS=$LDFLAGS'"
if test $? != 0; then
AC_MSG_ERROR("Error in abseil configuration")
fi
AC_DEFINE(HAVE_ABSEIL, 1, "Define if abseil is used")
ABSEIL_DIR="$TOPSRCDIR/ext/abseil-cpp"
ABSEIL_OBJDIR="ext/abseil-cpp"
fi
AM_CONDITIONAL(BUILD_ABSEIL, test "x$panda_USE_ABSEIL" = xyes)
AC_SUBST(ABSEIL_DIR)
################################# Coin-Or stuff ################################
if test "x$panda_USE_COIN_OR" = xyes; then
# Checks for libraries.
AX_BLAS()
BLAS_LIBS="$BLAS_LIBS"
AX_LAPACK()
LAPACK_LIBS="$LAPACK_LIBS"
AC_CHECK_LIB([bz2],[BZ2_bzReadOpen], [echo "Checking for libbz2... yes"], [echo "Checking for libbz2... no"; AC_MSG_ERROR("libbz2 not found")])
$TOPSRCDIR/etc/macros/panda_config_subdir.sh ext/Coin-Cbc $ac_configure_args "'CXXFLAGS=${CXXFLAGS_EXT}'" "'CFLAGS=${CFLAGS_EXT}'" "'LDFLAGS=$LDFLAGS'"
if test $? != 0; then
AC_MSG_ERROR("Error in Coin-Cbc configuration")
fi
AC_DEFINE(HAVE_COIN_OR, 1, "Define if coin-or is used")
COIN_OR_DIR="$TOPSRCDIR/Coin-Cbc"
COIN_OR_OBJDIR="ext/Coin-Cbc"
fi
AC_SUBST(COIN_OR_DIR)
AC_SUBST(COIN_OR_OBJDIR)
AC_SUBST(BLAS_LIBS)
AC_SUBST(FLIB)
AC_SUBST(LAPACK_LIBS)
AM_CONDITIONAL(BUILD_COIN_OR, test "x$panda_USE_COIN_OR" = xyes)
################ FloPoCo stuff #############################
if test "x$panda_USE_FLOPOCO" = xyes; then
AC_CHECK_LIB([gmpxx], [main], [HAVE_LIBGMPXX=yes], [])
AC_CHECK_LIB([gmp], [main], [HAVE_LIBGMP=yes], [])
AC_CHECK_LIB([mpfr], [main], [HAVE_LIBMPFR=yes], [])
if test "x$panda_32BITS" != x; then
LIBS="-L/usr/lib32/ $LIBS";
fi
AC_CHECK_HEADERS([gmpxx.h gmp.h mpfr.h])
if test -z $HAVE_LIBMPFR || test -z $HAVE_LIBGMP || test -z $HAVE_LIBGMPXX; then
AC_MSG_ERROR(either libmpfr, libgmp or libgmpxx is missing)
fi
$TOPSRCDIR/etc/macros/panda_config_subdir.sh ext/libfplll-4.0.3 $ac_configure_args "'CXXFLAGS=${CXXFLAGS_EXTFPLL}'" "'CFLAGS=${CFLAGS_EXT}'" "'LDFLAGS=$LDFLAGS'" --prefix=${prefix}
if test $? != 0; then
AC_MSG_ERROR("Error in fplll configuration")
fi
cd ext/libfplll-4.0.3
make
make install
if test $? != 0; then
AC_MSG_ERROR("Error in fplll compilation")
fi
cd ../..
AC_DEFINE(HAVE_SOLLYA, 1, "Define if Sollya is used")
AC_DEFINE(HAVE_HOTBM, 1, "")
AC_DEFINE(HAVE_LNS, 1, "LNS available")
$TOPSRCDIR/etc/macros/panda_config_subdir.sh ext/sollya $ac_configure_args "'CFLAGS=${CFLAGS_EXT}'" "'CXXFLAGS=${CXXFLAGS_EXTFPLL} -I${prefix}/include'" "'LDFLAGS=${LDFLAGS} -L${prefix}/lib'";
if test $? != 0; then
AC_MSG_ERROR("Error in sollya configuration")
fi
cd ext/sollya
make
make install
if test $? != 0; then
AC_MSG_ERROR("Error in sollya compilation")
fi
cd ../..
$TOPSRCDIR/etc/macros/panda_config_subdir.sh ext/flopoco $ac_configure_args "'CXXFLAGS=${CXXFLAGS_EXT}'" "'CFLAGS=${CFLAGS_EXT}'" "'LDFLAGS=${LDFLAGS} -L$BUILDDIR/ext/sollya/.libs'"
if test $? != 0; then
AC_MSG_ERROR("Error in flopoco configuration")
fi
AC_DEFINE(HAVE_FLOPOCO, 1, "Define if flopoco is used")
FLOPOCO_DIR="$TOPSRCDIR/ext/flopoco"
FLOPOCO_OBJDIR="$BUILDDIR/ext/flopoco"
fi
AM_CONDITIONAL(BUILD_FLOPOCO, test "x$panda_USE_FLOPOCO" = xyes)
AC_SUBST(FLOPOCO_DIR)
AC_SUBST(FLOPOCO_OBJDIR)
################################## GLPK stuff ##################################
LIB_SUITESPARSECONFIG=
AM_CONDITIONAL(BUILD_GLPK, test "x$panda_USE_GLPK" = xyes)
if test "x$panda_USE_GLPK" = xyes; then
AC_LANG_PUSH([C])
if test "${DISTRO:0:8}" != "centos_6" && test "${DISTRO:0:6}" != "rhel_7" && test "${DISTRO:0:8}" != "oracle_7" && test "$DISTRO" != "ubuntu_12.04"; then
LIB_SUITESPARSECONFIG=-lsuitesparseconfig
AC_CHECK_LIB([suitesparseconfig],[SuiteSparse_malloc], [echo "Checking for libsuitesparseconfig... yes"], [echo "Checking for libsuitesparseconfig... no"; AC_MSG_ERROR("libsuitesparseconfig not found")])
fi
AC_CHECK_LIB([amd],[amd_defaults], [echo "Checking for libamd... yes"], [echo "Checking for libamd... no"; AC_MSG_ERROR("libamd not found")])
AC_CHECK_LIB([colamd],[symamd], [echo "Checking for libcolamd... yes"], [echo "Checking for libcolamd... no"; AC_MSG_ERROR("libcolamd not found")], [${LIB_SUITESPARSECONFIG}])
AC_CHECK_LIB([ltdl],[lt_dlerror], [echo "Checking for libltdl... yes"], [echo "Checking for libltd... no"; AC_MSG_ERROR("libltdl not found")])
AC_CHECK_LIB([glpk],[glp_simplex], [echo "Checking for libglpk... yes"], [echo "Checking for libglpk... no"; AC_MSG_ERROR("libglpk not found")], [-lamd -lcolamd -lltdl -lgmp ${LIB_SUITESPARSECONFIG}])
AC_LANG_POP([C])
AC_CHECK_HEADER([glpk.h],GLPK_NESTED_DIR=0,GLPK_NESTED_DIR=-1)
if test "x$GLPK_NESTED_DIR" != "x0"; then
AC_CHECK_HEADER([glpk/glpk.h],GLPK_NESTED_DIR=1, AC_MSG_ERROR("glpk.h not found"))
fi
AC_DEFINE_UNQUOTED(HAVE_GLPK_NESTED, ${GLPK_NESTED_DIR}, "")
AC_DEFINE(HAVE_GLPK, 1, "Define if glpk is used")
fi
AC_SUBST(LIB_SUITESPARSECONFIG)
################################ LP-SOLVE stuff ################################
if test "x$panda_USE_LP_SOLVE" = xyes; then
USE_BFP_NAME=LUSOL
#etaPFI
#etaPFI2
#GLPK
#LUSOL
if test ! -f $TOPSRCDIR/ext/lpsolve5/lp_solve_USE_$USE_BFP_NAME; then
rm -f $TOPSRCDIR/ext/lpsolve5/lp_solve_USE_*
touch $TOPSRCDIR/ext/lpsolve5/lp_solve_USE_$USE_BFP_NAME
if test -d ext/lpsolve5/bfp; then
(cd ext/lpsolve5/bfp; make clean;)
fi
touch $TOPSRCDIR/ext/lpsolve5/configure.in
fi
if test $USE_BFP_NAME == etaPFI2; then
BFP_NAME="bfp_etaPFI"
else
BFP_NAME="bfp_$USE_BFP_NAME"
fi
$TOPSRCDIR/etc/macros/panda_config_subdir.sh ext/lpsolve5 $ac_configure_args "'CXXFLAGS=${CXXFLAGS_EXT}'" "'CFLAGS=${CFLAGS_EXT}'" "'LDFLAGS=$LDFLAGS'"
AC_DEFINE(HAVE_LP_SOLVE, 1, "Define if lp solver is used")
LP_SOLVE_DIR="$TOPSRCDIR/lpsolve5"
fi
AC_SUBST(BFP_NAME)
AC_SUBST(LP_SOLVE_DIR)
AM_CONDITIONAL(BUILD_LP_SOLVE, test "x$panda_USE_LP_SOLVE" = xyes)
################################# TASTE ################################
if test "x$panda_USE_TASTE" = xyes; then
AC_DEFINE(HAVE_TASTE, 1, "Define if TASTE has to be used")
AC_DEFINE_UNQUOTED(GRLIB_DIR, "${prefix}/lib/GRLIB", "Define the GRLIB directory")
fi
AM_CONDITIONAL(BUILD_TASTE, test "x$panda_USE_TASTE" = xyes)
AM_CONDITIONAL(USE_GRLIB, test "x$panda_USE_TASTE" = xyes)
#################################### Ext Libraries #############################
if test "x$ac_cv_cxx_compile_cxx17_native" = xyes || test "x$ac_cv_cxx_compile_cxx17_cxx" = xyes || test "x$ac_cv_cxx_compile_cxx17_gxx" = xyes || test "x$ac_cv_cxx_compile_cxx17_cxx1z" = xyes || test "x$panda_USE_ABSEIL" = xyes || test "x$panda_USE_COIN_OR" = xyes || test "x$panda_USE_FLOPOCO" = xyes || test "x$panda_USE_LP_SOLVE" = xyes; then
panda_USE_LIB_EXT=yes;
fi
AM_CONDITIONAL(BUILD_EXT, test "x$panda_USE_LIB_EXT" = xyes)
################################################################################
# #
# . #
# #
################################################################################
################ Makefile creation #############################################
AC_CONFIG_FILES(
Makefile
panda_regressions/Makefile
panda_regressions/hls/Makefile
panda_unit/Makefile
examples/Makefile
documentation/Makefile
documentation/img/Makefile
src/Makefile
style/Makefile
style/stylesheet.css
style/img/Makefile
style/img/panda.png
style/img/logoPoli.gif
)
################################################################################
# #
# src/algorithms #
# #
################################################################################
AM_CONDITIONAL(BUILD_LIB_CLIQUECOVER, test "x$panda_USE_LIB_CLIQUECOVER" = xyes)
AM_CONDITIONAL(BUILD_LIB_DOMINANCE, test "x$panda_USE_LIB_DOMINANCE" = xyes)
AM_CONDITIONAL(BUILD_LIB_LOOPS, test "x$panda_USE_LIB_LOOPS" = xyes)
if test "x$panda_USE_LIB_CLIQUECOVER" = xyes || test "x$panda_USE_LIB_DOMINANCE" = xyes || test "x$panda_USE_LIB_LOOPS" = xyes; then
panda_USE_LIB_ALGORITHMS=yes;
fi
AM_CONDITIONAL(BUILD_LIB_ALGORITHMS, test "x$panda_USE_LIB_ALGORITHMS" = xyes)
################################################################################
# #
# src/behavior #
# #
################################################################################
################################ behavior stuff ################################
if test "x$panda_USE_LIB_BEHAVIOR" = xyes; then
AC_DEFINE(HAVE_BEHAVIOR_BUILT, 1, "Define if behavior library is built")
fi
AM_CONDITIONAL(BUILD_LIB_BEHAVIOR, test "x$panda_USE_LIB_BEHAVIOR" = xyes)
############################# host profiling stuff #############################
if test "x$panda_USE_LIB_HOST_PROFILING" = xyes; then
AC_DEFINE(HAVE_HOST_PROFILING_BUILT, 1, "Define if host profiling library is built")
fi
AM_CONDITIONAL(BUILD_LIB_HOST_PROFILING, test "x$panda_USE_LIB_HOST_PROFILING" = xyes)
################################################################################
# #
# src/circuit #
# #
################################################################################
if test "x$panda_USE_LIB_CIRCUIT" = xyes; then
AC_DEFINE(HAVE_CIRCUIT_BUILT, 1, "Define if circuit library is built")
fi
AM_CONDITIONAL(BUILD_LIB_CIRCUIT, test "x$panda_USE_LIB_CIRCUIT" = xyes)
################################################################################
# #
# src/constants #
# #
################################################################################
if test "x$panda_USE_BAMBU_RESULTS_XML" = xyes; then
AC_DEFINE(HAVE_BAMBU_RESULTS_XML, 1, "Define if bambu results xmls are used")
fi
AM_CONDITIONAL(USE_CONSTANTS, test "x$panda_USE_CONSTANTS" = xyes)
################################################################################
# #
# src/design_flows #
# #
################################################################################
if test "x$panda_USE_LIB_BACKEND" = xyes; then
panda_USE_LIB_DESIGN_FLOWS=yes;
fi
if test "x$panda_USE_LIB_DESIGN_FLOWS" = xyes; then
AC_DEFINE(HAVE_DESIGN_FLOWS_BUILT, 1, "Define if design flows library is built")
fi
AM_CONDITIONAL(BUILD_LIB_DESIGN_FLOWS, test "x$panda_USE_LIB_DESIGN_FLOWS" = xyes)
################################################################################
# #
# src/design_flows/backend #
# #
################################################################################
################ Backend to C #########################
if test "x$panda_USE_LIB_TO_C" = xyes; then
AC_DEFINE(HAVE_TO_C_BUILT, 1, "Define if C backend library is created")
fi
AM_CONDITIONAL(BUILD_LIB_TO_C, test "x$panda_USE_LIB_TO_C" = xyes)
################ Backend to DataFile ###########################################
if test "x$panda_USE_LIB_TO_DATAFILE" = xyes; then
AC_DEFINE(HAVE_TO_DATAFILE_BUILT, 1, "Define if backend datafile library is built")
fi
AM_CONDITIONAL(BUILD_LIB_TO_DATAFILE, test "x$panda_USE_LIB_TO_DATAFILE" = xyes)
################ Backend to HDL #########################
if test "x$panda_USE_LIB_TO_HDL" = xyes; then
AC_DEFINE(HAVE_TO_HDL_BUILT, 1, "Define if HDL backend library is built")
fi
AM_CONDITIONAL(BUILD_LIB_TO_HDL, test "x$panda_USE_LIB_TO_HDL" = xyes)
################ Backend stuff #########################
if test "x$panda_USE_LIB_TO_C" = xyes || test "x$panda_USE_LIB_TO_HDL" = xyes || test "x$panda_USE_LIB_TO_DATAFILE" = xyes; then
panda_USE_LIB_BACKEND=yes;
fi
AM_CONDITIONAL(BUILD_LIB_BACKEND, test "x$panda_USE_LIB_BACKEND" = xyes)
################################################################################
# #
# src/frontend_analysis #
# #
################################################################################
if test "x$panda_USE_LIB_FRONTEND_ANALYSIS" = xyes; then
AC_DEFINE(HAVE_FRONTEND_ANALYSIS_BUILT, 1, "Define if frontend analysis library is built")
fi
AM_CONDITIONAL(BUILD_SOURCE_CODE_MANIPULATION, test "x$panda_USE_SOURCE_CODE_MANIPULATION" = xyes)
AM_CONDITIONAL(BUILD_LIB_FRONTEND_ANALYSIS, test "x$panda_USE_LIB_FRONTEND_ANALYSIS" = xyes)
################################################################################
# #
# src/graph #
# #
################################################################################
AM_CONDITIONAL(BUILD_LIB_GRAPH, test "x$panda_USE_LIB_GRAPH" = xyes)
################################################################################
# #
# src/HLS #
# #
################################################################################
if test "x$panda_USE_LIB_HLS" = xyes; then
AC_DEFINE(HAVE_HLS_BUILT, 1, "Define if HLS library is built")
AC_CONFIG_FILES(
src/HLS/Makefile
src/HLS/simulation/Makefile
)
fi
AM_CONDITIONAL(BUILD_LIB_HLS, test "x$panda_USE_LIB_HLS" = xyes)
################################################################################
# #
# src/ilp #
# #
################################################################################
if test "x$panda_USE_LIB_ILP" = xyes; then
AC_DEFINE(HAVE_ILP_BUILT, 1, "Define if ILP library is built")
fi
AM_CONDITIONAL(BUILD_LIB_ILP, test "x$panda_USE_LIB_ILP" = xyes)
################################################################################
# #
# src/intermediate_representations #
# #
################################################################################
if test "x$panda_USE_LIB_FROM_AADL_ASN" = xyes || test "x$panda_USE_LIB_HLS" = xyes; then
panda_USE_LIB_INTERMEDIATE_REPRESENTATIONS=yes;
fi
if test "x$panda_USE_LIB_INTERMEDIATE_REPRESENTATIONS" = xyes; then
AC_DEFINE(HAVE_INTERMEDIATE_REPRESENTATIONS_BUILT, 1, "Define if intermediate representation library is built")
fi
AM_CONDITIONAL(BUILD_LIB_INTERMEDIATE_REPRESENTATIONS, test "x$panda_USE_LIB_INTERMEDIATE_REPRESENTATIONS" = xyes)
################################################################################
# #
# src/parser #
# #
################################################################################
################################### aadl stuff #################################
if test "x$panda_USE_LIB_FROM_AADL_ASN" = xyes; then
AC_DEFINE(HAVE_FROM_AADL_ASN_BUILT, 1, "Define if from aadl/asn library is built")
AC_CONFIG_FILES(
src/parser/aadl/Makefile
src/parser/asn/Makefile
)
fi
AM_CONDITIONAL(BUILD_LIB_FROM_AADL_ASN, test "x$panda_USE_LIB_FROM_AADL_ASN" = xyes)
################ Discrepancy stuff #########################
if test "x$panda_USE_LIB_FROM_DISCREPANCY" = xyes; then
AC_DEFINE(HAVE_FROM_DISCREPANCY_BUILT, 1, "Define from discrepancy library is built")
AC_CONFIG_FILES(
src/parser/discrepancy/Makefile
)
fi
AM_CONDITIONAL(BUILD_LIB_FROM_DISCREPANCY, test "x$panda_USE_LIB_FROM_DISCREPANCY" = xyes)
################ Polixml stuff #########################
if test "x$panda_USE_LIB_FROM_POLIXML" = xyes; then
AC_DEFINE(HAVE_FROM_POLIXML_BUILT, 1, "Define if from polixml library is built")
AC_CONFIG_FILES(
src/parser/polixml/Makefile
)
fi
AM_CONDITIONAL(BUILD_LIB_FROM_POLIXML, test "x$panda_USE_LIB_FROM_POLIXML" = xyes)
################ Parsing pragma stuff #########################
if test "x$panda_USE_LIB_FROM_PRAGMA" = xyes; then
AC_DEFINE(HAVE_FROM_PRAGMA_BUILT, 1, "Define if from pragma library is built")
AC_CONFIG_FILES(
src/parser/pragma/Makefile
)
fi
AM_CONDITIONAL(BUILD_LIB_FROM_PRAGMA, test "x$panda_USE_LIB_FROM_PRAGMA" = xyes)
################ source code statistics stuff ##################################
if test "x$panda_USE_LIB_FROM_DATA_XML" = xyes; then
AC_DEFINE(HAVE_FROM_DATA_XML_BUILT, 1, "Define if from data xml library is built")