diff options
author | Petr Spacek <pspacek@redhat.com> | 2016-10-12 10:58:22 +0200 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-10-18 10:47:59 +0200 |
commit | 7b801682a64b2ba132ba9892831f8c3f5a51caf8 (patch) | |
tree | 5b241049d32b91711db0830b5c3914fb3db3db9e /daemons | |
parent | 651f1acac8212346fb579ff8911b43a3faf3867b (diff) | |
download | freeipa-7b801682a64b2ba132ba9892831f8c3f5a51caf8.tar.gz freeipa-7b801682a64b2ba132ba9892831f8c3f5a51caf8.tar.xz freeipa-7b801682a64b2ba132ba9892831f8c3f5a51caf8.zip |
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 <mbasti@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/configure.ac | 5 |
1 files changed, 1 insertions, 4 deletions
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 |