From 031b579ccf1c55f2607adb6a304f4bb882fd7799 Mon Sep 17 00:00:00 2001 From: Conrad Parker Date: Wed, 24 Jun 2009 00:03:28 +0900 Subject: [PATCH] add configure flag to disable JACK --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8952446f..8d332b40 100644 --- a/configure.ac +++ b/configure.ac @@ -121,6 +121,9 @@ AC_ARG_ENABLE(bow-docs, AC_ARG_ENABLE(sqlite, AC_HELP_STRING([--disable-sqlite], [disable use of sqlite])) +AC_ARG_ENABLE(jack, + AC_HELP_STRING([--disable-jack], [disable use of JACK])) + AC_ARG_ENABLE(alsa, AC_HELP_STRING([--disable-alsa], [disable use of ALSA])) @@ -353,7 +356,11 @@ AC_DEFINE_UNQUOTED([HAVE_SQLITE3],$HAVE_SQLITE3,[Set to 1 if you have libsqlite3 #==================================================================================== # Check for JACK (only used for examples/sndfile-jackplay). -PKG_CHECK_MOD_VERSION(JACK, jack >= 0.100, ac_cv_jack=yes, ac_cv_jack=no) +ac_cv_jack=no +if test x$enable_jack != xno ; then + PKG_CHECK_MOD_VERSION(JACK, jack >= 0.100, ac_cv_jack=yes, ac_cv_jack=no) + fi + if test x$ac_cv_jack = "xyes" ; then HAVE_JACK=1