website: configure.ac: always check for cat.

In the Makefile we have the following:
    pages/footer.include: pages/footer.include.tmpl pages/footer-git-commit.include
    	cat \
        [...]

This rule is valid reguardless of the '--without-guix' configure
option, so we need to also check if cat is present when using guix to
build the website.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2024-09-27 02:12:30 +02:00
parent 2b1ba960c0
commit 5d4b43d4ea
Signed by: GNUtoo
GPG Key ID: 5F5DFCC14177E263
1 changed files with 5 additions and 6 deletions

View File

@ -86,6 +86,10 @@ AC_CHECK_PROG([FOUND_AWK], [awk], [awk])
AS_IF([test x"$FOUND_AWK" = x""], AS_IF([test x"$FOUND_AWK" = x""],
[AC_MSG_ERROR([awk was not found in PATH ($PATH)])]) [AC_MSG_ERROR([awk was not found in PATH ($PATH)])])
AC_CHECK_PROG([FOUND_CAT], [cat], [cat])
AS_IF([test x"$FOUND_CAT" = x""],
[AC_MSG_ERROR([cat was not found in PATH ($PATH)])])
AC_CHECK_PROG([FOUND_PRINTF], [printf], [printf]) AC_CHECK_PROG([FOUND_PRINTF], [printf], [printf])
AS_IF([test x"$FOUND_PRINTF" = x""], AS_IF([test x"$FOUND_PRINTF" = x""],
[AC_MSG_ERROR([printf was not found in PATH ($PATH)])]) [AC_MSG_ERROR([printf was not found in PATH ($PATH)])])
@ -112,12 +116,7 @@ AS_IF([test x"$guix" = x"yes"],
[AC_MSG_ERROR( [AC_MSG_ERROR(
[guix was not found in PATH ($PATH)])])], [guix was not found in PATH ($PATH)])])],
[AC_CHECK_PROG([FOUND_CAT], [cat], [cat]) [AC_CHECK_PROG([FOUND_CP], [cp], [cp])
AS_IF([test x"$FOUND_CAT" = x""],
[AC_MSG_ERROR(
[cat was not found in PATH ($PATH)])])
AC_CHECK_PROG([FOUND_CP], [cp], [cp])
AS_IF([test x"$FOUND_CP" = x""], AS_IF([test x"$FOUND_CP" = x""],
[AC_MSG_ERROR( [AC_MSG_ERROR(
[cp was not found in PATH ($PATH)])]) [cp was not found in PATH ($PATH)])])