diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-03-16 02:02:50 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-03-16 02:02:50 +0000 |
commit | 072f5cb6a3711fea5362f8024637c63748a0c5bf (patch) | |
tree | 8cfb08a68304aed6d7931bd976864c960ca669de | |
parent | a4f953a60a8784d99c3a4865527d93d2e8376e3b (diff) | |
download | xine-lib-072f5cb6a3711fea5362f8024637c63748a0c5bf.tar.gz xine-lib-072f5cb6a3711fea5362f8024637c63748a0c5bf.tar.bz2 |
Simplify Jack checks, replace --enable/--disable with --with/--without as it's an external library, list it in the list of available audio outputs if found.
CVS patchset: 8671
CVS date: 2007/03/16 02:02:50
-rw-r--r-- | configure.ac | 39 |
1 files changed, 13 insertions, 26 deletions
diff --git a/configure.ac b/configure.ac index 056f230aa..878776ab3 100644 --- a/configure.ac +++ b/configure.ac @@ -1565,34 +1565,18 @@ dnl --------------------------------------------- dnl JACK support dnl --------------------------------------------- -AC_ARG_ENABLE([jack], - AC_HELP_STRING([--disable-jack], [Disable optional JACK support]), - [ - case "${enableval}" in - yes) jack=yes ;; - no) jack=no ;; - *) AC_MSG_ERROR([bad value ${enableval} for --disable-jack]) ;; - esac - ], - [jack=auto]) - -if test "x${jack}" != xno ; then - PKG_CHECK_MODULES(JACK, [ jack >= 0.100 ], - HAVE_JACK=1, - [ - HAVE_JACK=0 - if test "x$jack" = xyes ; then - AC_MSG_ERROR([*** JACK support not found]) - fi - ]) -else - HAVE_JACK=0 +AC_ARG_WITH([jack], + AS_HELP_STRING([--without-jack], [Build without Jack support])) + +if test "x$with_jack" != "xno"; then + PKG_CHECK_MODULES([JACK], [jack >= 0.100], [have_jack=yes], [have_jack=no]) + + if test "x$with_jack" = "xyes" && test "x$have_jack" = "xno"; then + AC_MSG_ERROR([Jack support requested, but Jack not found]) + fi fi -AC_SUBST(JACK_CFLAGS) -AC_SUBST(JACK_LIBS) -AC_SUBST(HAVE_JACK) -AM_CONDITIONAL([HAVE_JACK], [test "x$HAVE_JACK" = x1]) +AM_CONDITIONAL([HAVE_JACK], [test "x$have_jack" = "xyes"]) dnl --------------------------------------------- @@ -3103,6 +3087,9 @@ fi if test "x$have_pulseaudio" = "xyes"; then echo " - pulseaudio sound server" fi +if test "x$have_jack" = "xyes"; then + echo " - Jack" +fi echo "---" |