Fix API/ABI breakage in Mir 0.13/0.14.

This commit is contained in:
bschaefer 2016-02-21 15:19:35 -08:00
parent 89bd9d9389
commit 83c6740930
12 changed files with 541 additions and 203 deletions

View file

@ -1284,12 +1284,12 @@ AC_HELP_STRING([--enable-video-mir], [use Mir video driver [[default=yes]]]),
MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
save_CFLAGS="$CFLAGS"
CFLAGS="$save_CFLAGS $MIR_CFLAGS"
dnl This will disable Mir on Ubuntu < 14.04
dnl This will disable Mir on Ubuntu < 15.04 (Mir should be 0.14 at this point)
AC_TRY_COMPILE([
#include <mir_toolkit/mir_client_library.h>
],[
MirMotionToolType tool = mir_motion_tool_type_mouse;
MirPointerButton button = mir_pointer_button_primary;
],[
video_mir=yes
])