From d9bebfb874fd546e76bf6827c0d5860bb138dec0 Mon Sep 17 00:00:00 2001 From: Kurt Newman Date: Tue, 21 Apr 2015 16:32:27 -0500 Subject: [PATCH] Compiles against ssdeep in non-standard location Issue 871: (*nix) Tacks on the include and lib directory when a the user specifies a path for ssdeep in an alternate location. --- build/find_ssdeep.m4 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build/find_ssdeep.m4 b/build/find_ssdeep.m4 index 3f298bcc..4b0c9aa9 100644 --- a/build/find_ssdeep.m4 +++ b/build/find_ssdeep.m4 @@ -25,20 +25,23 @@ AS_IF([test "x${test_paths}" != "x"], [ AC_MSG_CHECKING([for ssdeep path]) SSDEEP_LIB_NAME="fuzzy" + ssdeep_dir= if test -z "$withssdeep" -o "$withssdeep" = "yes"; then for i in ${test_paths}; do if test -f "$i/include/fuzzy.h"; then - SSDEEP_CFLAGS="-I$i" + SSDEEP_CFLAGS="-I$i/include" + ssdeep_dir=$i fi done else if test -f "$withssdeep/include/fuzzy.h"; then - SSDEEP_CFLAGS="-I$i" + SSDEEP_CFLAGS="-I$withssdeep/include" + ssdeep_dir=$withssdeep fi fi - SSDEEP_LDFLAGS="-lfuzzy" + SSDEEP_LDFLAGS="-L$ssdeep_dir/lib -lfuzzy" SSDEEP_LDADD="-lfuzzy" ])