150 |
AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1) |
AM_CONDITIONAL(HAVE_JACK, test $HAVE_JACK = 1) |
151 |
AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.]) |
AC_DEFINE_UNQUOTED(HAVE_JACK,$HAVE_JACK,[Define to 1 if you have JACK installed.]) |
152 |
|
|
153 |
|
# MidiShare (Linux, OS X, Windows) |
154 |
|
AC_CHECK_HEADER(MidiShare.h, |
155 |
|
AC_CHECK_LIB(MidiShare, MidiCountEvs, |
156 |
|
have_midishare=1, |
157 |
|
have_midishare=0 |
158 |
|
) |
159 |
|
, |
160 |
|
have_midishare=0 |
161 |
|
) |
162 |
|
if test "$have_midishare" = "1"; then |
163 |
|
have_midi_input_driver="true" |
164 |
|
fi |
165 |
|
AM_CONDITIONAL(HAVE_MIDISHARE, test $have_midishare = "1") |
166 |
|
AC_DEFINE_UNQUOTED(HAVE_MIDISHARE,$have_midishare,[Define to 1 if you have MidiShare installed.]) |
167 |
|
|
168 |
|
# CoreMIDI (OS X) |
169 |
|
AC_CHECK_HEADER(CoreMIDI/CoreMIDI.h, |
170 |
|
have_coremidi=1, |
171 |
|
have_coremidi=0 |
172 |
|
) |
173 |
|
if test "$have_coremidi" = "1"; then |
174 |
|
have_midi_input_driver="true" |
175 |
|
fi |
176 |
|
AM_CONDITIONAL(HAVE_COREMIDI, test $have_coremidi = "1") |
177 |
|
AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.]) |
178 |
|
|
179 |
# Check presence of libgig |
# Check presence of libgig |
180 |
libgig_version="2.0.0" |
libgig_version="2.0.1" |
181 |
PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false) |
PKG_CHECK_MODULES(GIG, gig >= $libgig_version, HAVE_GIG=true, HAVE_GIG=false) |
182 |
if test "$HAVE_GIG" = "false"; then |
if test "$HAVE_GIG" = "false"; then |
183 |
echo "Required libgig version not found!" |
echo "Required libgig version not found!" |
201 |
|
|
202 |
if test "$have_midi_input_driver" = "false"; then |
if test "$have_midi_input_driver" = "false"; then |
203 |
echo "No supported MIDI input system found!" |
echo "No supported MIDI input system found!" |
204 |
echo "Sorry, LinuxSampler only supports ALSA as MIDI input driver at the moment!" |
echo "Sorry, LinuxSampler only supports the following MIDI drivers at the moment:" |
205 |
|
echo "ALSA, MIDIShare, CoreMIDI." |
206 |
|
echo "If you think you have one of those available on your system, make sure you" |
207 |
|
echo "also have the respective development (header) files installed." |
208 |
exit -1; |
exit -1; |
209 |
fi |
fi |
210 |
if test "$have_audio_output_driver" = "false"; then |
if test "$have_audio_output_driver" = "false"; then |
219 |
|
|
220 |
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
# TODO: should we use AC_ARG_VAR(variable, description) instead? |
221 |
|
|
222 |
|
AC_ARG_ENABLE(asm, |
223 |
|
[ --disable-asm |
224 |
|
Disable hand-crafted assembly optimizations |
225 |
|
(default=on). LinuxSampler provides CPU specific |
226 |
|
assembly optimizations for the most important |
227 |
|
synthesis algorithms. You usually don't want to |
228 |
|
diable that.], |
229 |
|
[config_asm="no"], |
230 |
|
[config_asm="yes"] |
231 |
|
) |
232 |
|
if test "$config_asm" = "yes"; then |
233 |
|
AC_DEFINE_UNQUOTED(CONFIG_ASM, 1, [Define to 1 if you want to enable hand-crafted asm optimizations.]) |
234 |
|
fi |
235 |
|
|
236 |
AC_ARG_ENABLE(dev-mode, |
AC_ARG_ENABLE(dev-mode, |
237 |
[ --enable-dev-mode |
[ --enable-dev-mode |
238 |
Enable development mode (default=no). In that mode |
Enable development mode (default=no). In that mode |
549 |
# Create Build Files |
# Create Build Files |
550 |
|
|
551 |
AM_CONFIG_HEADER(config.h) |
AM_CONFIG_HEADER(config.h) |
552 |
AM_INIT_AUTOMAKE(linuxsampler, 0.3.1) |
AM_INIT_AUTOMAKE(linuxsampler, 0.3.2) |
553 |
|
|
554 |
AC_LANG_CPLUSPLUS |
AC_LANG_CPLUSPLUS |
555 |
AC_PROG_CXX |
AC_PROG_CXX |
560 |
|
|
561 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |
562 |
|
|
563 |
AC_OUTPUT(Makefile man/Makefile man/linuxsampler.1 src/Makefile src/network/Makefile src/engines/Makefile src/engines/gig/Makefile src/engines/common/Makefile src/common/Makefile src/lib/Makefile src/lib/fileloader/Makefile src/lib/fileloader/libgig/Makefile src/testcases/Makefile src/drivers/Makefile src/drivers/audio/Makefile src/drivers/midi/Makefile) |
AC_OUTPUT( \ |
564 |
|
Makefile \ |
565 |
|
man/Makefile \ |
566 |
|
man/linuxsampler.1 \ |
567 |
|
src/Makefile \ |
568 |
|
src/network/Makefile \ |
569 |
|
src/engines/Makefile \ |
570 |
|
src/engines/gig/Makefile \ |
571 |
|
src/engines/common/Makefile \ |
572 |
|
src/common/Makefile src/lib/Makefile \ |
573 |
|
src/lib/fileloader/Makefile \ |
574 |
|
src/lib/fileloader/libgig/Makefile \ |
575 |
|
src/testcases/Makefile \ |
576 |
|
src/drivers/Makefile \ |
577 |
|
src/drivers/audio/Makefile \ |
578 |
|
src/drivers/midi/Makefile \ |
579 |
|
linuxsampler.spec \ |
580 |
|
debian/Makefile \ |
581 |
|
Artwork/Makefile \ |
582 |
|
scripts/Makefile \ |
583 |
|
osx/Makefile \ |
584 |
|
osx/LinuxSampler.xcode/Makefile \ |
585 |
|
Documentation/Makefile \ |
586 |
|
Documentation/Engines/Makefile \ |
587 |
|
Documentation/Engines/gig/Makefile \ |
588 |
|
) |
589 |
|
|
590 |
|
|
591 |
########################################################################### |
########################################################################### |
595 |
echo "#####################################################################" |
echo "#####################################################################" |
596 |
echo "# LinuxSampler Configuration #" |
echo "# LinuxSampler Configuration #" |
597 |
echo "#-------------------------------------------------------------------#" |
echo "#-------------------------------------------------------------------#" |
598 |
|
echo "# Assembly Optimizations: ${config_asm}" |
599 |
echo "# Development Mode: ${config_dev_mode}" |
echo "# Development Mode: ${config_dev_mode}" |
600 |
echo "# Debug Level: ${config_debug_level}" |
echo "# Debug Level: ${config_debug_level}" |
601 |
echo "# Use Exceptions in RT Context: ${config_rt_exceptions}" |
echo "# Use Exceptions in RT Context: ${config_rt_exceptions}" |