waf:lib/replace fix up libintl related checks
authorChristian Ambach <ambi@samba.org>
Thu, 2 Jan 2014 21:23:16 +0000 (22:23 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 10 Mar 2014 15:10:37 +0000 (16:10 +0100)
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>
(cherry picked from commit df6ddcfbfcd33274c1b768ce26829b0ad9278cd0)

lib/replace/wscript

index 2bcf5423c38fd928dda9f2c754508b3a6d4bd512..8b82b75da63807f1fdbe3082e93bf9fc2800d84b 100644 (file)
@@ -367,6 +367,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')