From: Marcus Comstedt Date: Thu, 14 Aug 2014 21:04:06 +0000 (+0200) Subject: Fix include paths for out-of-tree builds X-Git-Tag: libsigrok-0.4.0~1145 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=55e55a3f928460c9e20a14857bd27d312b4aadb3;p=libsigrok.git Fix include paths for out-of-tree builds --- diff --git a/Makefile.am b/Makefile.am index 6c769c11..915f0a9c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,7 +20,7 @@ ACLOCAL_AMFLAGS = -I autostuff -AM_CPPFLAGS = -Isrc -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"' +AM_CPPFLAGS = -I$(srcdir)/src -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"' lib_LTLIBRARIES = libsigrok.la diff --git a/configure.ac b/configure.ac index d2f8926a..9080e6a3 100644 --- a/configure.ac +++ b/configure.ac @@ -404,8 +404,8 @@ AC_CHECK_HEADERS([sys/mman.h sys/ioctl.h], [], [HW_BEAGLELOGIC="no"]) AC_SUBST(SR_PKGLIBS) -CFLAGS="$CFLAGS -I./include/libsigrok $LIB_CFLAGS" -CXXFLAGS="$CXXFLAGS -I./include -I./bindings/cxx/include $LIB_CFLAGS" +CFLAGS="$CFLAGS -Iinclude/libsigrok -I${srcdir}/include/libsigrok $LIB_CFLAGS" +CXXFLAGS="$CXXFLAGS -Iinclude/libsigrok -I${srcdir}/include -I${srcdir}/bindings/cxx/include $LIB_CFLAGS" # Find Java compiler and JNI includes for Java bindings.