From 9dc801d2b7073004679c4dc3f7a60b623bbfcbd5 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 18 Jul 2007 10:46:42 +0200 Subject: [PATCH] build-sys: add warning when libuuid is not found Signed-off-by: Karel Zak --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 35852f86..27058732 100644 --- a/configure.ac +++ b/configure.ac @@ -69,7 +69,12 @@ AC_DEFUN([UTIL_CHECK_LIB], [ AC_CHECK_LIB([$1], [$2], [], [have_$1=no]) AM_CONDITIONAL(AS_TR_CPP(HAVE_$1), [test $have_$1 = yes]) ]) + UTIL_CHECK_LIB(uuid, uuid_is_null) +if test $have_uuid = no; then + AC_MSG_WARN([uuid library is not found; mkswap(8) will not generate UUIDs]) +fi + UTIL_CHECK_LIB(util, openpty) UTIL_CHECK_LIB(termcap, tgetnum) -- 2.39.5