aboutsummaryrefslogtreecommitdiff
path: root/sysutils/xcdroast/files/patch-aclocal.m4
blob: 1775aee9a56da6141889ea24855ef7191d41f9c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- aclocal.m4.orig	Sun Oct 26 00:51:41 2003
+++ aclocal.m4	Thu Oct 30 23:28:02 2003
@@ -1367,9 +1367,13 @@
         AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
          [AC_TRY_LINK([#include <libintl.h>
 extern int _nl_msg_cat_cntr;
-extern int *_nl_domain_bindings;],
+extern 
+#ifdef __cplusplus
+"C"
+#endif
+const char *_nl_expand_alias ();],
             [bindtextdomain ("", "");
-return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
+return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
             gt_cv_func_gnugettext_libc=yes,
             gt_cv_func_gnugettext_libc=no)])