fix build for --disable-clients --enable-simple-clients
authorPekka Paalanen <ppaalanen@gmail.com>
Tue, 17 Apr 2012 13:49:12 +0000 (16:49 +0300)
committerPekka Paalanen <ppaalanen@gmail.com>
Thu, 26 Apr 2012 12:50:12 +0000 (15:50 +0300)
commitec2507695f92168590704ba234af23436a8720a7
tree42847b0b45d31d8527cdb1548a49dc3d52b8bb24
parentc3710f2379730ea7e216a0f9769e35b5918c2f1f
fix build for --disable-clients --enable-simple-clients

Simple clients were relying on AM_CFLAGS and AM_CPPFLAGS set for
toytoolkit clients. With toytoolkit clients disabled, the build fails
with missing wayland-client.h.

Move AM_CFLAGS and AM_CPPFLAGS outside of conditional sections, since
they are meant to be global settings.

Let simple clients override AM_CPPFLAGS with their own
SIMPLE_CLIENT_CFLAGS, which the configure script already sets up for us,
but was unused until now.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/Makefile.am