mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-10 18:45:47 +01:00
configure: rewrote detection for 'xgettext'
The main change is to use Autoconf's syntax for consistency; Now the detected program is used in the makefiles (user has the possibility to change the name of the command); A conditional is used to avoid enabling make targets that would fail if the command does not exist. Took opportunity to implement the silent-rules compliance to POT generation rules. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
80e00c3521
commit
2cfb2b5276
10
configure.ac
10
configure.ac
@@ -417,17 +417,9 @@ dnl ====================
|
||||
dnl Detect the language for translations to be installed and check
|
||||
dnl that the gettext environment works
|
||||
WM_I18N_LANGUAGES
|
||||
WM_I18N_XGETTEXT
|
||||
|
||||
|
||||
AC_CHECK_PROG(XGETTEXT, xgettext, xgettext)
|
||||
|
||||
if test "$XGETTEXT" != ""; then
|
||||
if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
|
||||
echo "xgettext isn't GNU version"
|
||||
XGETTEXT=""
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl Added by Oliver - Support for NLSDIR option
|
||||
dnl ===========================================
|
||||
AC_ARG_WITH(nlsdir, AS_HELP_STRING([--with-nlsdir=PATH], [specify where the locale stuff should go]))
|
||||
|
||||
Reference in New Issue
Block a user