From 54f98fd8003b299b1af625d804c049f2bb5be7d4 Mon Sep 17 00:00:00 2001 From: Kevin Larke Date: Thu, 9 Apr 2015 14:19:30 -0700 Subject: [PATCH] build/linux/debug/build.sh, configure.ac : Added compile switch for sonic arts code. --- build/linux/debug/build.sh | 5 +++-- configure.ac | 18 +++++++++++++++++- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/build/linux/debug/build.sh b/build/linux/debug/build.sh index d53c3ad..57f4289 100755 --- a/build/linux/debug/build.sh +++ b/build/linux/debug/build.sh @@ -8,7 +8,8 @@ autoreconf --force --install cd ${curdir} ../../../configure --prefix=${curdir} \ ---enable-debug \ + --enable-debug \ +# --enable-sonicart \ CFLAGS="-g -Wall" \ CXXFLAGS="-g -Wall" \ CPPFLAGS= \ @@ -17,4 +18,4 @@ LIBS= #make -#make install \ No newline at end of file +#make install diff --git a/configure.ac b/configure.ac index da099b4..3561690 100644 --- a/configure.ac +++ b/configure.ac @@ -93,7 +93,6 @@ if test x"$vectop" = xtrue; then AC_DEFINE([CM_VECTOP], 1,[Use Lapack and Atlas.]) fi - AC_ARG_ENABLE([memalign], [ --enable-memalign Turn on memory alignment on dynamic memory allocations. ], [case "${enableval}" in @@ -109,6 +108,23 @@ if test x"$memalign" = xtrue; then AC_DEFINE([CM_MEMALIGN], 1,[Turn on dynamic memory alignment.]) fi +AC_ARG_ENABLE([sonicart], + [ --enable-sonicart Enable use of Sonic Arts proprietary code. ], + [case "${enableval}" in + yes) sonicart=true ;; + no) sonicart=false ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-sonicart]) ;; + esac],[sonicart=true]) + +echo "sonicart=${sonicart}" + +# if --enable-sonicart then #define CM_SONICART = 1 in config.h otherwise CM_SONICART is undefined. +if test x"$sonicart" = xtrue; then +AC_DEFINE([CM_SONICART], 1,[Include Sonic Arts proprietry code.]) +fi + +AM_CONDITIONAL([INC_SONICART], [test x$sonicart = xtrue]) + AC_CONFIG_FILES([ Makefile ]) AC_OUTPUT