From 7b801682a64b2ba132ba9892831f8c3f5a51caf8 Mon Sep 17 00:00:00 2001 From: Petr Spacek Date: Wed, 12 Oct 2016 10:58:22 +0200 Subject: Build: modernize UUID library detection Use package config instead of checking headers. Package config is faster because it does not invoke compiler and guarantees proper linking flags because these are provided by package maintainer instead of hardcoded into build system. Reviewed-By: Martin Basti Reviewed-By: Alexander Bokovoy --- daemons/configure.ac | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'daemons') diff --git a/daemons/configure.ac b/daemons/configure.ac index 1d0209d51..34773f93a 100644 --- a/daemons/configure.ac +++ b/daemons/configure.ac @@ -135,10 +135,7 @@ AC_SUBST(SSL_LIBS) dnl --------------------------------------------------------------------------- dnl - Check for UUID library dnl --------------------------------------------------------------------------- -AC_CHECK_HEADERS(uuid/uuid.h,,[AC_MSG_ERROR([uuid/uuid.h not found])]) - -AC_CHECK_LIB(uuid, uuid_generate_time, [UUID_LIBS="-luuid"]) -AC_SUBST(UUID_LIBS) +PKG_CHECK_MODULES([UUID], [uuid], [], [AC_MSG_ERROR([libuuid not found])]) dnl --------------------------------------------------------------------------- dnl - Check for Python -- cgit