configure.ac: bail out if guix and sed are not detected

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2023-09-20 14:44:37 +02:00
parent bee3614a59
commit f709ef6b0e
Signed by: GNUtoo
GPG Key ID: 5F5DFCC14177E263
1 changed files with 5 additions and 0 deletions

View File

@ -21,7 +21,12 @@ AC_PROG_MKDIR_P
AM_INIT_AUTOMAKE([foreign]) AM_INIT_AUTOMAKE([foreign])
AC_CHECK_PROG([GUIX], [guix], [guix]) AC_CHECK_PROG([GUIX], [guix], [guix])
AS_IF([test x"$GUIX" = x""],
[AC_MSG_ERROR([guix was not found in PATH ($PATH)])])
AC_CHECK_PROG([SED], [sed], [sed]) AC_CHECK_PROG([SED], [sed], [sed])
AS_IF([test x"$SED" = x""],
[AC_MSG_ERROR([sed was not found in PATH ($PATH)])])
AC_SUBST([DOMAIN], []) AC_SUBST([DOMAIN], [])
AC_SUBST([ENABLE_WIREGUARD], []) AC_SUBST([ENABLE_WIREGUARD], [])