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 <lma@suse.com>
This commit is contained in:
Lin Ma
2018-04-10 15:42:55 +08:00
committed by Richard W.M. Jones
parent ec0bf981bd
commit a682c6776d

View File

@@ -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],[