diff options
author | David Robillard <d@drobilla.net> | 2007-04-08 17:19:10 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-04-08 17:19:10 +0000 |
commit | 679d5f9f3aca988bdebcd140b77e12d330380abc (patch) | |
tree | 94f5a4844f9aa23197dbb3df907850d26af77f4c /acinclude.m4 | |
parent | cd0a2541cb9b14bedf200a68ee774b506980775c (diff) | |
download | ingen-679d5f9f3aca988bdebcd140b77e12d330380abc.tar.gz ingen-679d5f9f3aca988bdebcd140b77e12d330380abc.tar.bz2 ingen-679d5f9f3aca988bdebcd140b77e12d330380abc.zip |
Jack MIDI API compatibility kluges.
git-svn-id: http://svn.drobilla.net/lad/ingen@418 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 new file mode 100644 index 00000000..22592fe1 --- /dev/null +++ b/acinclude.m4 @@ -0,0 +1,15 @@ +# Copyright (C) 2007 Nedko Arnaudov <nedko@arnaudov.name> +# This file is distributed under the same terms as the Autoconf macro files. + +AC_DEFUN([AC_JACK_MIDI_NFRAMES_CHECK], [ +AC_MSG_CHECKING([whether JACK MIDI functions need nframes parameter]) +AC_LANG_PUSH(C) +AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[ +#include <jack/jack.h> +#include <jack/midiport.h> +]], [[ +jack_midi_event_get(0, 0, 0, 0); +]]), [jackmidi_nframes='yes'], [jackmidi_nframes='no']) +AC_MSG_RESULT([$jackmidi_nframes]) +AC_LANG_POP() +]) |