-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
122 lines (102 loc) · 3.83 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
# -*- tab-width:8; indent-tabs-mode:true; -*-
# vim: set noet sw=2 ts=8 sts=0:
#
# Copyright (c)
# 2010 FAU -- Joachim Falk <[email protected]>
# 2010 FAU -- Martin Streubuehr <[email protected]>
# 2011 FAU -- Jens Gladigau <[email protected]>
# 2012 FAU -- Joachim Falk <[email protected]>
# 2014 FAU -- Joachim Falk <[email protected]>
# 2015 FAU -- Joachim Falk <[email protected]>
# 2016 FAU -- Joachim Falk <[email protected]>
# 2018 FAU -- Joachim Falk <[email protected]>
# 2019 FAU -- Joachim Falk <[email protected]>
# 2020 FAU -- Joachim Falk <[email protected]>
#
# This library is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option) any
# later version.
#
# This library 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 Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
## -*- Autoconf -*-
## Process this file with autoconf to produce a configure script.
AC_INIT(
[SystemC-VPC], [1.0],
[SystemC-VPC--devel-])
AC_PREREQ(2.57)
ACJF_INIT
AC_CONFIG_SRCDIR([src/systemcvpc/cpp/VpcApi.cpp])
AC_CONFIG_AUX_DIR([../BuildSystem])
AC_CONFIG_MACRO_DIR([../BuildSystem/m4])
dnl AC_CANONICAL_BUILD
dnl AC_CANONICAL_HOST
dnl Checks for programs.
AC_PROG_CXX
ACJF_ENABLE_DIALECTS_C99_CXX11
AM_INIT_AUTOMAKE([subdir-objects])
AC_ENABLE_SHARED
LT_INIT
ACJF_ARG_DEBUG([yes], [], [-DNDEBUG])
if test x"$enable_debug" = x"yes"; then
AC_DEFINE([SYSTEMCVPC_ENABLE_DEBUG], [yes], [Defined if debug support is enabled])
fi
AC_DEFINE([SYSTEMOC_SIMULATOR_COUPLING_COMPILATION], [yes],
[This is defined to enable the coupling interface between SystemC-VPC and SysteMoC])
DX_HTML_FEATURE(ON)
DX_CHM_FEATURE(OFF)
DX_CHI_FEATURE(OFF)
DX_MAN_FEATURE(ON)
DX_RTF_FEATURE(OFF)
DX_XML_FEATURE(OFF)
DX_PDF_FEATURE(ON)
DX_PS_FEATURE(OFF)
DX_INIT_DOXYGEN("AC_PACKAGE_NAME", [doxygen.cfg], [doxygen-doc])
DX_ENV_APPEND(COSUPPORT_INCPATH, [\$(COSUPPORT_SYSTEMC_INCPATH) \$(COSUPPORT_TRACING_INCPATH) \$(COSUPPORT_STREAMS_INCPATH) \$(COSUPPORT_XERCES_INCPATH)])
DX_ENV_APPEND(BOOST_INCPATH, [\$(BOOST_INCPATH)])
dnl check for exe extension
AC_EXEEXT
# Checks for header files.
# AC_FUNC_ALLOCA
# AC_HEADER_STDC
# AC_CHECK_HEADERS([OS.h fcntl.h limits.h mach/mach.h malloc.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
dnl ACJF_CHECK_LIB_SYSTEMOC must be first in order for the tutorial to build.
dnl The library link order used by the tutorial seems to depend on the order of
dnl directories in PKG_CONFIG_PATH and, thus, the directory containg the
dnl SysteMoC library must be the first one.
ACJF_CHECK_LIB_SYSTEMOC
ACJF_CHECK_LIB_BOOST
ACJF_CHECK_LIB_SYSTEMC
dnl ACJF_CHECK_LIB_XERCES
ACJF_CHECK_LIB_COSUPPORT_XERCES
ACJF_CHECK_LIB_COSUPPORT_STRING
ACJF_CHECK_LIB_COSUPPORT_SMARTPTR
ACJF_CHECK_LIB_COSUPPORT_SYSTEMC
ACJF_CHECK_LIB_COSUPPORT_TRACING
ACJF_CHECK_LIB_COSUPPORT_STREAMS
SYSTEMOC_PLUGINPATH="$acjf_abs_top_builddir/.libs"
AC_SUBST([SYSTEMOC_PLUGINPATH])
AC_SUBST([SYSTEMOC_ENABLE_SGX])
AC_CONFIG_FILES(
[Makefile]dnl
[testcases/Makefile]dnl
[tutorial/Makefile]dnl
[src/systemcvpc/headers/Makefile]dnl
[pkgconfig/libsystemcvpc.pc]dnl
)
AC_CONFIG_HEADERS(
[src/systemcvpc/cpp/config.h]dnl
[src/systemcvpc/headers/systemcvpc/vpc_config.h]dnl
)
ACJF_DONE
AC_OUTPUT