summaryrefslogtreecommitdiffstats
path: root/akode_artsplugin/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'akode_artsplugin/configure.in.in')
-rw-r--r--akode_artsplugin/configure.in.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/akode_artsplugin/configure.in.in b/akode_artsplugin/configure.in.in
new file mode 100644
index 00000000..5456ac39
--- /dev/null
+++ b/akode_artsplugin/configure.in.in
@@ -0,0 +1,16 @@
+if test x$build_arts != xyes || test x$have_akode != xyes
+then
+ DO_NOT_COMPILE="$DO_NOT_COMPILE akode_artsplugin"
+else
+ KDE_CHECK_LIB(akode_mpeg_decoder, mpeg_decoder, have_akode_mpeg=yes, have_akode_mpeg=no, -lakode)
+ KDE_CHECK_LIB(akode_mpc_decoder, mpc_decoder, have_akode_mpc=yes, have_akode_mpc=no, -lakode)
+ KDE_CHECK_LIB(akode_xiph_decoder, xiph_decoder, have_akode_xiph=yes, have_akode_xiph=no, -lakode)
+ KDE_CHECK_LIB(akode_ffmpeg_decoder, ffmpeg_decoder, have_akode_ffmpeg=yes, have_akode_ffmpeg=no, -lakode)
+fi
+
+# This must always be called to handle the --without-akode case, as autoconf
+# will check these conditionals values it seems.
+AM_CONDITIONAL(include_akode_mpeg, test x$have_akode_mpeg = xyes)
+AM_CONDITIONAL(include_akode_mpc, test x$have_akode_mpc = xyes)
+AM_CONDITIONAL(include_akode_xiph, test x$have_akode_xiph = xyes)
+AM_CONDITIONAL(include_akode_ffmpeg, test x$have_akode_ffmpeg = xyes)