From 44a00d58e2b7ec9fe31c74b92be7d0bd28aa5dd9 Mon Sep 17 00:00:00 2001
From: Brian Carrier <carrier@sleuthkit.org>
Date: Tue, 6 Aug 2013 09:04:15 -0400
Subject: [PATCH] Added libewf path to CXXFLAGS in configure.ac for scenarios
 where path is specified.  Patch by Willi Ballenthin

---
 configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 586bcf126..62e633a82 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,6 +83,7 @@ AX_PTHREAD( [
 # Not all compilers include /usr/local in the include and link path
 if test -d /usr/local/include; then
     CFLAGS="$CFLAGS -I/usr/local/include"
+    CXXFLAGS="$CFLAGS -I/usr/local/include" # Added this in case fiwalk needs it
     LDFLAGS="$LDFLAGS -L/usr/local/lib"
 fi
 
@@ -173,7 +174,8 @@ AS_IF([test "x$with_libewf" != "xno"],
     # Test the dir if they specified something beyond yes/no
     [AS_IF([test "x$with_libewf" != "xyes"],
         [AS_IF([test -d ${with_libewf}/include],
-            [CFLAGS="$CFLAGS -I${with_libewf}/include"
+            [CFLAGS="$CFLAGS -I${with_libewf}/include"  # TSK needs this
+                CXXFLAGS="$CXXFLAGS -I${with_libewf}/include"  # fiwalk needs this
                 LDFLAGS="$LDFLAGS -L${with_libewf}/lib"],
             # Dir given was not correct
             [AC_MSG_FAILURE([libewf directory not found at ${with_libewf}])])
-- 
GitLab