6 [http://git.profusion.mobi/cgit.cgi/kmod.git/])
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 m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])
16 AM_SILENT_RULES([yes])
17 LT_INIT([disable-static pic-only])
18 AC_PREFIX_DEFAULT([/usr])
24 AC_PROG_GCC_TRADITIONAL
26 AC_ARG_ENABLE([tools],
27 AS_HELP_STRING([--disable-tools], [disable building tools that provide same functionality as module-init-tools @<:@default=enabled@:>@]),
29 AM_CONDITIONAL([BUILD_TOOLS], [test "x$enable_tools" = "xyes"])
31 AC_ARG_ENABLE([logging],
32 AS_HELP_STRING([--disable-logging], [disable system logging @<:@default=enabled@:>@]),
33 [], enable_logging=yes)
34 AS_IF([test "x$enable_logging" = "xyes"], [
35 AC_DEFINE(ENABLE_LOGGING, [1], [System logging.])
38 AC_ARG_ENABLE([debug],
39 AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]),
40 [], [enable_debug=no])
41 AS_IF([test "x$enable_debug" = "xyes"], [
42 AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
45 CC_CHECK_CFLAGS_APPEND([ \
57 -Wmissing-include-dirs \
59 -Wold-style-definition \
62 -Wdeclaration-after-statement \
64 -Wmissing-prototypes \
67 -Wmissing-declarations \
75 -Wno-overlength-strings \
76 -Wno-unused-parameter \
77 -Wno-missing-field-initializers \
83 -Wp,-D_FORTIFY_SOURCE=2 \
86 -fdiagnostics-show-option \
87 -fno-strict-aliasing \
95 AC_CONFIG_HEADERS(config.h)
107 sysconfdir: ${sysconfdir}
109 includedir: ${includedir}
116 tools: ${enable_tools}
117 logging: ${enable_logging}
118 debug: ${enable_debug}