-
Notifications
You must be signed in to change notification settings - Fork 16
/
configure.ac
174 lines (160 loc) · 4.7 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
dnl Initialise the autoconf/automake tool
AC_PREREQ(2.69)
AC_INIT([buzzmachines],[20100517],[buzztrax-devel@buzztrax.org])
AM_INIT_AUTOMAKE([-Wall -Werror 1.14 check-news std-options foreign tar-ustar subdir-objects])
AC_CONFIG_SRCDIR([README.md])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR(m4)
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
LT_PREREQ([2.2])
# We don't want *.a files
LT_INIT([disable-static])
# Support silent build rules, requires at least automake-1.11. Disable
# by either passing --disable-silent-rules to configure or passing V=1
# to make
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lmsvcrt':
AC_CHECK_LIB([msvcrt], [main])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([float.h malloc.h stddef.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([floor memset pow sqrt strchr])
AC_CHECK_HEADERS([fpu_control.h])
dnl enable runtime debugging code (this is more like a developer build mode)
AC_MSG_CHECKING(whether to enable runtime debugging code)
AC_ARG_ENABLE(
debug,
AS_HELP_STRING([--enable-debug],[enable runtime debugging code (default=no)]),
,
[enable_debug="no"])
AC_MSG_RESULT($enable_debug)
if test "$enable_debug" = "yes"; then
AC_DEFINE(USE_DEBUG, [1], [enable runtime debugging code])
DEBUG_CFLAGS="-O0 -Wall -Werror -g"
else
DEBUG_CFLAGS=""
fi
plugindir="\$(libdir)/Gear"
AC_SUBST(plugindir)
presetdir="\$(datadir)/Gear"
AC_SUBST(presetdir)
userdocdir="\$(datadir)/Gear"
AC_SUBST(userdocdir)
demosongdir="\$(datadir)/buzztrax/songs/Gear"
AC_SUBST(demosongdir)
# Compilation and Linker flags
# -Wno-non-virtual-dtor suppresses: virtual methods with no virtual destructor
# -Wno-unknown-pragmas suppresses: ignoring #pragma xxx
BM_CXXFLAGS="-I\$(top_srcdir)/common -I\$(top_srcdir)/common/windef $DEBUG_CFLAGS -Wno-non-virtual-dtor -Wno-unknown-pragmas"
BM_LIBS="-module -avoid-version"
AC_SUBST(BM_CXXFLAGS)
AC_SUBST(BM_LIBS)
AC_CONFIG_FILES(Makefile \
common/Makefile \
common/dsplib/Makefile \
common/mdk/Makefile \
Arguru/Distortion/Makefile \
AseDev/Makefile \
AseDev/a4pFilter01/Makefile \
Bigyo/Makefile \
Bigyo/FrequencyShifter/Makefile \
Chimp/Makefile \
Chimp/PitchShifter/Makefile \
CyanPhase/Makefile \
CyanPhase/AtomStereoMeld/Makefile \
CyanPhase/DTMF/Makefile \
CyanPhase/Notch/Makefile \
DedaCode/Makefile \
DedaCode/Fade/Makefile \
DedaCode/MovingAverage/Makefile \
DedaCode/SFilterFIR/Makefile \
DedaCode/StereoGain/Makefile \
Elak/Makefile \
Elak/Dist2/Makefile \
Elak/SVF/Makefile \
Elenzil/Makefile \
Elenzil/FrequencyBomb/Makefile \
Elenzil/Modulator/Makefile \
Ensonic/Makefile \
Ensonic/CallbackTester/Makefile \
FrequencyUnknown/Makefile \
FrequencyUnknown/O-Delay/Makefile \
FSM/Makefile \
FSM/ArpMan/Makefile \
FSM/Chorus/Makefile \
FSM/Chorus2/Makefile \
FSM/Infector/Makefile \
FSM/Kick/Makefile \
FSM/KickXP/Makefile \
FSM/PanzerDelay/Makefile \
FSM/PhatMan/Makefile \
FSM/Philta/Makefile \
FSM/ScatMan/Makefile \
FSM/ScrapMan/Makefile \
FSM/SprayMan/Makefile \
FSM/TapMan/Makefile \
FSM/TunaMan/Makefile \
FSM/WahMan/Makefile \
FSM/WahManPro/Makefile \
FSM/WahPro2/Makefile \
Geonik/Makefile \
Geonik/BuzzMachines/Makefile \
Graue/Makefile \
Graue/SoftSat/Makefile \
Jeskola/Makefile \
Jeskola/CrossDelay/Makefile \
Jeskola/Delay/Makefile \
Jeskola/Distortion/Makefile \
Jeskola/Freeverb/Makefile \
Jeskola/Mul/Makefile \
Jeskola/Ninja/Makefile \
Jeskola/Noise/Makefile \
Jeskola/Trilok/Makefile \
Ld/Makefile \
Ld/Gate/Makefile \
Ld/SLimit/Makefile \
MadBrain/Makefile \
MadBrain/Dynamite6/Makefile \
MadBrain/4fm2f/Makefile \
Makk/Makefile \
Makk/M3/Makefile \
Makk/M4/Makefile \
Makk/M4wII/Makefile \
Matilde/Makefile \
Matilde/Tracker/Makefile \
Matilde/Tracker/SurfsDSPLib/Makefile \
Oomek/Makefile \
Oomek/Aggressor/Makefile \
Oomek/Exciter/Makefile \
Oomek/Masterizer/Makefile \
Q/Makefile \
Q/Rebond/Makefile \
Q/Zfilter/Makefile \
WhiteNoise/Makefile \
WhiteNoise/StereoDist/Makefile \
WhiteNoise/WhiteChorus/Makefile \
Zwar/Makefile \
Zwar/11Stereo/Makefile \
Zwar/Csi/Makefile \
)
AC_OUTPUT
echo "
Configuration
Version : ${VERSION}
Source code location : ${srcdir}
Prefix : ${prefix}
Compiler : ${CC}
Debug : ${enable_debug}
"