1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
Leave the user the possibility to disable features he doesn't want, even if the dependecies are present
Index: rezound-0.12.3beta/configure.ac
===================================================================
--- rezound-0.12.3beta.orig/configure.ac
+++ rezound-0.12.3beta/configure.ac
@@ -505,12 +505,17 @@ AM_PATH_AUDIOFILE(0.2.2,AC_DEFINE(HAVE_L
AC_LANG_PUSH(C) # xiph needs to include vorbisenc.h as well if C++ is going to compile the code
AH_TEMPLATE(HAVE_LIBOGG)
-# this macro detects libogg and does an AC_SUBST on OGG_CFLAGS and OGG_LIBS, so I put these variables in src/backend/Makefile.am for substitution
+AC_ARG_ENABLE(vorbis, AC_HELP_STRING([--disable-vorbis], [disable support for vorbis (default=autodetect)]), [ enable_vorbis=$enableval ], [ enable_vorbis=yes ])
+# this macro detects libogg and does an AC_SUBST on OGG_CFLAGS and OGG_LIBS, so I put these variables in src/backend/Makefile.am for substitutioni
+if test "x$enable_vorbis" = "xyes"; then
XIPH_PATH_OGG(AC_DEFINE(HAVE_LIBOGG),AC_MSG_NOTICE([Ogg Vorbis website: http://www.xiph.org]))
+fi
AH_TEMPLATE(HAVE_LIBVORBIS)
# this macro detects libvorbis and does an AC_SUBST on VORBIS_CFLAGS, VORBIS_LIBS, VORBISFILE_LIBS and VORBISENC_LIBS, so I put these variables in src/backend/Makefile.am for substitution
+if test "x$enable_vorbis" = "xyes"; then
XIPH_PATH_VORBIS(AC_DEFINE(HAVE_LIBVORBIS),AC_MSG_NOTICE([Ogg Vorbis website: http://www.xiph.org]))
+fi
AC_LANG_POP(C)
@@ -524,7 +529,9 @@ AC_LANG_POP(C)
AH_TEMPLATE(HAVE_LIBFLACPP)
AH_TEMPLATE(HAVE_LIBFLAC)
+AC_ARG_ENABLE(flac, AC_HELP_STRING([--disable-flac], [disable support for flac (default=autodetect)]), [ enable_flac=$enableval ], [ enable_flac=yes ])
# look for libFLAC and if it's found then look for libFLAC++
+if test "x$enable_flac" = "xyes"; then
AM_PATH_LIBFLAC(
[
AC_DEFINE(HAVE_LIBFLAC)
@@ -532,7 +539,7 @@ AM_PATH_LIBFLAC(
],
AC_MSG_NOTICE([FLAC website: http://flac.sourceforge.net])
)
-
+fi
@@ -603,8 +610,10 @@ AC_SUBST(MAYBE_LADSPA_LIB)
dnl ############################################################################
dnl # Handle the flags for a library to to tempo/pitch changing independantly *
dnl ############################################################################
+AC_ARG_ENABLE(soundtouch, AC_HELP_STRING([--disable-soundtouch], [disable support for soundtouch (default=autodetect)]), [ enable_soundtouch=$enableval ], [ enable_soundtouch=yes ])
+if test "x$enable_soundtouch" = "xyes"; then
AM_PATH_SOUNDTOUCH([],[],AC_MSG_WARN([***** libSoundTouch not found -- tempo and pitch changing will be disabled (http://www.iki.fi/oparviai/soundtouch) *****]))
-
+fi
|