From cf20e6af6bb33716d7cc5cdf34a86ec04f2d5be4 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Wed, 11 May 2011 11:45:07 +0100 Subject: [PATCH] COMEDILIB_CFLAGS: Fix for separate build directory. When doing an out-of-tree build, the comedi_version.h file is in the build tree, not in the source tree. The CFLAGS needs an additional -I option so the compiler can find it. Signed-off-by: Ian Abbott --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e59cb56..cd8cb72 100644 --- a/configure.ac +++ b/configure.ac @@ -85,7 +85,7 @@ AC_HEADER_STDC([]) AX_TLS -COMEDILIB_CFLAGS="$COMEDILIB_CFLAGS -I\$(top_srcdir)/include $COMEDILIB_DEBUG" +COMEDILIB_CFLAGS="$COMEDILIB_CFLAGS -I\$(top_srcdir)/include -I\$(top_builddir)/include $COMEDILIB_DEBUG" COMEDILIB_LIBS="$COMEDILIB_LIBS \$(top_builddir)/lib/libcomedi.la -lm" AC_SUBST(COMEDILIB_CFLAGS) AC_SUBST(COMEDILIB_LIBS) -- 2.26.2