Minor patch to AM_GTK_WITH_NLS in GTK+ 1.2.7



AM_GTK_WITH_NLS doesn't work quite right on Solaris. Output to configure
looks like:
checking whether NLS is requested... yes
checking for libintl.h... yes
checking for dgettext in libc... no
checking for bindtextdomain in -lintl... yes
checking for dgettext in libintl... checking for dgettext in -lintl...
yes
yes
checking for msgfmt... /bin/msgfmt

The following patch fixes this.

-- 
albert chin (china@thewrittenword.com)

-- snip snip
--- aclocal.m4.orig	Mon Mar 27 11:46:37 2000
+++ aclocal.m4	Mon Mar 27 12:09:32 2000
@@ -472,12 +472,11 @@
 
 	   if test "$gt_cv_func_dgettext_libc" != "yes"; then
 	     AC_CHECK_LIB(intl, bindtextdomain,
-	       [AC_CACHE_CHECK([for dgettext in libintl],
-		 gt_cv_func_dgettext_libintl,
-		 [AC_CHECK_LIB(intl, dgettext,
-		  gt_cv_func_dgettext_libintl=yes,
-		  gt_cv_func_dgettext_libintl=no)],
-		 gt_cv_func_dgettext_libintl=no)])
+	       [AC_CACHE_VAL(gt_cv_func_gettext_libintl,
+		 [AC_CHECK_LIB(intl, gettext,
+		   [gt_cv_func_gettext_libintl=yes; LIBS="$LIBS -lintl"],
+		   gt_cv_func_gettext_libintl=no)],
+		 gt_cv_func_gettext_libintl=no)])
 	   fi
 
            if test "$gt_cv_func_dgettext_libintl" = "yes"; then
@@ -580,7 +579,7 @@
       fi
 
       dnl Test whether we really found GNU xgettext.
-      if test "$XGETTEXT" != ":"; then
+      if test "x$XGETTEXT" != "x" -a "$XGETTEXT" != ":"; then
 	dnl If it is no GNU xgettext we define it as : so that the
 	dnl Makefiles still can work.
 	if $XGETTEXT --omit-header /dev/null 2> /dev/null; then



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]