config: Stop config if it cannot find the required program
PATCH 1/1 config: Stop config if it cannot find the required program
From: Tedd Ho-Jeong An <[email protected]>
This patch stops the config and displays an error message if the config cannot find the required program like xxd or openssl when the maintainer mode is enabled.
--- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+)
configure.ac +6 -0
@@ -126,7 +126,13 @@ AM_CONDITIONAL(GLIB, test "${enable_glib}" = "yes") if (test "$USE_MAINTAINER_MODE" = "yes"); then AC_CHECK_PROG(have_openssl, [openssl], [yes], [no]) + if (test "${have_openssl}" != "yes"); then + AC_MSG_ERROR(openssl is required) + fi AC_CHECK_PROG(have_xxd, [xxd], [yes], [no]) + if (test "${have_xxd}" != "yes"); then + AC_MSG_ERROR(xxd is required) + fi fi AM_CONDITIONAL(DBUS_TESTS, test "${little_endian}" = "yes")
Signature · 1 line
2.29.2