diff options
Diffstat (limited to 'm4macros/glib-gettext.m4')
-rw-r--r-- | m4macros/glib-gettext.m4 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/m4macros/glib-gettext.m4 b/m4macros/glib-gettext.m4 index b54befc65..56acddbf4 100644 --- a/m4macros/glib-gettext.m4 +++ b/m4macros/glib-gettext.m4 @@ -95,6 +95,7 @@ glib_DEFUN([GLIB_WITH_NLS], CATOBJEXT=NONE XGETTEXT=: + INTLLIBS= AC_CHECK_HEADER(libintl.h, [gt_cv_func_dgettext_libintl="no" @@ -162,6 +163,10 @@ glib_DEFUN([GLIB_WITH_NLS], gt_cv_have_gettext=yes fi + if test "$gt_cv_func_dgettext_libintl" = "yes"; then + INTLLIBS="-lintl $libintl_extra_libs" + fi + if test "$gt_cv_have_gettext" = "yes"; then AC_DEFINE(HAVE_GETTEXT,1, [Define if the GNU gettext() function is already present or preinstalled.]) |