+
+if env['FREESOUND']:
+ #
+ # 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.0'):
+ 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.0)'
+ env['LV2'] = 0
+ conf.Finish()
+else:
+ print 'LV2 support is not enabled. Build with \'scons LV2=1\' to enable.'
+