aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-18 18:31:48 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-18 18:31:48 +0200
commit36218d6e84269dffae0da867f0ea1db1e63bb89e (patch)
tree64f2fbe9340966c59fdf8a2c138bbc6ba7b2d917
parent397343b73698597a2ab4c92e7ba039d62902fcec (diff)
downloadODR-AudioEnc-36218d6e84269dffae0da867f0ea1db1e63bb89e.tar.gz
ODR-AudioEnc-36218d6e84269dffae0da867f0ea1db1e63bb89e.tar.bz2
ODR-AudioEnc-36218d6e84269dffae0da867f0ea1db1e63bb89e.zip
Add autoconf check for DAB+ support in FDK-AAC
-rw-r--r--configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 35bdfad..c35a47d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,6 +68,20 @@ AM_CONDITIONAL([HAVE_ALSA], [ test "x$enable_alsa" = "xyes" ])
AC_CHECK_LIB(zmq, zmq_init, , AC_MSG_ERROR(ZeroMQ libzmq is required))
AC_CHECK_LIB(fdk-aac, aacEncOpen, , AC_MSG_ERROR(The FDK-AAC library is required))
+# We need to have the ODR fdk-aac, the upstream one doesn't support DAB+
+AC_MSG_CHECKING([for DAB+ support in FDK-AAC])
+AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include <fdk-aac/aacenc_lib.h>]],
+ [[char dummy[TT_DABPLUS];]])],
+ [
+ AC_MSG_RESULT([yes])
+ ],
+ [
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR(["Your FDK-AAC does not support DAB+, make sure you have installed the ODR version!"])
+ ]
+ )
+
+
dnl soname version to use
dnl goes by ‘current[:revision[:age]]’ with the soname ending up as