chiark / gitweb /
configure.ac: print error if gperf is missing
[elogind.git] / configure.ac
index e81d999d9ea637dc3d8ad611f01114a1927f06ed..82c455ddcb8c10789b33d0d610c465fa75afc9c1 100644 (file)
@@ -51,6 +51,9 @@ AC_ARG_ENABLE([extras],
        [], [enable_extras=yes])
 if test "x$enable_extras" = xyes; then
        AC_PATH_PROG([GPERF], [gperf])
+       if test -z "$GPERF"; then
+               AC_MSG_ERROR([gperf is needed])
+       fi
 
        PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.7.0 gobject-2.0 >= 2.7.0])
        AC_SUBST([GLIB_CFLAGS])