PKG_CHECK_MODULES confusingly does not check to see if a static version
of the library is available.
Actually with older glibc, it might fail as lpthread needs to be passed
to linker flags (Libs.private in pc files) which can only be obtained if
--static is passed to pkg-config.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
], [])
if test "x$need_uuid" = "xyes"; then
- PKG_CHECK_MODULES(UUID, [uuid], [], [uuid_missing="yes"])
+ PKG_CHECK_MODULES(UUID, [uuid], [],
+ [PKG_CHECK_MODULES_STATIC(UUID, [uuid], [], [uuid_missing="yes"])])
fi
if test "x$need_clock_gettime" = "xyes"; then