From 362d1d663bd0d6160293b240e1ed85a1ae662ef2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 9 Jan 2015 20:06:44 +0000 Subject: Fix OSX compilation. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5505 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index a089b3a..894bbee 100644 --- a/wscript +++ b/wscript @@ -63,7 +63,11 @@ def configure(conf): autowaf.define(conf, 'GANV_FDGL', 1) if not Options.options.no_nls: - autowaf.check_header(conf, 'c', 'libintl.h', 'ENABLE_NLS', mandatory=False) + conf.check(function_name = 'dgettext', + header_name = 'libintl.h', + lib = 'intl', + define_name = 'ENABLE_NLS', + mandatory = False) conf.env.LIB_GANV = ['ganv-%s' % GANV_MAJOR_VERSION] @@ -124,15 +128,17 @@ def build(bld): target = 'src/ganv-marshal.c') # Library - bld(features = 'c cshlib cxx cxxshlib', - export_includes = ['.'], - source = ganv_source, - includes = ['.', './src'], - name = 'libganv', - target = 'ganv-%s' % GANV_MAJOR_VERSION, - uselib = 'GTKMM AGRAPH_2_20 AGRAPH_2_30', - vnum = GANV_VERSION, - install_path = '${LIBDIR}') + lib = bld(features = 'c cshlib cxx cxxshlib', + export_includes = ['.'], + source = ganv_source, + includes = ['.', './src'], + name = 'libganv', + target = 'ganv-%s' % GANV_MAJOR_VERSION, + uselib = 'GTKMM AGRAPH_2_20 AGRAPH_2_30', + vnum = GANV_VERSION, + install_path = '${LIBDIR}') + if bld.is_defined('ENABLE_NLS'): + lib.lib = ['intl'] # Benchmark program (C++) bld(features = 'cxx cxxprogram', -- cgit v1.2.1