From 330e5ca540bee67d0648def2d303e9e1d366cb53 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Fri, 11 Oct 2013 14:49:11 +0200 Subject: Version 1.0.13 --- configure.ac | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c0b717c..c093532 100644 --- a/configure.ac +++ b/configure.ac @@ -40,10 +40,19 @@ AC_CANONICAL_HOST AC_MSG_CHECKING(for MIDI API) case $host in *-*-linux*) - AC_SUBST( api, [-D__LINUX_ALSASEQ__] ) - AC_CHECK_LIB(asound, snd_seq_open, , AC_MSG_ERROR(RtMidi in Linux requires the ALSA asound library!)) - # Checks for pthread library. - AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtMidi requires the pthread library!)) + AC_SUBST( api, [""] ) + AC_ARG_WITH(jack, [ --with-jack = choose JACK server support (linux only)], [ + AC_SUBST( api, [-D__LINUX_JACK__] ) + AC_MSG_RESULT(using JACK) + AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!))], ) + + if [test "$api" == "";] then + AC_SUBST( api, [-D__LINUX_ALSASEQ__] ) + AC_CHECK_LIB(asound, snd_seq_open, , AC_MSG_ERROR(RtMidi in Linux requires the ALSA asound library!)) + # Checks for pthread library. + AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtMidi requires the pthread library!)) + fi + ;; *-sgi*) -- cgit v1.2.3