summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-03-16 19:22:19 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-03-16 19:22:19 +0100
commit1500416a584393e5dbb42bc53cab3dc0513bc1ec (patch)
tree91edcd200f150a25fd1534cc851e2bcda1d00305 /configure.ac
parentc22222005ee41c56ed49a3440bbd6e52b0039de3 (diff)
configure.ac: new options --without-zlib and --without-uuid
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac32
1 files changed, 22 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index cfc056a..ed8e1e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -158,6 +158,14 @@ AC_ARG_WITH(giconv-includes,
AS_HELP_STRING(--with-giconv-includes=DIR,location of the giconv includes files),
[CPPFLAGS="${CPPFLAGS} -I${withval}"])
+AC_ARG_WITH([zlib],
+ AS_HELP_STRING(--without-zlib,disabled use of the zlib library),
+ [ use_zlib="y" ])
+
+AC_ARG_WITH([uuid],
+ AS_HELP_STRING(--without-uuid,disabled use of the uuid library),
+ [ use_uuid="y" ])
+
#AC_ARG_WITH([carvpath],
# AS_HELP_STRING(--without-carvpath,disabled use of the carvpath library (default is NO)),
# [ use_carvpath="n" ])
@@ -678,16 +686,18 @@ fi
AC_CHECK_HEADERS([sys/uuid.h uuid/uuid.h uuid.h])
found_uuid_function=yes
AC_CHECK_FUNCS([uuidgen],,[found_uuid_function=no])
-if test "${found_uuid_function}" = "no";
-then
- found_uuid_function=yes
- AC_SEARCH_LIBS(uuid_generate, uuid, , [ found_uuid_function=no ])
-fi
+if test -z "${use_uuid}"; then
+ if test "${found_uuid_function}" = "no";
+ then
+ found_uuid_function=yes
+ AC_SEARCH_LIBS(uuid_generate, uuid, , [ found_uuid_function=no ])
+ fi
-if test "${found_uuid_function}" = "no";
-then
- found_uuid_function=yes
- AC_SEARCH_LIBS(uuid_create, uuid, , [found_uuid_function=no])
+ if test "${found_uuid_function}" = "no";
+ then
+ found_uuid_function=yes
+ AC_SEARCH_LIBS(uuid_create, uuid, , [found_uuid_function=no])
+ fi
fi
if test "${found_uuid_function}" = "yes";
@@ -706,7 +716,9 @@ then
fi
fi
-AC_CHECK_LIB(z, compress2, [], AC_MSG_WARN(Missing function: compress2 in library zlib))
+if test -z "${use_zlib}"; then
+ AC_CHECK_LIB(z, compress2, [], AC_MSG_WARN(Missing function: compress2 in library zlib))
+fi
#
if test -z "${use_ewf}"; then
AC_CHECK_LIB(ewf,libewf_check_file_signature,[