]> git.ozlabs.org Git - petitboot/blobdiff - configure.ac.in
configure: More helpful missing libudev message
[petitboot] / configure.ac.in
index 1b66244e98bbac222f827499cfb8772ebf63a8e2..305bb8d1af0c9308087e9583278ab9fa3461abcb 100644 (file)
@@ -31,6 +31,11 @@ LT_INIT
 AC_CHECK_HEADERS([stdarg.h])
 AC_CHECK_HEADERS([varargs.h])
 
+AC_CHECK_LIB([udev], [udev_new],
+       [],
+       [AC_MSG_FAILURE([The libudev development library is required by petitboot.  Try installing the package libudev-dev or libudev-devel.])]
+)
+
 dnl Checking for va_copy availability
 AC_MSG_CHECKING([for va_copy])
 AC_TRY_LINK([#include <stdarg.h>