aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac26
1 files changed, 26 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1a6530f6..f10f3c0c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -412,6 +412,11 @@ AC_ARG_WITH(tremor,[[ --with-tremor[=PFX] Use Tremor(vorbisidec) intege
AC_ARG_WITH(tremor-libraries,[ --with-tremor-libraries=DIR Directory where Tremor library is installed (optional)], tremor_libraries="$withval", tremor_libraries="")
AC_ARG_WITH(tremor-includes,[ --with-tremor-includes=DIR Directory where Tremor header files are installed (optional)], tremor_includes="$withval", tremor_includes="")
+AC_ARG_ENABLE(sidplay,
+ AS_HELP_STRING([--enable-sidplay],
+ [enable C64 SID support via libsidplay2 (default: disable)]),,
+ enable_sidplay=no)
+
AC_ARG_ENABLE(wavpack,
AS_HELP_STRING([--disable-wavpack],
[disable WavPack support (default: enable)]),
@@ -1004,6 +1009,20 @@ fi
AM_CONDITIONAL(HAVE_FFMPEG, test x$enable_ffmpeg = xyes)
+if test x$enable_sidplay = xyes; then
+ # libsidplay2 exposes a C++ interface
+ AC_PROG_CXX
+
+ # we have no test yet.. we're not using pkg-config here
+ # because libsidplay2's .pc file requires libtool
+ AC_SUBST(SIDPLAY_LIBS,"-lsidplay2 -lresid-builder")
+ AC_SUBST(SIDPLAY_CFLAGS,)
+
+ AC_DEFINE(ENABLE_SIDPLAY, 1, [Define for libsidplay2 support]),
+fi
+
+AM_CONDITIONAL(ENABLE_SIDPLAY, test x$enable_sidplay = xyes)
+
dnl
dnl Documentation
@@ -1283,6 +1302,12 @@ else
echo " MODPLUG support ...............disabled"
fi
+if test x$enable_sidplay = xyes; then
+ echo " C64 SID support ...............enabled"
+else
+ echo " C64 SID support ...............disabled"
+fi
+
if test x$enable_ffmpeg = xyes; then
echo " FFMPEG support ................enabled"
else
@@ -1300,6 +1325,7 @@ if
test x$enable_wavpack = xno &&
test x$enable_ffmpeg = xno &&
test x$enable_modplug = xno &&
+ test x$enable_sidplay = xno &&
test x$enable_mod = xno; then
AC_MSG_ERROR([No input plugins supported!])
fi