8 fst_src = glob.glob('*.c')
10 Import('env install_prefix libraries')
12 fst.Append (CPPPATH=".")
18 fst.Replace(CC = ("winegcc"))
21 # See if JACK supports jack_set_thread_creator()
24 jack_test_source_file = """
25 #include <jack/jack.h>
28 my_pthread_create (pthread_t* thread_id, const pthread_attr_t* attr, void *(*function)(void*), void* arg)
32 int main(int argc, char **argv)
34 jack_set_thread_creator (my_pthread_create);
38 def CheckJackSetThreadCreator(context):
39 context.Message('Checking for jack_set_thread_creator()...')
40 result = context.TryLink(jack_test_source_file, '.c')
41 context.Result(result)
45 conf = Configure(fst, custom_tests = {
46 'CheckJackSetThreadCreator' : CheckJackSetThreadCreator,
49 if conf.CheckJackSetThreadCreator():
50 fst.Append(CCFLAGS="-DHAVE_JACK_SET_THREAD_CREATOR")
55 a = fst.Object ('fst', 'fst.c')
56 b = fst.Object ('fstinfofile', 'fstinfofile.c')
57 c = fst.Object ('vstwin', 'vstwin.c')
58 d = fst.Object ('vsti', 'vsti.c')
59 e = fst.Object ('thread', 'thread.c')
63 env.Alias('tarball', env.Distribute (env['DISTTREE'],
64 fst_src + ['SConscript',