define(gt_cv_func_gnugettext_libc, [gt_cv_func_gnugettext]ifelse([$2], need-ngettext, 2, 1)[_libc])
define(gt_cv_func_gnugettext_libintl, [gt_cv_func_gnugettext]ifelse([$2], need-ngettext, 2, 1)[_libintl])
+dnl GCC LOCAL: Expose presence of libintl.h to C code.
AC_CHECK_HEADER(libintl.h,
- [AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
+ [AC_DEFINE([HAVE_LIBINTL_H], 1,
+ [Define if you have the <libintl.h> header file.])
+ 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;],
[bindtextdomain ("", "");
AC_SUBST(INTLOBJS)
AC_SUBST(POFILES)
AC_SUBST(POSUB)
+dnl GCC LOCAL: Make USE_INCLUDED_LIBINTL visible to C code.
+ if test $USE_INCLUDED_LIBINTL = yes; then
+ AC_DEFINE([USE_INCLUDED_LIBINTL], 1,
+ [Define to use the libintl included with this package instead of any
+ version in the system libraries.])
+ fi
dnl For backward compatibility. Some configure.ins may be using this.
nls_cv_header_intl=