From cfaf1849ecbdfb0bdf0fc7312271d25bb32ba38d Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 9 Feb 2021 17:57:57 +0100 Subject: Warn about missing mig * configure.ac (MIG): Do not default to mig, and warn when this is missing. Advertise the MIG variable. --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 806a1da1..5d0ce2a3 100644 --- a/configure.ac +++ b/configure.ac @@ -89,7 +89,13 @@ AC_CHECK_TOOL([AR], [ar]) AC_CHECK_TOOL([LD], [ld]) AC_CHECK_TOOL([NM], [nm]) -AC_CHECK_TOOL([MIG], [mig], [mig]) +AC_CHECK_TOOL([MIG], [mig], [no]) +AC_ARG_VAR([MIG], [Path to the mig tool]) + +if test x$MIG = xno +then + AC_MSG_WARN([mig was not found, we will not be able to build a kernel, only install headers. Install or build mig against them, and run configure again. If you already did so, perhaps you need to specify the path with MIG=]) +fi dnl Needed for the Automake option `subdir-objects'. AM_PROG_CC_C_O -- cgit v1.2.3