]> git.ipfire.org Git - thirdparty/kmod.git/blame - configure.ac
Import skeleton from libabc
[thirdparty/kmod.git] / configure.ac
CommitLineData
ecd40ee4
LDM
1AC_PREREQ(2.60)
2AC_INIT([libabc],
3 [1],
4 [libabc-devel@example.com],
5 [libabc],
6 [http://www.example.com/libs/libabc/])
7AC_CONFIG_SRCDIR([libabc/libabc.c])
8AC_CONFIG_AUX_DIR([build-aux])
9AM_INIT_AUTOMAKE([check-news foreign 1.11 -Wall -Wno-portability silent-rules tar-pax dist-bzip2 subdir-objects])
10AC_PROG_CC_STDC
11AC_USE_SYSTEM_EXTENSIONS
12AC_SYS_LARGEFILE
13AC_CONFIG_MACRO_DIR([m4])
14AM_SILENT_RULES([yes])
15LT_INIT([disable-static pic-only])
16AC_PREFIX_DEFAULT([/usr])
17
18AC_ARG_ENABLE([logging],
19 AS_HELP_STRING([--disable-logging], [disable system logging @<:@default=enabled@:>@]),
20 [], enable_logging=yes)
21AS_IF([test "x$enable_logging" = "xyes"], [
22 AC_DEFINE(ENABLE_LOGGING, [1], [System logging.])
23])
24
25AC_ARG_ENABLE([debug],
26 AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]),
27 [], [enable_debug=no])
28AS_IF([test "x$enable_debug" = "xyes"], [
29 AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
30])
31
32AC_CONFIG_HEADERS(config.h)
33AC_CONFIG_FILES([
34 Makefile
35 libabc/libabc.pc
36])
37
38AC_OUTPUT
39AC_MSG_RESULT([
40 $PACKAGE $VERSION
41 ========
42
43 prefix: ${prefix}
44 sysconfdir: ${sysconfdir}
45 libdir: ${libdir}
46 includedir: ${includedir}
47
48 compiler: ${CC}
49 cflags: ${CFLAGS}
50 ldflags: ${LDFLAGS}
51
52 logging: ${enable_logging}
53 debug: ${enable_debug}
54])