summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
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))