Add uuid to Requires.private in .pc only when pkgconfig macro found it
This commit is contained in:
parent
07bd14c5c7
commit
af687139f2
|
@ -337,6 +337,9 @@ CFLAGS="$fontconfig_save_cflags"
|
||||||
#
|
#
|
||||||
if test "$os_win32" != "yes"; then
|
if test "$os_win32" != "yes"; then
|
||||||
use_pkgconfig_for_uuid=yes
|
use_pkgconfig_for_uuid=yes
|
||||||
|
if test -n "${UUID_LIBS}"; then
|
||||||
|
save_UUID_LIBS=$UUID_LIBS
|
||||||
|
fi
|
||||||
PKG_CHECK_MODULES([UUID], [uuid],
|
PKG_CHECK_MODULES([UUID], [uuid],
|
||||||
[use_pkgconfig_for_uuid=yes],
|
[use_pkgconfig_for_uuid=yes],
|
||||||
[use_pkgconfig_for_uuid=no])
|
[use_pkgconfig_for_uuid=no])
|
||||||
|
@ -351,7 +354,9 @@ if test "$os_win32" != "yes"; then
|
||||||
*** uuid is required. install util-linux.
|
*** uuid is required. install util-linux.
|
||||||
])])
|
])])
|
||||||
else
|
else
|
||||||
PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY uuid"
|
if test -z "${save_UUID_LIBS+x}" && test "x${UUID_LIBS}" != "x"; then
|
||||||
|
PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY uuid"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
UUID_CFLAGS=""
|
UUID_CFLAGS=""
|
||||||
|
|
Loading…
Reference in New Issue