From 9f93cefb40104828049e6de82f98c1f110a684a5 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 4 Apr 2015 10:35:14 +0200 Subject: [PATCH] Fix test suite compilation This didn't find xcb_errors.h for out-of-tree builds. Fix this by using $(srcdir) correctly. Also, the test suite makes use of libxcb and thus should link against it. Signed-off-by: Uli Schlachter --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 4703f74..746cde3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -30,8 +30,8 @@ pkgconfig_DATA = xcb-errors.pc TESTS = tests/test check_PROGRAMS = tests/test tests_test_SOURCE = tests/test.c -tests_test_CPPFLAGS = -Isrc/ -tests_test_LDADD = libxcb-errors.la +tests_test_CPPFLAGS = -I$(srcdir)/src/ $(XCB_CFLAGS) +tests_test_LDADD = libxcb-errors.la $(XCB_LIBS) CLEANFILES = src/extensions.c