]> git.ipfire.org Git - people/ms/libloc.git/blame - configure.ac
Draft initial database format
[people/ms/libloc.git] / configure.ac
CommitLineData
46aded9a
MT
1AC_PREREQ(2.60)
2AC_INIT([libloc],
3 [0],
4 [michael.tremer@ipfire.org],
5 [libloc],
6 [https://www.ipfire.org/])
7
8AC_CONFIG_SRCDIR([src/libloc.c])
9AC_CONFIG_AUX_DIR([build-aux])
10AM_INIT_AUTOMAKE([
11 foreign
12 1.11
13 -Wall
14 -Wno-portability
15 silent-rules
16 tar-pax
17 no-dist-gzip
18 dist-xz
19 subdir-objects
20])
21AC_PROG_CC_STDC
22AC_USE_SYSTEM_EXTENSIONS
23AC_SYS_LARGEFILE
24AC_CONFIG_MACRO_DIR([m4])
25AM_SILENT_RULES([yes])
26LT_INIT([
27 disable-static
28 pic-only
29])
30AC_PREFIX_DEFAULT([/usr])
31
32AC_PROG_SED
33AC_PROG_MKDIR_P
34
35AC_ARG_ENABLE([debug],
36 AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]),
37 [], [enable_debug=no])
38AS_IF([test "x$enable_debug" = "xyes"], [
39 AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
40])
41
42AC_CHECK_FUNCS([ \
43 __secure_getenv \
44 secure_getenv\
45])
46
47my_CFLAGS="\
48-Wall \
49-Wchar-subscripts \
50-Wformat-security \
51-Wmissing-declarations \
52-Wmissing-prototypes \
53-Wnested-externs \
54-Wpointer-arith \
55-Wshadow \
56-Wsign-compare \
57-Wstrict-prototypes \
58-Wtype-limits \
59"
60AC_SUBST([my_CFLAGS])
61
62AC_CONFIG_HEADERS(config.h)
63AC_CONFIG_FILES([
64 Makefile
65])
66
67AC_OUTPUT
68AC_MSG_RESULT([
69 $PACKAGE $VERSION
70 =====
71
72 prefix: ${prefix}
73 sysconfdir: ${sysconfdir}
74 libdir: ${libdir}
75 includedir: ${includedir}
76
77 compiler: ${CC}
78 cflags: ${CFLAGS}
79 ldflags: ${LDFLAGS}
80
81 logging: ${enable_logging}
82 debug: ${enable_debug}
83])