177 |
AC_DEFINE_UNQUOTED(HAVE_COREMIDI,$have_coremidi,[Define to 1 if you have CoreMIDI installed.]) |
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!" |
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 |
|
disable 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 |
556 |
|
|
557 |
|
# some gcc 4.0 versions need -msse for SSE register allocations |
558 |
|
if test "$config_asm" = "yes"; then |
559 |
|
if test "$def_arch_x86" = 1; then |
560 |
|
CXXFLAGS="$CXXFLAGS -msse" |
561 |
|
fi |
562 |
|
fi |
563 |
|
|
564 |
# autoconf 2.59/libtool 1.5.12 bug? work-around. Without a check like |
# autoconf 2.59/libtool 1.5.12 bug? work-around. Without a check like |
565 |
# this, the dlfcn.h check in am_prog_libtool may fail. |
# this, the dlfcn.h check in am_prog_libtool may fail. |
566 |
AC_CHECK_HEADER(stdlib.h) |
AC_CHECK_HEADER(stdlib.h) |
567 |
|
|
568 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |
569 |
|
|
570 |
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( \ |
571 |
|
Makefile \ |
572 |
|
man/Makefile \ |
573 |
|
man/linuxsampler.1 \ |
574 |
|
src/Makefile \ |
575 |
|
src/network/Makefile \ |
576 |
|
src/engines/Makefile \ |
577 |
|
src/engines/gig/Makefile \ |
578 |
|
src/engines/common/Makefile \ |
579 |
|
src/common/Makefile src/lib/Makefile \ |
580 |
|
src/lib/fileloader/Makefile \ |
581 |
|
src/lib/fileloader/libgig/Makefile \ |
582 |
|
src/testcases/Makefile \ |
583 |
|
src/drivers/Makefile \ |
584 |
|
src/drivers/audio/Makefile \ |
585 |
|
src/drivers/midi/Makefile \ |
586 |
|
linuxsampler.spec \ |
587 |
|
debian/Makefile \ |
588 |
|
Artwork/Makefile \ |
589 |
|
scripts/Makefile \ |
590 |
|
osx/Makefile \ |
591 |
|
osx/LinuxSampler.xcode/Makefile \ |
592 |
|
Documentation/Makefile \ |
593 |
|
Documentation/Engines/Makefile \ |
594 |
|
Documentation/Engines/gig/Makefile \ |
595 |
|
) |
596 |
|
|
597 |
|
|
598 |
########################################################################### |
########################################################################### |
602 |
echo "#####################################################################" |
echo "#####################################################################" |
603 |
echo "# LinuxSampler Configuration #" |
echo "# LinuxSampler Configuration #" |
604 |
echo "#-------------------------------------------------------------------#" |
echo "#-------------------------------------------------------------------#" |
605 |
|
echo "# Assembly Optimizations: ${config_asm}" |
606 |
echo "# Development Mode: ${config_dev_mode}" |
echo "# Development Mode: ${config_dev_mode}" |
607 |
echo "# Debug Level: ${config_debug_level}" |
echo "# Debug Level: ${config_debug_level}" |
608 |
echo "# Use Exceptions in RT Context: ${config_rt_exceptions}" |
echo "# Use Exceptions in RT Context: ${config_rt_exceptions}" |