Use the builtin uuid for OSX
https://bugs.freedesktop.org/show_bug.cgi?id=105366
This commit is contained in:
parent
f075ca1aea
commit
bb50f62b58
19
configure.ac
19
configure.ac
|
@ -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=""
|
||||
|
|
Loading…
Reference in New Issue