Ver código fonte

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

master
Kevin Larke 9 anos atrás
pai
commit
54f98fd800
2 arquivos alterados com 20 adições e 3 exclusões
  1. 3
    2
      build/linux/debug/build.sh
  2. 17
    1
      configure.ac

+ 3
- 2
build/linux/debug/build.sh Ver arquivo

@@ -8,7 +8,8 @@ autoreconf --force --install
8 8
 cd ${curdir}
9 9
 
10 10
 ../../../configure --prefix=${curdir} \
11
---enable-debug \
11
+		   --enable-debug \
12
+#		   --enable-sonicart \
12 13
 CFLAGS="-g -Wall" \
13 14
 CXXFLAGS="-g -Wall" \
14 15
 CPPFLAGS= \
@@ -17,4 +18,4 @@ LIBS=
17 18
 
18 19
 
19 20
 #make
20
-#make install
21
+#make install

+ 17
- 1
configure.ac Ver arquivo

@@ -93,7 +93,6 @@ if test x"$vectop" = xtrue; then
93 93
 AC_DEFINE([CM_VECTOP], 1,[Use Lapack and Atlas.])
94 94
 fi
95 95
 
96
-
97 96
 AC_ARG_ENABLE([memalign],
98 97
      [  --enable-memalign    Turn on memory alignment on dynamic memory allocations. ],
99 98
      [case "${enableval}" in
@@ -109,6 +108,23 @@ if test x"$memalign" = xtrue; then
109 108
 AC_DEFINE([CM_MEMALIGN], 1,[Turn on dynamic memory alignment.])
110 109
 fi
111 110
 
111
+AC_ARG_ENABLE([sonicart],
112
+     [  --enable-sonicart    Enable use of Sonic Arts proprietary code. ],
113
+     [case "${enableval}" in
114
+       yes) sonicart=true ;;
115
+       no)  sonicart=false ;;
116
+       *) AC_MSG_ERROR([bad value ${enableval} for --enable-sonicart]) ;;
117
+     esac],[sonicart=true])
118
+     
119
+echo "sonicart=${sonicart}"
120
+     
121
+# if --enable-sonicart then #define CM_SONICART = 1 in config.h otherwise CM_SONICART is undefined.
122
+if test x"$sonicart" = xtrue; then
123
+AC_DEFINE([CM_SONICART], 1,[Include Sonic Arts proprietry code.])
124
+fi
125
+
126
+AM_CONDITIONAL([INC_SONICART], [test x$sonicart = xtrue])
127
+
112 128
 
113 129
 AC_CONFIG_FILES([ Makefile ])
114 130
 AC_OUTPUT

Carregando…
Cancelar
Salvar