mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
build-sys: add explicit support for --disable-nls
In particular, disable intltool when --disable-nls is passed to configure. Tested: Built it on a host without intltool or gettext. $ ./configure --disable-nls --disable-polkit $ make
This commit is contained in:
parent
908f8b9cbb
commit
2f96919bcd
10
configure.ac
10
configure.ac
@ -49,7 +49,17 @@ AS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not s
|
|||||||
AS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by systemd])])
|
AS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by systemd])])
|
||||||
|
|
||||||
# i18n stuff for the PolicyKit policy files
|
# i18n stuff for the PolicyKit policy files
|
||||||
|
AM_NLS
|
||||||
|
AS_IF([test x"$enable_nls" != xno], [
|
||||||
|
# intltoolize greps for '^(AC|IT)_PROG_INTLTOOL', so it needs to be on its own line
|
||||||
IT_PROG_INTLTOOL([0.40.0])
|
IT_PROG_INTLTOOL([0.40.0])
|
||||||
|
])
|
||||||
|
|
||||||
|
AS_IF([test -z "$INTLTOOL_POLICY_RULE"], [
|
||||||
|
# If intltool is not available, provide a dummy rule to fail generation of %.policy files with a meaningful error message
|
||||||
|
INTLTOOL_POLICY_RULE='%.policy: %.policy.in ; @echo " ITMRG " $@ && echo "*** intltool support required to build target $@" && false'
|
||||||
|
AC_SUBST(INTLTOOL_POLICY_RULE)
|
||||||
|
])
|
||||||
|
|
||||||
GETTEXT_PACKAGE=systemd
|
GETTEXT_PACKAGE=systemd
|
||||||
AC_SUBST(GETTEXT_PACKAGE)
|
AC_SUBST(GETTEXT_PACKAGE)
|
||||||
|
Loading…
Reference in New Issue
Block a user