1AC_DEFUN([AX_CHECK_UUID], [
2AC_CHECK_HEADER([uuid/uuid.h],[
3    AC_CHECK_LIB([uuid], [uuid_clear], [libuuid="y"])
4])
5AC_CHECK_HEADER([uuid.h],[libuuid="y"])
6AS_IF([test "$libuuid" != "y"], [
7    AC_MSG_ERROR([cannot find a valid uuid library])
8])
9])
10