From a682c6776da7d2f511ddb520660922436c9fbbf1 Mon Sep 17 00:00:00 2001 From: Lin Ma Date: Tue, 10 Apr 2018 15:42:55 +0800 Subject: [PATCH] configure: output clearer message when missing libmagic Some of users probably don't know which packages they exactly need to install while they experienced the error message: libmagic (part of the "file" command) is required. So add corresponding package information into error message. Signed-off-by: Lin Ma --- m4/guestfs-libraries.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/m4/guestfs-libraries.m4 b/m4/guestfs-libraries.m4 index 647bea9ec..17cf556d9 100644 --- a/m4/guestfs-libraries.m4 +++ b/m4/guestfs-libraries.m4 @@ -263,7 +263,8 @@ AC_CHECK_LIB([magic],[magic_file],[ ], []) ],[]) AS_IF([test -z "$MAGIC_LIBS"], - [AC_MSG_ERROR([libmagic (part of the "file" command) is required])]) + [AC_MSG_ERROR([libmagic (part of the "file" command) is required. + Please install the file devel package])]) dnl libvirt (highly recommended) AC_ARG_WITH([libvirt],[