summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wscript26
1 files changed, 16 insertions, 10 deletions
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',