configure: Fix check for xgettext

Actually check for the "xgettext" binary in the relevant section.
xsltproc is already checked further down, conditionalized by
--enable-docs. The latter is also in a different package.

See https://github.com/cockpit-project/cockpit/discussions/18408
This commit is contained in:
Martin Pitt 2023-02-26 19:19:49 +01:00 committed by Martin Pitt
parent f068604a92
commit 56e9bd2185
2 changed files with 3 additions and 2 deletions

View file

@ -178,9 +178,9 @@ else
fi
AC_SUBST([systemdunitdir], [$systemdunitdir])
# We need msgcat, msgfmt, msggrep, msgmerge, but they're all in the same
# We need msgcat, msgfmt, and xgettext, but they're all in the same
# package as xgettext, and we find them by PATH, so just check for the one.
AC_PATH_PROG([XGETTEXT], [xsltproc], [no])
AC_PATH_PROG([XGETTEXT], [xgettext], [no])
if test "$XGETTEXT" = "no"; then
AC_MSG_ERROR([Please install gettext tools])
fi

View file

@ -15,6 +15,7 @@ actions:
srpm_build_deps:
- automake
- gcc
- gettext
- glib2-devel
- make
- systemd-devel