glamor: Use -lgl for Xephyr if GLX is unset.

I'm experimenting with that because of conflicts with GL dispatch tables.
This commit is contained in:
Eric Anholt 2009-08-20 10:49:41 -07:00 committed by Zhigang Gong
parent 8885b3b1ff
commit 41e3e580de

View File

@ -1998,6 +1998,10 @@ if test "$KDRIVE" = yes; then
if test "x$DRI" = xyes && test "x$GLX" = xyes; then
XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBGL libdrm"
fi
# The glamor stuff requires libGL, but that conflicts with GLX currently.
if test "x$GLX" = xno; then
XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS gl"
fi
PKG_CHECK_MODULES(XEPHYR, $XEPHYR_REQUIRED_LIBS, [xephyr="yes"], [xephyr="no"])
if test "x$XEPHYR" = xauto; then