From e0964aff194888a71a2794bb5a3bf56f321edb45 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 24 Mar 2008 00:20:21 +0000 Subject: initial checkin of freesound integration git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3169 d708f5d6-7413-0410-9779-e7cbd77b26cf --- SConstruct | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index bfec57a5fc..173985251d 100644 --- a/SConstruct +++ b/SConstruct @@ -40,6 +40,7 @@ opts.AddOptions( BoolOption('DMALLOC', 'Compile and link using the dmalloc library', 0), BoolOption('EXTRA_WARN', 'Compile with -Wextra, -ansi, and -pedantic. Might break compilation. For pedants', 0), BoolOption('FFT_ANALYSIS', 'Include FFT analysis window', 1), + BoolOption('FREESOUND', 'Include Freesound database lookup', 0), BoolOption('FPU_OPTIMIZATION', 'Build runtime checked assembler code', 1), BoolOption('LIBLO', 'Compile with support for liblo library', 1), BoolOption('NLS', 'Set to turn on i18n support', 1), @@ -518,6 +519,9 @@ if conf.CheckPKGExists ('fftw3'): libraries['fftw3'] = LibraryInfo() libraries['fftw3'].ParseConfig('pkg-config --cflags --libs fftw3') +libraries['curl'] = LibraryInfo() +libraries['curl'].ParseConfig('pkg-config --cflags --libs libcurl') + env = conf.Finish () if env['FFT_ANALYSIS']: @@ -532,6 +536,18 @@ if env['FFT_ANALYSIS']: sys.exit (1) conf.Finish() +if env['FREESOUND']: + # + # Check for curl header as well as the library + # + + conf = Configure(libraries['curl']) + + if conf.CheckHeader ('curl/curl.h') == False: + print ('Ardour cannot be compiled without the curl headers, which do not seem to be installed') + sys.exit (1) + conf.Finish() + if env['LV2']: conf = env.Configure(custom_tests = { 'CheckPKGExists' : CheckPKGExists }) -- cgit v1.2.3