+
+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 = { 'CheckPKGExists' : CheckPKGExists })
+
+ if conf.CheckPKGExists ('slv2'):
+ libraries['slv2'] = LibraryInfo()
+ libraries['slv2'].ParseConfig('pkg-config --cflags --libs slv2')
+ env.Append (CCFLAGS="-DHAVE_LV2")
+ else:
+ print 'Building Ardour with LV2 support requires SLV2 >= 0.6.0'
+ print 'WARNING: SLV2 not found, or too old. Ardour will be built without LV2 support.'
+ print 'Until the 2.4 release, Ardour requires SLV2 out of SVN.'
+ print 'Testing would be very much appreciated! svn co http://svn.drobilla.net/lad/slv2'
+ env['LV2'] = 0
+ conf.Finish()
+else:
+ print 'LV2 support is not enabled. Build with \'scons LV2=1\' to enable.'
+