From: Ian Abbott Date: Wed, 11 May 2011 10:45:07 +0000 (+0100) Subject: COMEDILIB_CFLAGS: Fix for separate build directory. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cf20e6af6bb33716d7cc5cdf34a86ec04f2d5be4;p=comedilib.git 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 --- 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)