Follow changes in pkg.m4, fixing Gnome bug #166537, that happened on 2005-10-17 and...
[gmidimonitor.git] / acinclude.m4
blobcbd87d233ee1704b3926892d0df82d9e79de5202
1 # Copyright (C) 2007 Nedko Arnaudov <nedko@arnaudov.name>
2 # This file is distributed under the same terms as the Autoconf macro files.
4 AC_DEFUN([AC_JACK_MIDI_NFRAMES_CHECK], [
5 AC_MSG_CHECKING([whether JACK MIDI functions need nframes parameter])
6 AC_LANG_PUSH(C)
7 AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[
8 #include <jack/jack.h>
9 #include <jack/midiport.h>
10 ]], [[
11 jack_midi_event_get(0, 0, 0, 0);
12 ]]), [jackmidi_nframes='yes'], [jackmidi_nframes='no'])
13 AC_MSG_RESULT([$jackmidi_nframes])
14 AC_LANG_POP()