change detection system for liblo to use pkgconfig and test in only one place
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 5 May 2012 20:04:30 +0000 (20:04 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 5 May 2012 20:04:30 +0000 (20:04 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12194 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/surfaces/osc/wscript
libs/surfaces/wscript

index 1ab9bf42a73877f2e9e2ea1374c749e4934e5e36..c2c12616c145fadab49112b5d1f31228192abba5 100644 (file)
@@ -17,7 +17,6 @@ def options(opt):
 
 def configure(conf):
     autowaf.configure(conf)
-    autowaf.check_pkg(conf, 'liblo', uselib_store='LO', linkflags='-llo')
 
 def build(bld):
     obj = bld(features = 'cxx cxxshlib')
index 5595eed44cef4365356c664a22e4781649b24630..f281247208df54c79b123ae26a1b44bda43a9d60 100644 (file)
@@ -48,9 +48,8 @@ def configure(conf):
     if Options.options.tranzport and conf.is_defined('HAVE_USB'):
         conf.define('BUILD_TRANZPORT', 1)
 
-    #conf.check_cc (lib='libusb', header_name='libusb.h', function_name='usb_interrupt_write', define_name='BUILD_TRANZPORT')
     conf.check_cc (header_name='linux/input.h', define_name='BUILD_POWERMATE',mandatory=False)
-    conf.check_cc (lib='lo', header_name='lo/lo.h', function_name='lo_server_new', define_name='BUILD_OSC',mandatory=False)
+    autowaf.check_pkg (conf, 'liblo', mandatory=False, uselib_store="LO", atleast_version="0.24")
 
     if Options.options.wiimote:
         conf.check_cc (header_name='cwiid.h', define_name='HAVE_CWIID_H')
@@ -67,7 +66,7 @@ def build(bld):
     bld.recurse('control_protocol')
     bld.recurse('generic_midi')
     bld.recurse('mackie')
-    if bld.is_defined ('BUILD_OSC'):
+    if bld.is_defined ('HAVE_LO'):
         bld.recurse('osc')
     if bld.is_defined('BUILD_POWERMATE'):
         bld.recurse('powermate')