summaryrefslogtreecommitdiffstats
path: root/lib/replace
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2014-01-02 22:23:16 +0100
committerChristian Ambach <ambi@samba.org>2014-01-03 05:04:44 +0100
commitdf6ddcfbfcd33274c1b768ce26829b0ad9278cd0 (patch)
treef5f57e40bd5eee4a6b83705793637a5149bb32cd /lib/replace
parent1a42ff7d8db63b26e2beb43268a1c4664723358e (diff)
downloadsamba-df6ddcfbfcd33274c1b768ce26829b0ad9278cd0.tar.gz
samba-df6ddcfbfcd33274c1b768ce26829b0ad9278cd0.tar.xz
samba-df6ddcfbfcd33274c1b768ce26829b0ad9278cd0.zip
waf:lib/replace fix up libintl related checks
on a default installation of AIX, libintl.a exists but libintl.h does not So check for the declarations of those functions as well to make sure that the build works. 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/wscript1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 09efdc8831f..6784dd3cb81 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -371,6 +371,7 @@ removeea setea
if not Options.options.disable_gettext:
conf.CHECK_HEADERS('libintl.h')
conf.CHECK_LIB('intl')
+ conf.CHECK_DECLS('dgettext gettext bindtextdomain textdomain bind_textdomain_codeset', headers="libintl.h")
# *textdomain functions are not strictly necessary
conf.CHECK_FUNCS_IN('bindtextdomain textdomain bind_textdomain_codeset',
'', checklibc=True, headers='libintl.h')