From 160f29e1944956994a81c36a5d4eec5900dd08b3 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 30 Oct 2010 23:03:12 +0200 Subject: build: build: use autoconf-suggested naming of files Signed-off-by: Jan Engelhardt --- configure.ac | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..a82c9f1 --- /dev/null +++ b/configure.ac @@ -0,0 +1,33 @@ +dnl Process this file with autoconf to create configure. + +AC_INIT +AC_CANONICAL_SYSTEM +AC_CONFIG_MACRO_DIR([m4]) + +AM_INIT_AUTOMAKE(libnetfilter_queue, 1.0.0) + +AC_PROG_CC +AC_EXEEXT +AM_PROG_LIBTOOL +AC_PROG_INSTALL + +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" +LIBNFQUEUE_LIBS="$LIBNFNETLINK_LIBS" + +AC_SUBST(LIBNFQUEUE_LIBS) + +dnl Output the makefiles +AC_OUTPUT(Makefile include/Makefile include/libnetfilter_queue/Makefile src/Makefile utils/Makefile libnetfilter_queue.pc doxygen.cfg) -- cgit v1.2.3