fix -I flags to support building out-of-source

When building out-of-source, the headers are located in subdirectories
in $(top_srcdir) rather than $(top_builddir). Adjust AM_CPPFLAGS
accordingly.

URL: https://bugs.gentoo.org/510522
This commit is contained in:
Michał Górny 2014-05-17 09:23:02 +02:00 committed by Mike Frysinger
parent 4f36e69934
commit fb29e4bf8d
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ MAINTAINERCLEANFILES = Makefile.in
AM_CPPFLAGS = \
-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
-I$(top_builddir)/src/lib \
-I$(top_srcdir)/src/lib \
$(X_CFLAGS)
if BUILD_X11