]> git.lyx.org Git - features.git/blobdiff - acinclude.m4
Fix configure bug with gettext
[features.git] / acinclude.m4
index 7c317dbd2385bbcd33c7564b024d0040cd1e9f8e..e7d8f225206639ccb4c412bbc072184bdcea150d 100644 (file)
@@ -1271,7 +1271,11 @@ AC_DEFUN(AM_WITH_NLS,
               [AC_CACHE_CHECK([for gettext in libintl],
                 gt_cv_func_gettext_libintl,
                 [AC_CHECK_LIB(intl, gettext,
-                 gt_cv_func_gettext_libintl=yes,
+dnl ============== A fix is here! ======================
+dnl -lintl was not added to the LIBS variable in this case
+                 [gt_cv_func_gettext_libintl=yes
+                  INTLLIBS="-lintl"],
+dnl ==== end of fix
                  gt_cv_func_gettext_libintl=no)],
                 gt_cv_func_gettext_libintl=no)])
           fi