5 |
|
|
6 |
LINUXSAMPLER_RELEASE_MAJOR=1 |
LINUXSAMPLER_RELEASE_MAJOR=1 |
7 |
LINUXSAMPLER_RELEASE_MINOR=0 |
LINUXSAMPLER_RELEASE_MINOR=0 |
8 |
LINUXSAMPLER_RELEASE_BUILD=0 |
LINUXSAMPLER_RELEASE_BUILD=0.svn16 |
9 |
|
|
10 |
#------------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------------ |
11 |
# The following is the libtool / shared library version. This doesn't have to |
# The following is the libtool / shared library version. This doesn't have to |
33 |
# the LSCP specification version this LinuSampler release complies with: |
# the LSCP specification version this LinuSampler release complies with: |
34 |
|
|
35 |
LSCP_RELEASE_MAJOR=1 |
LSCP_RELEASE_MAJOR=1 |
36 |
LSCP_RELEASE_MINOR=4 |
LSCP_RELEASE_MINOR=5 |
37 |
|
|
38 |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.]) |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MAJOR, ${LSCP_RELEASE_MAJOR}, [LSCP spec major version this release complies with.]) |
39 |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.]) |
AC_DEFINE_UNQUOTED(LSCP_RELEASE_MINOR, ${LSCP_RELEASE_MINOR}, [LSCP spec minor version this release complies with.]) |
78 |
fi |
fi |
79 |
AC_SUBST([CXX_CPU_SWITCH]) |
AC_SUBST([CXX_CPU_SWITCH]) |
80 |
|
|
81 |
|
mac=no |
82 |
|
linux=no |
83 |
|
case "$host" in |
84 |
|
*-*-darwin*) |
85 |
|
mac=yes |
86 |
|
;; |
87 |
|
*-*-linux*) |
88 |
|
linux=yes |
89 |
|
;; |
90 |
|
esac |
91 |
|
AM_CONDITIONAL(LINUX, test "$linux" = yes) |
92 |
|
AM_CONDITIONAL(MAC, test "$mac" = yes) |
93 |
|
|
94 |
# check if we're on MS Windows |
# check if we're on MS Windows |
95 |
AC_CHECK_HEADERS( |
AC_CHECK_HEADERS( |
96 |
mmsystem.h, |
mmsystem.h, |
541 |
AM_CONDITIONAL(HAVE_AU, test $config_have_au = "yes") |
AM_CONDITIONAL(HAVE_AU, test $config_have_au = "yes") |
542 |
AM_CONDITIONAL(HAVE_AUFLAGS, test "$AUFLAGS" != "") |
AM_CONDITIONAL(HAVE_AUFLAGS, test "$AUFLAGS" != "") |
543 |
|
|
544 |
|
if test $config_have_au = "yes" ; then |
545 |
|
if test "x$DEVELOPER_EXTRAS_DIR" = "x" ; then |
546 |
|
if test -d /Developer/Extras ; then |
547 |
|
DEVELOPER_EXTRAS_DIR=/Developer/Extras |
548 |
|
else |
549 |
|
DEVELOPER_EXTRAS_DIR=/Developer/Examples |
550 |
|
fi |
551 |
|
fi |
552 |
|
AC_SUBST(DEVELOPER_EXTRAS_DIR) |
553 |
|
fi |
554 |
|
|
555 |
|
if test "x$MAC_PLUGIN_INSTALL_DIR" = "x" ; then |
556 |
|
MAC_PLUGIN_INSTALL_DIR=/Library/Audio/Plug-Ins |
557 |
|
fi |
558 |
|
AC_SUBST(MAC_PLUGIN_INSTALL_DIR) |
559 |
|
|
560 |
# have we found at least one MIDI input and one audio output driver ? |
# have we found at least one MIDI input and one audio output driver ? |
561 |
if test "$have_midi_input_driver" = "false"; then |
if test "$have_midi_input_driver" = "false"; then |
591 |
AC_SUBST(GIG_CFLAGS) |
AC_SUBST(GIG_CFLAGS) |
592 |
AC_SUBST(GIG_LIBS) |
AC_SUBST(GIG_LIBS) |
593 |
|
|
594 |
|
# SF2 Engine (requires libgig) |
595 |
|
AC_ARG_ENABLE(sf2-engine, |
596 |
|
[ --disable-sf2-engine |
597 |
|
Disable compilation of the SF2 engine. |
598 |
|
You need to have libgig installed.], |
599 |
|
[config_sf2_engine="$enableval"], |
600 |
|
[config_sf2_engine="yes"] |
601 |
|
) |
602 |
|
HAVE_SF2=0; |
603 |
|
if test "$config_sf2_engine" = "yes"; then |
604 |
|
HAVE_SF2=1 |
605 |
|
else |
606 |
|
echo "SF2 engine disabled by configure script parameter" |
607 |
|
fi |
608 |
|
AM_CONDITIONAL(HAVE_SF2, test $HAVE_SF2 = 1) |
609 |
|
AC_DEFINE_UNQUOTED(HAVE_SF2,$HAVE_SF2,[Define to 1 if you want SF2 engine and have libsf2 installed.]) |
610 |
|
config_have_sf2="no" |
611 |
|
if test $HAVE_SF2 = "1"; then |
612 |
|
config_have_sf2="yes" |
613 |
|
fi |
614 |
|
|
615 |
|
# Check presence of libsndfile |
616 |
|
libsndfile_version="1.0" |
617 |
|
PKG_CHECK_MODULES(SNDFILE, sndfile >= $libsndfile_version, HAVE_SNDFILE=true, HAVE_SNDFILE=false) |
618 |
|
if test "$HAVE_SNDFILE" = "false"; then |
619 |
|
echo "Required libsndfile version not found!" |
620 |
|
echo "You need to have libsndfile version ${libsndfile_version} installed!" |
621 |
|
exit -1; |
622 |
|
else |
623 |
|
echo "yes, found libsndfile $libsndfile_version" |
624 |
|
fi |
625 |
|
AC_SUBST(SNDFILE_CFLAGS) |
626 |
|
AC_SUBST(SNDFILE_LIBS) |
627 |
|
|
628 |
|
# Check for Vorbis support in libsndfile |
629 |
|
linuxsampler_save_CFLAGS=$CFLAGS |
630 |
|
CFLAGS="$SNDFILE_CFLAGS $CFLAGS" |
631 |
|
AC_CHECK_DECLS([SF_FORMAT_VORBIS], [], [] ,[[#include <sndfile.h>]]) |
632 |
|
|
633 |
|
# Check for loop functionality in libsndfile |
634 |
|
AC_CHECK_MEMBERS([SF_INSTRUMENT.loops],, |
635 |
|
[AC_MSG_WARN([Your version of libsndfile does not support |
636 |
|
reading of loop information. LinuxSampler will not be able to |
637 |
|
extract loop information from sample files.])], |
638 |
|
[#include <sndfile.h>]) |
639 |
|
CFLAGS=$linuxsampler_save_CFLAGS |
640 |
|
|
641 |
# Instruments DB feature (requires SQLite 3.3) |
# Instruments DB feature (requires SQLite 3.3) |
642 |
AC_ARG_ENABLE(instruments-db, |
AC_ARG_ENABLE(instruments-db, |
643 |
[ --disable-instruments-db |
[ --disable-instruments-db |
733 |
AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.]) |
AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.]) |
734 |
fi |
fi |
735 |
|
|
736 |
|
config_pthread_testcancel="$mac" |
737 |
AC_ARG_ENABLE(pthread-testcancel, |
AC_ARG_ENABLE(pthread-testcancel, |
738 |
[ --enable-pthread-testcancel |
[ --enable-pthread-testcancel |
739 |
Enable pthread_testcancel() calls and avoid asynchronous |
Enable pthread_testcancel() calls and avoid |
740 |
cancel of pthreads (default=no).], |
asynchronous cancel of pthreads (default=yes |
741 |
|
for Mac targets, no otherwise).], |
742 |
[config_pthread_testcancel="$enableval"], |
[config_pthread_testcancel="$enableval"], |
743 |
[config_pthread_testcancel="no"] |
[] |
744 |
) |
) |
745 |
if test "$config_pthread_testcancel" = "yes"; then |
if test "$config_pthread_testcancel" = "yes"; then |
746 |
AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.]) |
AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.]) |
1327 |
src/network/Makefile \ |
src/network/Makefile \ |
1328 |
src/engines/Makefile \ |
src/engines/Makefile \ |
1329 |
src/engines/gig/Makefile \ |
src/engines/gig/Makefile \ |
1330 |
|
src/engines/sf2/Makefile \ |
1331 |
|
src/engines/sfz/Makefile \ |
1332 |
src/engines/common/Makefile \ |
src/engines/common/Makefile \ |
1333 |
src/effects/Makefile \ |
src/effects/Makefile \ |
1334 |
src/common/Makefile \ |
src/common/Makefile \ |
1419 |
echo "# Audio Output Drivers:" |
echo "# Audio Output Drivers:" |
1420 |
echo "# ALSA: ${config_have_alsa}, JACK: ${config_have_jack}, ARTS: ${config_have_arts}, CoreAudio: ${config_have_coreaudio}, ASIO: ${config_have_asio}" |
echo "# ALSA: ${config_have_alsa}, JACK: ${config_have_jack}, ARTS: ${config_have_arts}, CoreAudio: ${config_have_coreaudio}, ASIO: ${config_have_asio}" |
1421 |
echo "#-------------------------------------------------------------------" |
echo "#-------------------------------------------------------------------" |
1422 |
|
echo "# Sampler Engines:" |
1423 |
|
echo "# GIG: yes, SF2: ${config_have_sf2}, SFZ: yes" |
1424 |
|
echo "#-------------------------------------------------------------------" |
1425 |
|
echo "# Effect plugin systems for internal effects:" |
1426 |
|
echo "# LADSPA: yes" |
1427 |
|
echo "#-------------------------------------------------------------------" |
1428 |
echo "# Building sampler as plugin for following host standards:" |
echo "# Building sampler as plugin for following host standards:" |
1429 |
echo "# DSSI: ${config_have_dssi}, LV2: ${config_have_lv2}, VST: ${config_have_vst}, AU: ${config_have_au}" |
echo "# DSSI: ${config_have_dssi}, LV2: ${config_have_lv2}, VST: ${config_have_vst}, AU: ${config_have_au}" |
1430 |
echo "#-------------------------------------------------------------------#" |
echo "#-------------------------------------------------------------------#" |