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