From: Bruno Haible Date: Mon, 30 Apr 2001 11:04:28 +0000 (+0000) Subject: Improve gettext.m4 in various cases. X-Git-Tag: 0.10.xx-branchpoint X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dcf9e84b39b33b970ce9d6e1c6392aff34a866f;p=thirdparty%2Fgettext.git Improve gettext.m4 in various cases. --- diff --git a/m4/ChangeLog b/m4/ChangeLog index a521aa47a..29da10065 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,9 @@ +2001-04-27 H. J. Lu + Bruno Haible + + * gettext.m4 (AM_WITH_NLS): Fix $CONFIG_FILES matching so it deals + correctly with tabs. Define INSTOBJEXT and GENCAT for older Makefiles. + 2001-04-19 Bruno Haible * gettext-0.10.37 released. diff --git a/m4/gettext.m4 b/m4/gettext.m4 index 37fc43c83..658785bf3 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 @@ -159,10 +159,12 @@ return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", "" POSUB=po fi AC_OUTPUT_COMMANDS( - [case " "$CONFIG_FILES" " in *" po/Makefile.in "* | *" po/Makefile.in:"*) - sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile - ;; - esac]) + [for f in $CONFIG_FILES; do + case $f in po/Makefile.in | po/Makefile.in:*) + sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile + ;; + esac + done]) dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL @@ -228,6 +230,14 @@ changequote([,])dnl dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST(DATADIRNAME) + + dnl For backward compatibility. Some Makefiles may be using this. + INSTOBJEXT=.mo + AC_SUBST(INSTOBJEXT) + + dnl For backward compatibility. Some Makefiles may be using this. + GENCAT=gencat + AC_SUBST(GENCAT) ]) dnl Usage: Just like AM_WITH_NLS, which see.