Browse Source

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

master
Kevin Larke 9 years ago
parent
commit
54f98fd800
2 changed files with 20 additions and 3 deletions
  1. 3
    2
      build/linux/debug/build.sh
  2. 17
    1
      configure.ac

+ 3
- 2
build/linux/debug/build.sh View File

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

+ 17
- 1
configure.ac View File

93
 AC_DEFINE([CM_VECTOP], 1,[Use Lapack and Atlas.])
93
 AC_DEFINE([CM_VECTOP], 1,[Use Lapack and Atlas.])
94
 fi
94
 fi
95
 
95
 
96
-
97
 AC_ARG_ENABLE([memalign],
96
 AC_ARG_ENABLE([memalign],
98
      [  --enable-memalign    Turn on memory alignment on dynamic memory allocations. ],
97
      [  --enable-memalign    Turn on memory alignment on dynamic memory allocations. ],
99
      [case "${enableval}" in
98
      [case "${enableval}" in
109
 AC_DEFINE([CM_MEMALIGN], 1,[Turn on dynamic memory alignment.])
108
 AC_DEFINE([CM_MEMALIGN], 1,[Turn on dynamic memory alignment.])
110
 fi
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
 AC_CONFIG_FILES([ Makefile ])
129
 AC_CONFIG_FILES([ Makefile ])
114
 AC_OUTPUT
130
 AC_OUTPUT

Loading…
Cancel
Save