summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-08-01 07:58:44 +0000
committerJim Meyering <jim@meyering.net>1999-08-01 07:58:44 +0000
commit71f2c2f9ec598a2d26a1378c796fb6d16a6906cd (patch)
treed2cff98bab3a8acc582e6b7d3177b9e9c61de018 /m4
parented0c88b7f74f0d4ff9bd30a59c1af3ac8302c352 (diff)
downloadcoreutils-71f2c2f9ec598a2d26a1378c796fb6d16a6906cd.tar.xz
(AM_WITH_NLS): Remove unnecessary lines.
Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl. (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting, and simplify the shell code.
Diffstat (limited to 'm4')
-rw-r--r--m4/gettext.m439
1 files changed, 14 insertions, 25 deletions
diff --git a/m4/gettext.m4 b/m4/gettext.m4
index 0decdf705..84a466cae 100644
--- a/m4/gettext.m4
+++ b/m4/gettext.m4
@@ -6,7 +6,7 @@
# but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available.
-# serial 106
+# serial 107
AC_PREREQ(2.13) dnl Minimum Autoconf version required.
@@ -48,21 +48,11 @@ AC_DEFUN(AM_WITH_NLS,
if test "$gt_cv_func_gettext_libc" != "yes"; then
AC_CHECK_LIB(intl, bindtextdomain,
- [AC_CACHE_CHECK([for gettext in libintl],
- gt_cv_func_gettext_libintl,
- [AC_CHECK_LIB(intl, gettext,
- gt_cv_func_gettext_libintl=yes,
- gt_cv_func_gettext_libintl=no)],
- gt_cv_func_gettext_libintl=no)])
-
- if test "$gt_cv_func_gettext_libintl" = yes; then
- LIBS="$LIBS -lintl"
- fi
-
+ [AC_CHECK_LIB(intl, gettext)])
fi
if test "$gt_cv_func_gettext_libc" = "yes" \
- || test "$gt_cv_func_gettext_libintl" = "yes"; then
+ || test "$ac_cv_lib_intl_gettext" = "yes"; then
AC_DEFINE(HAVE_GETTEXT, 1,
[Define to 1 if you have gettext and don't want to use GNU gettext.])
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
@@ -166,7 +156,7 @@ AC_DEFUN(AM_WITH_NLS,
nls_cv_header_intl=intl/libintl.h
nls_cv_header_libgt=intl/libgettext.h
fi
- if test -z "$nsl_cv_header_intl"; then
+ if test -z "$nls_cv_header_intl"; then
# Clean out junk possibly left behind by a previous configuration.
rm -f intl/libintl.h
fi
@@ -313,17 +303,16 @@ strdup __argz_count __argz_stringify __argz_next])
dnl Generate list of files to be processed by xgettext which will
dnl be included in po/Makefile.
test -d po || mkdir po
- if test "x$srcdir" != "x."; then
- changequote(, )dnl
- if test "x`echo $srcdir | sed -e 's@^[A-z]:@@' -e 's@/.*@@'`" = "x"; then
- posrcprefix="$srcdir/"
- else
- posrcprefix="../$srcdir/"
- fi
- changequote([, ])dnl
- else
- posrcprefix="../"
- fi
+ changequote(, )dnl
+ case "$srcdir" in
+ .)
+ posrcprefix="../" ;;
+ /* | [A-Za-z]:*)
+ posrcprefix="$srcdir/" ;;
+ *)
+ posrcprefix="../$srcdir/" ;;
+ esac
+ changequote([, ])dnl
rm -f po/POTFILES
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
< $srcdir/po/POTFILES.in > po/POTFILES