summaryrefslogtreecommitdiffstats
path: root/lib/replace
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-12-12 22:10:36 +0100
committerChristian Ambach <ambi@samba.org>2014-01-03 05:04:44 +0100
commit31db0c8acdd68f396417e1f6504a91a40295bc89 (patch)
treeb0a44cc136a92b95564e91dd9ce5ac9997ddd194 /lib/replace
parenta83f491810d34cc8b6eb4b0f40bbbb1440e0f84d (diff)
downloadsamba-31db0c8acdd68f396417e1f6504a91a40295bc89.tar.gz
samba-31db0c8acdd68f396417e1f6504a91a40295bc89.tar.xz
samba-31db0c8acdd68f396417e1f6504a91a40295bc89.zip
waf:lib/replace fix gettext detection
if the user has specified a path for gettext, add it to CFLAGS and LDFLAGS so we can find it during configure and build Bug: https://bugzilla.samba.org/show_bug.cgi?id=9911 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 5f29e9fe7b0..650dc065879 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -370,6 +370,13 @@ removeea setea
# try to find libintl (if --without-gettext is not given)
conf.env.intl_libs=''
if not Options.options.disable_gettext:
+ # any extra path given to look at?
+ if not Options.options.gettext_location == 'None':
+ conf.env['CFLAGS'].extend(["-I%s" % Options.options.gettext_location]);
+ conf.env['LDFLAGS'].extend(["-L%s" % Options.options.gettext_location]);
+ else:
+ conf.env['CFLAGS'].extend(["-I/usr/local"]);
+ conf.env['LDFLAGS'].extend(["-L/usr/local"]);
conf.CHECK_HEADERS('libintl.h')
conf.CHECK_LIB('intl')
conf.CHECK_DECLS('dgettext gettext bindtextdomain textdomain bind_textdomain_codeset', headers="libintl.h")