Commit 2ebf9ff35ce38c9205ba2e17c34ce0b6db6fcfd5

brlcad 2008-05-04T04:31:07

have to add the default include dir path to the CPPFLAGS so we can find the headers

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/configure.ac b/configure.ac
index 1fb7f58..192d048 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,6 +50,11 @@ AM_CONDITIONAL(HAVE_CPPUNIT, test "x$CPPUNIT" != "xno")
 # Checks for library functions -- this isn't really used at the moment
 AC_CHECK_FUNCS([memset])
 
+dnl search the include directory (required for non-srcdir builds).
+dnl should come after the system services checks otherwise headers
+dnl may conflict.
+CPPFLAGS="$CPPFLAGS -I\${top_srcdir}/src"
+
 # Warning flags
 CPPFLAGS="${CPPFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wsign-compare"
 CFLAGS="${CFLAGS} -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs"