summaryrefslogtreecommitdiff
path: root/m4macros
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-08-07 19:10:41 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-08-07 19:10:41 +0000
commitba0c0d91f7eee8762728af5e0a43ed2ec17ef5d8 (patch)
tree4a7ed98d8f0a0b7f25eb945eea50f6e8a91b91b9 /m4macros
parentb51c0d2f7057d64b59a5eef209d5d7b693349cde (diff)
downloadglib-ba0c0d91f7eee8762728af5e0a43ed2ec17ef5d8.tar.gz
Set $LIBS to include -lintl when checking for dcgettext and
Thu Aug 7 15:01:09 2003 Owen Taylor <otaylor@redhat.com> * m4macros/glib-gettext.m4: Set $LIBS to include -lintl when checking for dcgettext and _nl_msg_cat_cntr. (Tim Mooney, #119171)
Diffstat (limited to 'm4macros')
-rw-r--r--m4macros/glib-gettext.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/m4macros/glib-gettext.m4 b/m4macros/glib-gettext.m4
index 7886a0c07..d17b19a48 100644
--- a/m4macros/glib-gettext.m4
+++ b/m4macros/glib-gettext.m4
@@ -184,6 +184,8 @@ glib_DEFUN([GLIB_WITH_NLS],
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
if test "$MSGFMT" != "no"; then
+ glib_save_LIBS="$LIBS"
+ LIBS="$LIBS -lintl $libintl_extra_libs"
AC_CHECK_FUNCS(dcgettext)
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
@@ -210,6 +212,7 @@ glib_DEFUN([GLIB_WITH_NLS],
DATADIRNAME=lib
;;
esac])
+ LIBS="$glib_save_LIBS"
INSTOBJEXT=.mo
else
gt_cv_have_gettext=no