Require configure flag to build this proto version.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Daniel Stone 2011-04-11 10:09:57 +10:00
parent ca39f67c2a
commit e19eaef83d

View file

@ -11,6 +11,14 @@ XORG_DEFAULT_OPTIONS
XORG_ENABLE_SPECS
XORG_WITH_ASCIIDOC(8.4.5)
AC_ARG_ENABLE(unstable-protocol,
AS_HELP_STRING([--enable-unstable-protocol],
[Enables compilation of yet-to-be-finalised protocol (default: disabled)]),
[UNSTABLE_PROTO=$enableval], [UNSTABLE_PROTO=no])
if ! test "x$UNSTABLE_PROTO" = xyes; then
AC_MSG_ERROR([This branch contains protocol elements which have not yet been finalised. When this branch is updated, you will probably need to recompile both the server, libXi, and input-using clients, and may experience crashes or undefined behaviour if you do not.])
fi
AC_OUTPUT([Makefile
specs/Makefile
inputproto.pc])