build/linux/debug/build.sh, configure.ac : Added compile switch for sonic arts code.

This commit is contained in:
Kevin Larke 2015-04-09 14:19:30 -07:00
parent a96fd43cab
commit 54f98fd800
2 changed files with 20 additions and 3 deletions

View File

@ -8,7 +8,8 @@ autoreconf --force --install
cd ${curdir} cd ${curdir}
../../../configure --prefix=${curdir} \ ../../../configure --prefix=${curdir} \
--enable-debug \ --enable-debug \
# --enable-sonicart \
CFLAGS="-g -Wall" \ CFLAGS="-g -Wall" \
CXXFLAGS="-g -Wall" \ CXXFLAGS="-g -Wall" \
CPPFLAGS= \ CPPFLAGS= \
@ -17,4 +18,4 @@ LIBS=
#make #make
#make install #make install

View File

@ -93,7 +93,6 @@ if test x"$vectop" = xtrue; then
AC_DEFINE([CM_VECTOP], 1,[Use Lapack and Atlas.]) AC_DEFINE([CM_VECTOP], 1,[Use Lapack and Atlas.])
fi fi
AC_ARG_ENABLE([memalign], AC_ARG_ENABLE([memalign],
[ --enable-memalign Turn on memory alignment on dynamic memory allocations. ], [ --enable-memalign Turn on memory alignment on dynamic memory allocations. ],
[case "${enableval}" in [case "${enableval}" in
@ -109,6 +108,23 @@ if test x"$memalign" = xtrue; then
AC_DEFINE([CM_MEMALIGN], 1,[Turn on dynamic memory alignment.]) AC_DEFINE([CM_MEMALIGN], 1,[Turn on dynamic memory alignment.])
fi 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_CONFIG_FILES([ Makefile ])
AC_OUTPUT AC_OUTPUT