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])