Commit bb50f62b authored by Akira TAGOH's avatar Akira TAGOH
parent f075ca1a
......@@ -336,8 +336,23 @@ CFLAGS="$fontconfig_save_cflags"
# Check for uuid
#
if test "$os_win32" != "yes"; then
PKG_CHECK_MODULES([UUID], [uuid])
PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY uuid"
use_pkgconfig_for_uuid=yes
PKG_CHECK_MODULES([UUID], [uuid],
[use_pkgconfig_for_uuid=yes],
[use_pkgconfig_for_uuid=no])
if test "x$use_pkgconfig_for_uuid" = "xno"; then
AC_MSG_CHECKING([where uuid functions comes from])
AC_TRY_LINK([#include <uuid/uuid.h>],
[uuid_t a; uuid_generate(a);],
[AC_MSG_RESULT([builtin])
UUID_CFLAGS=""
UUID_LIBS=""
],[AC_MSG_ERROR([
*** uuid is required. install util-linux.
])])
else
PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY uuid"
fi
else
UUID_CFLAGS=""
UUID_LIBS=""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment