Changing active-state needs no color lookup
[ardour.git] / libs / zita-resampler / wscript
index 91edc4f9ab05895224150b081215cbcae1555859..03039d0d1d5bf93d8895dd39d81e8fb5327cdb5e 100644 (file)
@@ -37,18 +37,12 @@ def options(opt):
     autowaf.set_options(opt)
 
 def configure(conf):
-    if conf.is_defined('USE_EXTERNAL_LIBS'):
-        autowaf.check_pkg(conf, 'zita-resampler', uselib_store='LIBZRESAMPLER', atleast_version=ZRESAMPLER_LIB_VERSION, mandatory=True)
-    else:
-        conf.load ('compiler_cxx')
-        autowaf.configure(conf)
+    conf.load ('compiler_cxx')
+    autowaf.configure(conf)
 
 def build(bld):
-    if bld.is_defined('USE_EXTERNAL_LIBS'):
-        return
-
     obj = bld.stlib(features = 'cxx cxxstlib', source = zresampler_sources)
-    obj.cxxflags        = [ '-fPIC', '-O3', '-ffast-math' ]
+    obj.cxxflags        = [ bld.env['compiler_flags_dict']['pic'], '-O3', '-ffast-math' ]
     obj.export_includes = ['.']
     obj.includes        = ['.']
     obj.name            = 'zita-resampler'
@@ -59,4 +53,3 @@ def build(bld):
 
 def shutdown():
     autowaf.shutdown()
-