config.libs.sh: reintroduce HAVE_X11 check

Current behaviour would force check_val to check for X11 even if explicitly disabled.

Fixes Raspberry Pi build (which requires --disable-x11).
This commit is contained in:
Conn O'Griofa 2017-12-29 01:42:43 +00:00
parent 258c8acdad
commit 010aa8061f

View File

@ -398,7 +398,7 @@ check_pkgconf FREETYPE freetype2
check_pkgconf X11 x11
check_pkgconf XCB xcb
if [ "$OS" != 'Darwin' ]; then
if [ "$HAVE_X11" != 'no' ] && [ "$OS" != 'Darwin' ]; then
check_val '' X11 -lX11
fi