-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfigure.ac
69 lines (56 loc) · 2.25 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT(regxml_extractor, 0.4.0, [email protected])
AC_CONFIG_SRCDIR([scripts/regxml_extractor.sh.in])
AM_INIT_AUTOMAKE
AC_OUTPUT(Makefile deps/Makefile lib/Makefile scripts/Makefile)
# Checks for programs.
if test "$(uname -s)" = "Darwin"; then
AC_CHECK_PROG(HAVE_GETOPT,getopt,yes,,/opt/local/bin)
if test "$HAVE_GETOPT" = "yes"; then
AC_SUBST(GNU_GETOPT,/opt/local/bin/getopt)
else
AC_MSG_ERROR([OS X environment detected, but GNU getopt not found; please install the MacPort package 'getopt'. The BSD getopt included with OS X is known to be problematic.])
fi
else
AC_CHECK_PROG(HAVE_GETOPT,getopt,yes)
if test "$HAVE_GETOPT" = "yes"; then
AC_SUBST(GNU_GETOPT,getopt)
else
AC_MSG_ERROR([GNU getopt not found.])
fi
fi
AC_CHECK_PROG(HAVE_HIVEXML,hivexml,yes)
if test "$HAVE_HIVEXML" != "yes"; then
AC_MSG_ERROR([hivexml not found; refer to the README for Hivex compilation notes.])
fi
AC_CHECK_PROG(HAVE_ICAT,icat,yes)
if test "$HAVE_ICAT" != "yes"; then
AC_MSG_ERROR([icat not found; refer to the README for Sleuth Kit compilation notes.])
fi
AC_CHECK_PROG(HAVE_FIWALK,fiwalk,yes)
if test "$HAVE_FIWALK" != "yes"; then
AC_MSG_ERROR([fiwalk not found; refer to the README for Sleuth Kit compilation notes.])
fi
AC_CHECK_PROG(HAVE_XMLLINT,xmllint,yes)
if test "$HAVE_XMLLINT" != "yes"; then
AC_MSG_ERROR([xmllint not found; refer to the README notes on xmllint.])
fi
AC_CHECK_PROG(HAVE_SQLITE3,sqlite3,yes)
if test "$HAVE_SQLITE3" != "yes"; then
AC_MSG_ERROR([sqlite3 not found; please install it with your package manager (the package is most often named 'sqlite3').])
fi
AM_PATH_PYTHON(3.2)
AX_PYTHON_MODULE(argparse)
if test "$HAVE_PYMOD_ARGPARSE" != "yes"; then
AC_MSG_ERROR([Argparse Python module not found; this can be installed with 'easy_install argparse'.])
fi
AX_PYTHON_MODULE(sqlite3)
if test "$HAVE_PYMOD_SQLITE3" != "yes"; then
AC_MSG_ERROR([Sqlite3 Python module not found; you may need to install the sqlite3 development package and then rebuild your Python (see, e.g., the CentOS package script in deps/).])
fi
AC_CONFIG_FILES([
scripts/regxml_extractor.sh
])
AC_OUTPUT