auto-detect JackVideoFrameOffset support
authorRobin Gareus <robin@gareus.org>
Fri, 2 Nov 2012 16:32:28 +0000 (16:32 +0000)
committerRobin Gareus <robin@gareus.org>
Fri, 2 Nov 2012 16:32:28 +0000 (16:32 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13375 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/wscript

index f17fe8f7a498d856a3e37729ef05a011e39d6e0d..3a59fbfbbc9d0993e8fa64d91e3f7b202399b166 100644 (file)
@@ -340,6 +340,19 @@ int main(int argc, char **argv) {
                   mandatory = True,
                   errmsg = missing_jack_message)
 
+    conf.check_cc(fragment = '''
+#include <jack/transport.h>
+int main(int argc, char** argv) {
+  jack_position_t pos;
+  pos.valid & JackVideoFrameOffset;
+  return 0;
+}''',
+                  uselib= [ 'JACK' ],
+                  msg = 'Checking for JackVideoFrameOffset',
+                  define_name = 'HAVE_JACK_VIDEO_SUPPORT',
+                  mandatory = False,
+                  okmsg = 'present')
+
     if flac_supported():
         conf.define ('HAVE_FLAC', 1)
     if ogg_supported():