website-build: configure: make realpath and tar requirement work.

Before this change, we wanted to require realpath and tar and we check
for both but it didn't fail if they are not found.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2024-05-20 16:35:21 +02:00
parent be96a95bf9
commit 145ebf780a
Signed by: GNUtoo
GPG Key ID: 5F5DFCC14177E263
1 changed files with 7 additions and 7 deletions

View File

@ -68,8 +68,13 @@ AC_ARG_WITH([untitled-path],
AM_CONDITIONAL( [WANT_UNTITLED_PATH], [test x"$UNTITLED_PATH" != x""]) AM_CONDITIONAL( [WANT_UNTITLED_PATH], [test x"$UNTITLED_PATH" != x""])
# Check dependencies # Check dependencies
AC_CHECK_PROG([REALPATH], [realpath], [realpath]) AC_CHECK_PROG([FOUND_REALPATH], [realpath], [realpath])
AC_CHECK_PROG([TAR], [tar], [tar]) AS_IF([test x"$FOUND_REALPATH" = x""],
[AC_MSG_ERROR([realpath was not found in PATH ($PATH)])])
AC_CHECK_PROG([FOUND_TAR], [tar], [tar])
AS_IF([test x"$FOUND_TAR" = x""],
[AC_MSG_ERROR([tar was not found in PATH ($PATH)])])
AS_IF([test x"$guix" = x"yes"], AS_IF([test x"$guix" = x"yes"],
[AC_CHECK_PROG([FOUND_GUIX], [guix], [guix]) [AC_CHECK_PROG([FOUND_GUIX], [guix], [guix])
@ -147,11 +152,6 @@ AS_IF([test x"$guix" = x"yes"],
[AC_MSG_ERROR( [AC_MSG_ERROR(
[rm was not found in PATH ($PATH)])]) [rm was not found in PATH ($PATH)])])
AC_CHECK_PROG([FOUND_SED], [sed], [sed])
AS_IF([test x"$FOUND_SED" = x""],
[AC_MSG_ERROR(
[sed was not found in PATH ($PATH)])])
AC_CHECK_PROG([FOUND_TAIL], [tail], [tail]) AC_CHECK_PROG([FOUND_TAIL], [tail], [tail])
AS_IF([test x"$FOUND_TAIL" = x""], AS_IF([test x"$FOUND_TAIL" = x""],
[AC_MSG_ERROR( [AC_MSG_ERROR(