diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-10-30 23:36:50 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-10-30 23:36:50 +0200 |
commit | 45958eb88a8b4ddabb721187c7ddc15dd16232f9 (patch) | |
tree | 395389f2b623a87eaece2de1a09b5c39840423be /configure.ac | |
parent | 8d6a60cb89ebd330156e594456034e49a324a56e (diff) |
build: use autoconf-suggested naming of files
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..e0e1a41 --- /dev/null +++ b/configure.ac @@ -0,0 +1,35 @@ +dnl Process this file with autoconf to create configure. + +AC_INIT + +AC_CANONICAL_SYSTEM +AC_CONFIG_MACRO_DIR([m4]) + +AM_INIT_AUTOMAKE(libnetfilter_log, 1.0.0) + +AC_PROG_CC +AM_PROG_LIBTOOL +AC_PROG_INSTALL +AC_PROG_LN_S + +AC_SUBST(LIBTOOL_DEPS) + +case $target in +*-*-linux*) ;; +*) AC_MSG_ERROR([Linux only, dude!]);; +esac + +dnl Dependencies +LIBNFNETLINK_REQUIRED=0.0.41 + +PKG_CHECK_MODULES(LIBNFNETLINK, libnfnetlink >= $LIBNFNETLINK_REQUIRED,, + AC_MSG_ERROR(Cannot find libnfnetlink >= $LIBNFNETLINK_REQUIRED)) + +CFLAGS="$CFLAGS $LIBNFNETLINK_CFLAGS" +LIBNFLOG_LIBS="$LIBNFNETLINK_LIBS" + +AC_SUBST(LIBNFLOG_LIBS) + +dnl Output the makefile +AC_OUTPUT(Makefile src/Makefile include/Makefile include/libnetfilter_log/Makefile utils/Makefile libnetfilter_log.pc doxygen.cfg) + |