* libnetfilter_conntrack: build system cleanup
@ 2010-10-30 22:08 Jan Engelhardt
2010-10-30 22:08 ` [PATCH 1/7] build: set Libs.private for pkgconfig file Jan Engelhardt
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Jan Engelhardt @ 2010-10-30 22:08 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel
The following changes since commit f52f7122c72515b21472e72f99b5fd7c0060dc87:
conntrack: fix independent metadata checkings in XML output (2010-10-28 16:56:42 +0200)
are available in the git repository at:
git://dev.medozas.de/libnetfilter_conntrack master
Jan Engelhardt (7):
build: set Libs.private for pkgconfig file
build: use sh -e, remove autom4te.cache
build: remove statements without effect
build: remove unused $(all_includes)
build: remove -fPIC flag
build: no need for error message in PKG_CHECK_MODULES
Update .gitignore
Make_global.am | 2 +-
Makefile.am | 4 ----
autogen.sh | 3 ++-
configure.ac | 13 -------------
libnetfilter_conntrack.pc.in | 1 +
qa/.gitignore | 2 ++
src/Makefile.am | 6 +++---
src/conntrack/Makefile.am | 3 +--
src/expect/Makefile.am | 3 +--
utils/.gitignore | 18 ++++++++++++++++++
10 files changed, 29 insertions(+), 26 deletions(-)
create mode 100644 qa/.gitignore
create mode 100644 utils/.gitignore
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/7] build: set Libs.private for pkgconfig file
2010-10-30 22:08 libnetfilter_conntrack: build system cleanup Jan Engelhardt
@ 2010-10-30 22:08 ` Jan Engelhardt
2010-10-30 22:08 ` [PATCH 2/7] build: use sh -e, remove autom4te.cache Jan Engelhardt
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Jan Engelhardt @ 2010-10-30 22:08 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel
Similar to the commit in iptables, add Libs.private to tell about
dependencies for static linking.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
libnetfilter_conntrack.pc.in | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libnetfilter_conntrack.pc.in b/libnetfilter_conntrack.pc.in
index e706c0a..857f993 100644
--- a/libnetfilter_conntrack.pc.in
+++ b/libnetfilter_conntrack.pc.in
@@ -12,4 +12,5 @@ Version: @VERSION@
Requires: libnfnetlink
Conflicts:
Libs: -L${libdir} -lnetfilter_conntrack
+Libs.private: @LIBNFNETLINK_LIBS@
Cflags: -I${includedir}
--
1.7.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/7] build: use sh -e, remove autom4te.cache
2010-10-30 22:08 libnetfilter_conntrack: build system cleanup Jan Engelhardt
2010-10-30 22:08 ` [PATCH 1/7] build: set Libs.private for pkgconfig file Jan Engelhardt
@ 2010-10-30 22:08 ` Jan Engelhardt
2010-10-30 22:08 ` [PATCH 3/7] build: remove statements without effect Jan Engelhardt
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Jan Engelhardt @ 2010-10-30 22:08 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel
sh -e (-x) will provide the same functionality as the run function
previously.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
autogen.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/autogen.sh b/autogen.sh
index 4989ed9..3b111ce 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
include ()
{
@@ -35,3 +35,4 @@ run ()
[ "x$1" = "xdistrib" ] && include
autoreconf -fi
+rm -Rf autom4te.cache
--
1.7.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 3/7] build: remove statements without effect
2010-10-30 22:08 libnetfilter_conntrack: build system cleanup Jan Engelhardt
2010-10-30 22:08 ` [PATCH 1/7] build: set Libs.private for pkgconfig file Jan Engelhardt
2010-10-30 22:08 ` [PATCH 2/7] build: use sh -e, remove autom4te.cache Jan Engelhardt
@ 2010-10-30 22:08 ` Jan Engelhardt
2010-10-30 22:08 ` [PATCH 4/7] build: remove unused $(all_includes) Jan Engelhardt
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Jan Engelhardt @ 2010-10-30 22:08 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
Makefile.am | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 3878a8d..ac90888 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,7 +10,3 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libnetfilter_conntrack.pc
EXTRA_DIST = Make_global.am
-
-$(OBJECTS): libtool
-libtool: $(LIBTOOL_DEPS)
- $(SHELL) ./config.status --recheck
--
1.7.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 4/7] build: remove unused $(all_includes)
2010-10-30 22:08 libnetfilter_conntrack: build system cleanup Jan Engelhardt
` (2 preceding siblings ...)
2010-10-30 22:08 ` [PATCH 3/7] build: remove statements without effect Jan Engelhardt
@ 2010-10-30 22:08 ` Jan Engelhardt
2010-10-30 22:08 ` [PATCH 5/7] build: remove -fPIC flag Jan Engelhardt
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Jan Engelhardt @ 2010-10-30 22:08 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
Make_global.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Make_global.am b/Make_global.am
index 0ef055e..955a626 100644
--- a/Make_global.am
+++ b/Make_global.am
@@ -4,4 +4,4 @@
# http://sources.redhat.com/autobook/autobook/autobook_91.html
LIBVERSION=3:2:0
-AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include
--
1.7.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 5/7] build: remove -fPIC flag
2010-10-30 22:08 libnetfilter_conntrack: build system cleanup Jan Engelhardt
` (3 preceding siblings ...)
2010-10-30 22:08 ` [PATCH 4/7] build: remove unused $(all_includes) Jan Engelhardt
@ 2010-10-30 22:08 ` Jan Engelhardt
2010-10-30 22:08 ` [PATCH 6/7] build: no need for error message in PKG_CHECK_MODULES Jan Engelhardt
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Jan Engelhardt @ 2010-10-30 22:08 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel
libtool automatically adds PIC flags as needed.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
src/Makefile.am | 2 +-
src/conntrack/Makefile.am | 2 +-
src/expect/Makefile.am | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 96446fb..7816f07 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -6,7 +6,7 @@ include $(top_srcdir)/Make_global.am
SUBDIRS=conntrack expect
-AM_CFLAGS = -fPIC -Wall
+AM_CFLAGS = -Wall
LIBS = @LIBNFCONNTRACK_LIBS@
lib_LTLIBRARIES = libnetfilter_conntrack.la
diff --git a/src/conntrack/Makefile.am b/src/conntrack/Makefile.am
index d989d10..51d03c0 100644
--- a/src/conntrack/Makefile.am
+++ b/src/conntrack/Makefile.am
@@ -1,6 +1,6 @@
include $(top_srcdir)/Make_global.am
-AM_CFLAGS = -fPIC -Wall
+AM_CFLAGS = -Wall
LIBS = @LIBNFCONNTRACK_LIBS@
noinst_LTLIBRARIES = libnfconntrack.la
diff --git a/src/expect/Makefile.am b/src/expect/Makefile.am
index b54e564..719ed23 100644
--- a/src/expect/Makefile.am
+++ b/src/expect/Makefile.am
@@ -1,6 +1,6 @@
include $(top_srcdir)/Make_global.am
-AM_CFLAGS = -fPIC -Wall
+AM_CFLAGS = -Wall
LIBS = @LIBNFCONNTRACK_LIBS@
noinst_LTLIBRARIES = libnfexpect.la
--
1.7.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 6/7] build: no need for error message in PKG_CHECK_MODULES
2010-10-30 22:08 libnetfilter_conntrack: build system cleanup Jan Engelhardt
` (4 preceding siblings ...)
2010-10-30 22:08 ` [PATCH 5/7] build: remove -fPIC flag Jan Engelhardt
@ 2010-10-30 22:08 ` Jan Engelhardt
2010-10-30 22:08 ` [PATCH 7/7] Update .gitignore Jan Engelhardt
2010-11-01 21:30 ` libnetfilter_conntrack: build system cleanup Pablo Neira Ayuso
7 siblings, 0 replies; 9+ messages in thread
From: Jan Engelhardt @ 2010-10-30 22:08 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel
PKG_CHECK_MODULES already produces its own (and more verbose) messsage
when a module cannot be found.
Mucking around with CFLAGS and LIBS is also not needed since pkgconfig
takes care of providing variables, so let's use them in Makefile.am.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
configure.ac | 13 -------------
src/Makefile.am | 6 +++---
src/conntrack/Makefile.am | 3 +--
src/expect/Makefile.am | 3 +--
4 files changed, 5 insertions(+), 20 deletions(-)
diff --git a/configure.ac b/configure.ac
index d5b65af..429f0a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,14 +19,6 @@ case "$host" in
esac
dnl Dependencies
-AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes)
-if test "x$HAVE_PKG_CONFIG" = "x"
-then
- echo "*** Error: No suitable pkg-config found. ***"
- echo " Please install the 'pkg-config' package."
- exit 1
-fi
-
PKG_CHECK_MODULES([LIBNFNETLINK], [libnfnetlink >= 1.0.0])
AC_CHECK_HEADERS(arpa/inet.h)
@@ -69,11 +61,6 @@ if test ! -z "$libdir"; then
CFLAGS="$CFLAGS -DLIBNETFILTER_CONNTRACK_DIR=$MODULE_DIR"
fi
-CFLAGS="$CFLAGS $LIBNFNETLINK_CFLAGS"
-LIBNFCONNTRACK_LIBS="$LIBNFNETLINK_LIBS"
-
-AC_SUBST(LIBNFCONNTRACK_LIBS)
-
dnl Output the makefile
AC_OUTPUT(Makefile src/Makefile include/Makefile utils/Makefile qa/Makefile include/libnetfilter_conntrack/Makefile include/internal/Makefile src/conntrack/Makefile src/expect/Makefile libnetfilter_conntrack.pc doxygen.cfg)
diff --git a/src/Makefile.am b/src/Makefile.am
index 7816f07..2e9ccd0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -6,13 +6,13 @@ include $(top_srcdir)/Make_global.am
SUBDIRS=conntrack expect
-AM_CFLAGS = -Wall
-LIBS = @LIBNFCONNTRACK_LIBS@
+AM_CFLAGS = -Wall ${LIBNFNETLINK_CFLAGS}
lib_LTLIBRARIES = libnetfilter_conntrack.la
libnetfilter_conntrack_la_LIBADD = conntrack/libnfconntrack.la \
- expect/libnfexpect.la
+ expect/libnfexpect.la \
+ ${LIBNFNETLINK_LIBS}
libnetfilter_conntrack_la_LDFLAGS = -Wc,-nostartfiles -lnfnetlink -ldl \
-version-info $(LIBVERSION)
libnetfilter_conntrack_la_SOURCES = main.c
diff --git a/src/conntrack/Makefile.am b/src/conntrack/Makefile.am
index 51d03c0..68c2d72 100644
--- a/src/conntrack/Makefile.am
+++ b/src/conntrack/Makefile.am
@@ -1,7 +1,6 @@
include $(top_srcdir)/Make_global.am
-AM_CFLAGS = -Wall
-LIBS = @LIBNFCONNTRACK_LIBS@
+AM_CFLAGS = -Wall ${LIBNFNETLINK_CFLAGS}
noinst_LTLIBRARIES = libnfconntrack.la
diff --git a/src/expect/Makefile.am b/src/expect/Makefile.am
index 719ed23..b0404ba 100644
--- a/src/expect/Makefile.am
+++ b/src/expect/Makefile.am
@@ -1,7 +1,6 @@
include $(top_srcdir)/Make_global.am
-AM_CFLAGS = -Wall
-LIBS = @LIBNFCONNTRACK_LIBS@
+AM_CFLAGS = -Wall ${LIBNFNETLINK_CFLAGS}
noinst_LTLIBRARIES = libnfexpect.la
--
1.7.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 7/7] Update .gitignore
2010-10-30 22:08 libnetfilter_conntrack: build system cleanup Jan Engelhardt
` (5 preceding siblings ...)
2010-10-30 22:08 ` [PATCH 6/7] build: no need for error message in PKG_CHECK_MODULES Jan Engelhardt
@ 2010-10-30 22:08 ` Jan Engelhardt
2010-11-01 21:30 ` libnetfilter_conntrack: build system cleanup Pablo Neira Ayuso
7 siblings, 0 replies; 9+ messages in thread
From: Jan Engelhardt @ 2010-10-30 22:08 UTC (permalink / raw)
To: pablo; +Cc: netfilter-devel
---
qa/.gitignore | 2 ++
utils/.gitignore | 18 ++++++++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)
create mode 100644 qa/.gitignore
create mode 100644 utils/.gitignore
diff --git a/qa/.gitignore b/qa/.gitignore
new file mode 100644
index 0000000..c6d43bb
--- /dev/null
+++ b/qa/.gitignore
@@ -0,0 +1,2 @@
+/test_api
+/test_filter
diff --git a/utils/.gitignore b/utils/.gitignore
new file mode 100644
index 0000000..7dd7bb8
--- /dev/null
+++ b/utils/.gitignore
@@ -0,0 +1,18 @@
+/conntrack_create
+/conntrack_create_nat
+/conntrack_delete
+/conntrack_dump
+/conntrack_events
+/conntrack_filter
+/conntrack_flush
+/conntrack_get
+/conntrack_grp_create
+/conntrack_master
+/conntrack_update
+/expect_create
+/expect_create_userspace
+/expect_delete
+/expect_dump
+/expect_events
+/expect_flush
+/expect_get
--
1.7.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: libnetfilter_conntrack: build system cleanup
2010-10-30 22:08 libnetfilter_conntrack: build system cleanup Jan Engelhardt
` (6 preceding siblings ...)
2010-10-30 22:08 ` [PATCH 7/7] Update .gitignore Jan Engelhardt
@ 2010-11-01 21:30 ` Pablo Neira Ayuso
7 siblings, 0 replies; 9+ messages in thread
From: Pablo Neira Ayuso @ 2010-11-01 21:30 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: netfilter-devel
On 31/10/10 00:08, Jan Engelhardt wrote:
> The following changes since commit f52f7122c72515b21472e72f99b5fd7c0060dc87:
>
> conntrack: fix independent metadata checkings in XML output (2010-10-28 16:56:42 +0200)
>
> are available in the git repository at:
> git://dev.medozas.de/libnetfilter_conntrack master
pulled and pushed, thanks
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-11-01 21:30 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-30 22:08 libnetfilter_conntrack: build system cleanup Jan Engelhardt
2010-10-30 22:08 ` [PATCH 1/7] build: set Libs.private for pkgconfig file Jan Engelhardt
2010-10-30 22:08 ` [PATCH 2/7] build: use sh -e, remove autom4te.cache Jan Engelhardt
2010-10-30 22:08 ` [PATCH 3/7] build: remove statements without effect Jan Engelhardt
2010-10-30 22:08 ` [PATCH 4/7] build: remove unused $(all_includes) Jan Engelhardt
2010-10-30 22:08 ` [PATCH 5/7] build: remove -fPIC flag Jan Engelhardt
2010-10-30 22:08 ` [PATCH 6/7] build: no need for error message in PKG_CHECK_MODULES Jan Engelhardt
2010-10-30 22:08 ` [PATCH 7/7] Update .gitignore Jan Engelhardt
2010-11-01 21:30 ` libnetfilter_conntrack: build system cleanup Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).