2b939e
--- openjdk/common/autoconf/help.m4	2016-02-29 17:10:45.542747800 +0100
2b939e
+++ openjdk/common/autoconf/help.m4	2016-02-29 17:10:45.500748539 +0100
2b939e
@@ -112,7 +112,7 @@
2b939e
     pulse)
2b939e
       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
2b939e
     x11)
2b939e
-      PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
2b939e
+      PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev libXcomposite-dev" ;;
2b939e
     ccache)
2b939e
       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
2b939e
   esac
2b939e
--- openjdk/common/autoconf/libraries.m4	2016-02-29 17:10:45.716744742 +0100
2b939e
+++ openjdk/common/autoconf/libraries.m4	2016-02-29 17:10:45.675745462 +0100
2b939e
@@ -153,7 +153,7 @@
2b939e
   CFLAGS="$CFLAGS $X_CFLAGS"
2b939e
 
2b939e
   # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10
2b939e
-  AC_CHECK_HEADERS([X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h],
2b939e
+  AC_CHECK_HEADERS([X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h X11/extensions/Xcomposite.h],
2b939e
       [X11_A_OK=yes],
2b939e
       [X11_A_OK=no; break],
2b939e
       [
2b939e
@@ -167,7 +167,7 @@
2b939e
 
2b939e
   if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then
2b939e
     HELP_MSG_MISSING_DEPENDENCY([x11])
2b939e
-    AC_MSG_ERROR([Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG])
2b939e
+    AC_MSG_ERROR([Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h Xcomposite.h). $HELP_MSG])
2b939e
   fi
2b939e
 
2b939e
   AC_SUBST(X_CFLAGS)