-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
67 lines (49 loc) · 1.31 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
# $Id$
AC_PREREQ(2.61)
AC_INIT([hsmbully],[0.1],[[email protected]])
AM_INIT_AUTOMAKE
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE(foreign)
AC_CONFIG_SRCDIR([src/hsmbully.c])
AC_CONFIG_HEADER([config.h])
AC_USE_SYSTEM_EXTENSIONS
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
ACX_PEDANTIC
ACX_STRICT
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_STDBOOL
AC_CHECK_HEADERS([stdlib.h stdio.h math.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
ACX_DLOPEN
ACX_CUNIT
if test -z "$CUNIT_LIBS"; then
AC_MSG_ERROR([cunit library required])
fi
AC_ARG_WITH(pkcs11-softhsm,
AS_HELP_STRING([--with-pkcs11-softhsm=PATH],[specify path of SoftHSM library to use for regression testing (default PREFIX/lib/libsofthsm.so)]),
[ pkcs11_softhsm_module="$withval" ],
[ pkcs11_softhsm_module="/usr/local/lib/libsofthsm.so" ]
)
AC_SUBST(pkcs11_softhsm_module)
AC_ARG_WITH(softhsm,
AS_HELP_STRING([--with-softhsm=PATH],[specify path of SoftHSM binary to use for regression testing (default PREFIX/bin/softhsm)]),
[ softhsm_bin="$withval" ],
[ softhsm_bin="/usr/local/bin/libsofthsm.so" ]
)
AC_SUBST(softhsm_bin)
AC_CONFIG_FILES([
Makefile
src/Makefile
checks/Makefile
checks/softhsm.sh
])
AC_OUTPUT