waf:lib/replace fix up libintl related checks
authorChristian Ambach <ambi@samba.org>
Thu, 2 Jan 2014 21:23:16 +0000 (22:23 +0100)
committerChristian Ambach <ambi@samba.org>
Fri, 3 Jan 2014 04:04:44 +0000 (05:04 +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>
lib/replace/wscript

index 09efdc8831f1fd057b532921a2f68f6b21bb0d0d..6784dd3cb814573ef2a25c1dff83c8889de252c1 100644 (file)
@@ -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')