summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-06-26 20:16:37 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-06-26 20:16:37 +0200
commit45613a2ac14272c3e4779dd9aa971b5160bb060e (patch)
treeffec3e9f2e213415a3755849f0feaa53ea5101ad /configure.ac
parentc0ec1e01c7dd84ce694bc5268916cc43870f00cf (diff)
downloadfdk-aac-45613a2ac14272c3e4779dd9aa971b5160bb060e.tar.gz
fdk-aac-45613a2ac14272c3e4779dd9aa971b5160bb060e.tar.bz2
fdk-aac-45613a2ac14272c3e4779dd9aa971b5160bb060e.zip
Add JACK input support
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 430ba20..8635cf0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,6 +6,7 @@ AC_CONFIG_AUX_DIR(.)
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([tar-ustar foreign])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+AC_CONFIG_HEADER([config.h])
dnl Checks for programs.
AC_PROG_CC
@@ -23,6 +24,18 @@ AC_CHECK_LIB([rt], [clock_gettime], [], [AC_MSG_ERROR([library rt is missing])])
AM_PATH_ALSA(1.0.25)
+# Check for JACK
+AC_ARG_ENABLE([jack],
+ AS_HELP_STRING([--enable-jack], [Enable JACK input]))
+
+AS_IF([test "x$enable_jack" = "xyes"],
+ AC_CHECK_LIB(jack, jack_client_open, [],
+ [AC_MSG_ERROR([JACK is required])]))
+AS_IF([test "x$enable_jack" = "xyes"],
+ AC_DEFINE(HAVE_JACK, [1], [Define if JACK input is enabled]))
+
+# Link against jack
+AM_CONDITIONAL([HAVE_JACK], [ test "x$enable_jack" = "xyes" ])
# fdk-aac-dabplus-zmq needs ZeroMQ
AC_CHECK_LIB(zmq, zmq_init, , AC_MSG_ERROR(ZeroMQ libzmq is required))