-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
65 lines (55 loc) · 1.77 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
AC_PREREQ(2.60)
AC_INIT([dnstable-convert], [0.14.0])
AC_CONFIG_SRCDIR([dnstable_convert.c])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules subdir-objects])
AC_PROG_CC_STDC
AC_USE_SYSTEM_EXTENSIONS
AC_SYS_LARGEFILE
AC_CONFIG_MACRO_DIR([m4])
AM_SILENT_RULES([yes])
my_CFLAGS="-Wall -Wformat \
-Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
-Wpointer-arith -Wsign-compare -Wchar-subscripts \
-Wstrict-prototypes -Wshadow \
-Wformat-security"
AC_SUBST([my_CFLAGS])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([tests/tests.sh], [chmod +x tests/tests.sh])
AC_CHECK_HEADERS([sys/endian.h endian.h])
PKG_CHECK_MODULES([libdnstable], [libdnstable])
PKG_CHECK_MODULES([libnmsg], [libnmsg])
PKG_CHECK_MODULES([libmtbl], [libmtbl >= 1.7.0])
PKG_CHECK_MODULES([libwdns], [libwdns])
CPPFLAGS_SAVED=$CPPFLAGS
CPPFLAGS="$pkg_cv_libnmsg_CFLAGS $CPPFLAGS"
AC_CHECK_HEADERS([nmsg/sie/dnsdedupe.pb-c.h],
[],
[AC_MSG_ERROR([required header file not found])])
CPPFLAGS=$CPPFLAGS_SAVED
AX_PTHREAD([
LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
])
AC_PATH_PROG([ASCIIDOC], [a2x])
AM_CONDITIONAL([BUILD_MAN], [test -n "$ASCIIDOC"])
if test -n "$ASCIIDOC"; then
DOC_MAN_MSG="yes (asciidoc available)"
else
DOC_MAN_MSG="no (asciidoc not available)"
fi
AC_OUTPUT
AC_MSG_RESULT([
$PACKAGE $VERSION
compiler: ${CC}
cflags: ${CFLAGS}
ldflags: ${LDFLAGS}
libs: ${LIBS}
prefix: ${prefix}
sysconfdir: ${sysconfdir}
libdir: ${libdir}
includedir: ${includedir}
])