: ${UUID_LIBS='-luuid'}
+AC_ARG_ENABLE([uuidd],
+ AS_HELP_STRING([--disable-uuidd], [do not build the uuid daemon]),
+ [], enable_uuidd=auto
+)
+
+case "$enable_uuidd:$have_uuid" in
+yes:no)
+ AC_MSG_ERROR([cannot enable uuidd when libuuid is disabled]) ;;
+auto:*)
+ enable_uuidd=$have_uuid ;;
+esac
+if test "x$enable_uuidd" = xyes; then
+ AC_DEFINE(HAVE_UUIDD, 1, [Define to 1 if you want to use uuid daemon.])
+fi
+AM_CONDITIONAL(BUILD_UUIDD, test "x$enable_uuidd" = xyes)
+
+
AC_ARG_ENABLE([libblkid],
AS_HELP_STRING([--disable-libblkid], [do not build libblkid and blkid utilities]),
[], enable_libblkid=yes
return 0;
}
-#if defined(USE_UUIDD) && defined(HAVE_SYS_UN_H)
+#if defined(HAVE_UUIDD) && defined(HAVE_SYS_UN_H)
/* used in get_uuid_via_daemon() only */
static ssize_t read_all(int fd, char *buf, size_t count)
{
return -1;
}
-#else /* !defined(USE_UUIDD) && defined(HAVE_SYS_UN_H) */
+#else /* !defined(HAVE_UUIDD) && defined(HAVE_SYS_UN_H) */
static int get_uuid_via_daemon(int op, uuid_t out, int *num)
{
return -1;