diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-11-10 22:28:07 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-11-10 22:28:07 +0000 |
commit | c5bc47c237299540b7a06506218a260c6015325e (patch) | |
tree | c1df91d357eb50bf3f80851802114a91d6337446 /libs | |
parent | b03aa778501d3b3cb476bc6f6a24346d494259bf (diff) |
add configure tests for a new JACK API function
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6055 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/SConscript | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libs/ardour/SConscript b/libs/ardour/SConscript index 06242d3618..60edcdeefe 100644 --- a/libs/ardour/SConscript +++ b/libs/ardour/SConscript @@ -158,6 +158,26 @@ def CheckJackClientOpen(context): return result # +# See if JACK supports jack_on_info_shutdown() +# + +jack_test_source_file = """ +#include <jack/jack.h> +void callback (int code, const char* reason, void* arg) { return; } +int main(int argc, char **argv) +{ + jack_client_t* c; + jack_on_info_shutdown (c, callback, (void*) 0); + return 0; +} +""" +def CheckJackOnInfoShutdown(context): + context.Message('Checking for jack_on_info_shutdown()...') + result = context.TryLink(jack_test_source_file, '.c') + context.Result(result) + return result + +# # See if JACK supports jack_recompute_total_latencies() # @@ -214,6 +234,7 @@ def CheckJackEnsureMonitorInput(context): conf = Configure(ardour, custom_tests = { 'CheckJackClientOpen' : CheckJackClientOpen, + 'CheckJackOnInfoShutdown' : CheckJackOnInfoShutdown, 'CheckJackRecomputeLatencies' : CheckJackRecomputeLatencies, 'CheckJackVideoFrameOffset' : CheckJackVideoFrameOffset, 'CheckJackEnsureMonitorInput' : CheckJackEnsureMonitorInput @@ -222,6 +243,9 @@ conf = Configure(ardour, custom_tests = { if conf.CheckJackClientOpen(): ardour.Append(CXXFLAGS="-DHAVE_JACK_CLIENT_OPEN") +if conf.CheckJackOnInfoShutdown(): + ardour.Append(CXXFLAGS="-DHAVE_JACK_ON_INFO_SHUTDOWN") + if conf.CheckJackRecomputeLatencies(): ardour.Append(CXXFLAGS="-DHAVE_JACK_RECOMPUTE_LATENCIES") |