mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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>
10 lines
250 B
Plaintext
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])
|
|
])
|
|
])
|