Imported Upstream version 1.0.3
[platform/upstream/libmnl.git] / configure.ac
1 dnl Process this file with autoconf to create configure.
2
3 AC_INIT([libmnl], [1.0.3])
4 AC_CONFIG_AUX_DIR([build-aux])
5 AC_CANONICAL_HOST
6 AC_CONFIG_MACRO_DIR([m4])
7 AC_CONFIG_HEADERS([config.h])
8 AM_INIT_AUTOMAKE([foreign tar-pax no-dist-gzip dist-bzip2 1.6 subdir-objects])
9
10 dnl kernel style compile messages
11 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
12
13 AC_PROG_CC
14 AM_PROG_CC_C_O
15 AC_EXEEXT
16 AC_DISABLE_STATIC
17 LT_INIT
18 CHECK_GCC_FVISIBILITY
19 case "$host" in
20 *-*-linux*) ;;
21 *) AC_MSG_ERROR([Linux only, dude!]);;
22 esac
23
24 regular_CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_REENTRANT"
25 regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \
26         -Wmissing-prototypes -Wshadow -Wstrict-prototypes \
27         -Wformat=2 -pipe"
28 AC_SUBST([regular_CPPFLAGS])
29 AC_SUBST([regular_CFLAGS])
30 AC_CONFIG_FILES([Makefile src/Makefile include/Makefile include/libmnl/Makefile include/linux/Makefile examples/Makefile examples/genl/Makefile examples/netfilter/Makefile examples/rtnl/Makefile libmnl.pc doxygen.cfg])
31 AC_OUTPUT