mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 20:20:18 +01:00
st/xorg: Fixup configure
Make sure we always test for XEXT version.
Make sure that the user has a recent version of libkms and libdrm installed.
Note that the st/xorg code requires so new versions to work but these are
needed to make a proper vmwgfx_drv.so driver which is the only real user.
Cherry picked from 46cf606cd3
Conflicts:
configure.ac
This commit is contained in:
parent
bff128ff9c
commit
683a099954
1 changed files with 12 additions and 4 deletions
16
configure.ac
16
configure.ac
|
|
@ -22,6 +22,8 @@ LIBDRM_REQUIRED=2.4.15
|
||||||
LIBDRM_RADEON_REQUIRED=2.4.17
|
LIBDRM_RADEON_REQUIRED=2.4.17
|
||||||
DRI2PROTO_REQUIRED=2.1
|
DRI2PROTO_REQUIRED=2.1
|
||||||
GLPROTO_REQUIRED=1.4.11
|
GLPROTO_REQUIRED=1.4.11
|
||||||
|
LIBDRM_XORG_REQUIRED=2.4.17
|
||||||
|
LIBKMS_XORG_REQUIRED=1.0.0
|
||||||
|
|
||||||
dnl Check for progs
|
dnl Check for progs
|
||||||
AC_PROG_CPP
|
AC_PROG_CPP
|
||||||
|
|
@ -1203,7 +1205,7 @@ yes)
|
||||||
GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS egl"
|
GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS egl"
|
||||||
fi
|
fi
|
||||||
# Have only tested st/xorg on 1.6.0 servers
|
# Have only tested st/xorg on 1.6.0 servers
|
||||||
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.6.0],
|
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.6.0 libdrm >= $LIBDRM_XORG_REQUIRED libkms >= $LIBKMS_XORG_REQUIRED],
|
||||||
HAVE_XORG="yes"; GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS xorg",
|
HAVE_XORG="yes"; GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS xorg",
|
||||||
HAVE_XORG="no")
|
HAVE_XORG="no")
|
||||||
;;
|
;;
|
||||||
|
|
@ -1223,9 +1225,9 @@ yes)
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
xorg)
|
xorg)
|
||||||
PKG_CHECK_MODULES(XEXT, [xextproto >= 7.0.99.1],
|
PKG_CHECK_MODULES([LIBDRM_XORG], [libdrm >= $LIBDRM_XORG_REQUIRED])
|
||||||
HAVE_XEXTPROTO_71="yes"; DEFINES="$DEFINES -DHAVE_XEXTPROTO_71",
|
PKG_CHECK_MODULES([LIBKMS_XORG], [libkms >= $LIBKMS_XORG_REQUIRED])
|
||||||
HAVE_XEXTPROTO_71="no")
|
HAVE_XORG="yes"
|
||||||
;;
|
;;
|
||||||
es)
|
es)
|
||||||
# mesa/es is required to build es state tracker
|
# mesa/es is required to build es state tracker
|
||||||
|
|
@ -1237,6 +1239,12 @@ yes)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if test "x$HAVE_XORG" = xyes; then
|
||||||
|
PKG_CHECK_MODULES(XEXT, [xextproto >= 7.0.99.1],
|
||||||
|
HAVE_XEXTPROTO_71="yes"; DEFINES="$DEFINES -DHAVE_XEXTPROTO_71",
|
||||||
|
HAVE_XEXTPROTO_71="no")
|
||||||
|
fi
|
||||||
|
|
||||||
AC_ARG_WITH([egl-displays],
|
AC_ARG_WITH([egl-displays],
|
||||||
[AS_HELP_STRING([--with-egl-displays@<:@=DIRS...@:>@],
|
[AS_HELP_STRING([--with-egl-displays@<:@=DIRS...@:>@],
|
||||||
[comma delimited native displays libEGL supports, e.g.
|
[comma delimited native displays libEGL supports, e.g.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue