blob: 30840288a9af1e97f675a84f887afe41e9da725a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
AC_INIT(module/p11-log.c)
AM_INIT_AUTOMAKE(p11-log, 0.2)
AC_CONFIG_HEADERS(config.h)
AM_PROG_LIBTOOL
# Debug mode
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],
[Compile binaries in debug mode]))
if test "$enable_debug" = "yes"; then
CFLAGS="$CFLAGS -g -O0 -Wall -Werror"
AC_DEFINE_UNQUOTED(_DEBUG, 1, [In debug mode])
echo "enabling debug compile mode"
else
echo "disabling debug compile mode"
fi
AC_CHECK_LIB(dl, dlopen, , [echo "ERROR: libdl not found."; exit 1])
AC_OUTPUT([Makefile pkcs11/Makefile module/Makefile])
|