build: remove unnecessary AC_EXEEXT
[platform/upstream/libnetfilter_queue.git] / configure.ac
index a82c9f1..4f17aee 100644 (file)
@@ -1,33 +1,31 @@
 dnl Process this file with autoconf to create configure.
 
-AC_INIT
-AC_CANONICAL_SYSTEM
+AC_INIT([libnetfilter_queue], [1.0.1])
+AC_CONFIG_AUX_DIR([build-aux])
+AC_CANONICAL_HOST
 AC_CONFIG_MACRO_DIR([m4])
 
-AM_INIT_AUTOMAKE(libnetfilter_queue, 1.0.0)
+AM_INIT_AUTOMAKE([-Wall foreign subdir-objects
+       tar-pax no-dist-gzip dist-bzip2 1.6])
+
+dnl kernel style compile messages
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
 AC_PROG_CC
-AC_EXEEXT
+AM_PROG_CC_C_O
+AC_DISABLE_STATIC
 AM_PROG_LIBTOOL
 AC_PROG_INSTALL
 
-AC_SUBST(LIBTOOL_DEPS)
-
-case $target in 
+case "$host" 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)
+PKG_CHECK_MODULES([LIBNFNETLINK], [libnfnetlink >= 0.0.41])
 
 dnl Output the makefiles
-AC_OUTPUT(Makefile include/Makefile include/libnetfilter_queue/Makefile src/Makefile utils/Makefile libnetfilter_queue.pc doxygen.cfg)
+AC_CONFIG_FILES([Makefile include/Makefile include/libnetfilter_queue/Makefile
+       src/Makefile utils/Makefile libnetfilter_queue.pc doxygen.cfg])
+AC_OUTPUT