6 [http://git.profusion.mobi/cgit.cgi/lucas/libkmod/])
8 AC_CONFIG_SRCDIR([libkmod/libkmod.c])
9 AC_CONFIG_AUX_DIR([build-aux])
10 AM_INIT_AUTOMAKE([check-news foreign 1.11 silent-rules tar-pax dist-bzip2 subdir-objects])
12 AC_USE_SYSTEM_EXTENSIONS
14 AC_CONFIG_MACRO_DIR([m4])
15 AM_SILENT_RULES([yes])
16 LT_INIT([disable-static pic-only])
17 AC_PREFIX_DEFAULT([/usr])
23 AC_PROG_GCC_TRADITIONAL
25 AC_ARG_ENABLE([tools],
26 AS_HELP_STRING([--disable-tools], [disable building tools that provide same functionality as module-init-tools @<:@default=enabled@:>@]),
28 AM_CONDITIONAL([BUILD_TOOLS], [test "x$enable_tools" = "xyes"])
30 AC_ARG_ENABLE([logging],
31 AS_HELP_STRING([--disable-logging], [disable system logging @<:@default=enabled@:>@]),
32 [], enable_logging=yes)
33 AS_IF([test "x$enable_logging" = "xyes"], [
34 AC_DEFINE(ENABLE_LOGGING, [1], [System logging.])
37 AC_ARG_ENABLE([debug],
38 AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]),
39 [], [enable_debug=no])
40 AS_IF([test "x$enable_debug" = "xyes"], [
41 AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
44 CC_CHECK_CFLAGS_APPEND([ \
56 -Wmissing-include-dirs \
58 -Wold-style-definition \
61 -Wdeclaration-after-statement \
63 -Wmissing-prototypes \
66 -Wmissing-declarations \
74 -Wno-overlength-strings \
75 -Wno-unused-parameter \
76 -Wno-missing-field-initializers \
82 -Wp,-D_FORTIFY_SOURCE=2 \
85 -fdiagnostics-show-option \
86 -fno-strict-aliasing \
94 AC_CONFIG_HEADERS(config.h)
106 sysconfdir: ${sysconfdir}
108 includedir: ${includedir}
115 tools: ${enable_tools}
116 logging: ${enable_logging}
117 debug: ${enable_debug}