Files
xen/tools/m4/uuid.m4
T
Roger Pau Monne 35ab4e2279 autoconf: check for uuid.h or uuid/uuid.h with -luuid
Check for uuid/uuid.h and if found check for -luuid usability (Linux
case), if not, check for uuid (NetBSD). One of this tests has to
succeed to be able to build Xen tools.

Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
2012-03-14 14:19:42 +00:00

10 lines
250 B
Plaintext

AC_DEFUN([AX_CHECK_UUID], [
AC_CHECK_HEADER([uuid/uuid.h],[
AC_CHECK_LIB([uuid], [uuid_clear], [libuuid="y"])
])
AC_CHECK_HEADER([uuid.h],[libuuid="y"])
AS_IF([test "$libuuid" != "y"], [
AC_MSG_ERROR([cannot find a valid uuid library])
])
])