configure: fix uuid support detection on static build
authorSamuel Martin <s.martin49@gmail.com>
Wed, 1 Jun 2016 19:56:32 +0000 (21:56 +0200)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 25 Jul 2016 19:09:25 +0000 (15:09 -0400)
commit2741f55be80ae8af169ae795ea28d2a39c18fa60
tree0c81458c5a60c4c72e74f9806c17ec63a7008e09
parent93830bc19f9db43f419eeecd8d292a5902d1c712
configure: fix uuid support detection on static build

This change adds uuid detection using pkg-config helper before falling
back on the standard AC_CHECK_LIB detection for platforms missing
pkg-config.

AC_CHECK_LIB function achieves its test by trying to link against the
requested library, without taking care of its dependency
requirements/flags that may differ between different targets.
Therefore, in case of static build, it can fail on the uuid detection
like [1], because the uuid's dependency flags (regarding gettext) are
missing.

Instead, using pkg-config to do the check will take care of getting and
setting all required flags.

This issue [1] has been triggered on Buildroot farms.

[1] http://autobuild.buildroot.net/results/43b/43b98ddf9eb44152ed9ac4a98d887af14831d8da/build-end.log

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
configure.ac
This page took 0.023935 seconds and 4 git commands to generate.