- # Check for fftw3 header as well as the library
- conf = Configure (libraries['fftw3f'])
- if conf.CheckHeader ('fftw3.h') == False:
- print "FFT Analysis cannot be compiled without the FFTW3 headers, which don't seem to be installed"
- sys.exit (1)
- libraries['fftw3f'] = conf.Finish();
+ # Check for curl header as well as the library
+ #
+
+ libraries['curl'] = LibraryInfo()
+
+ 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)
+ else:
+ libraries['curl'].ParseConfig('pkg-config --cflags --libs libcurl')
+ conf.Finish()
+else:
+ print 'FREESOUND support is not enabled. Build with \'scons FREESOUND=1\' to enable.'
+
+if env['LV2']:
+ conf = env.Configure(custom_tests = { 'CheckPKGVersion' : CheckPKGVersion})
+
+ if conf.CheckPKGVersion('slv2', '0.6.4'):
+ libraries['slv2'] = LibraryInfo()
+ libraries['slv2'].ParseConfig('pkg-config --cflags --libs slv2')
+ env.Append (CCFLAGS="-DHAVE_LV2")
+ else:
+ print 'LV2 support is not enabled (SLV2 not found or older than 0.6.4 (svn))'
+ env['LV2'] = 0
+ conf.Finish()
+else:
+ print 'LV2 support is not enabled. Build with \'scons LV2=1\' to enable.'
+
+if not env['WIIMOTE']:
+ print 'WIIMOTE not enabled. Build with \'scons WIIMOTE=1\' to enable support.'