Skip to content

Commit

Permalink
Compiles against ssdeep in non-standard location
Browse files Browse the repository at this point in the history
Issue 871: (*nix) Tacks on the include and lib directory when
a the user specifies a path for ssdeep in an alternate location.
  • Loading branch information
skurtn authored and Felipe Zimmerle committed May 4, 2015
1 parent 2566600 commit d9bebfb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build/find_ssdeep.m4
Expand Up @@ -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"
])
Expand Down

0 comments on commit d9bebfb

Please sign in to comment.