SOURCES: ntop-am.patch - fix am to build xmldump
glen
glen at pld-linux.org
Mon Jan 2 14:47:37 CET 2006
Author: glen Date: Mon Jan 2 13:47:37 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix am to build xmldump
---- Files affected:
SOURCES:
ntop-am.patch (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SOURCES/ntop-am.patch
diff -u SOURCES/ntop-am.patch:1.3 SOURCES/ntop-am.patch:1.4
--- SOURCES/ntop-am.patch:1.3 Mon Jan 2 02:03:45 2006
+++ SOURCES/ntop-am.patch Mon Jan 2 14:47:31 2006
@@ -31,3 +31,69 @@
echo
echo "Welcome to $PACKAGE_NAME, Version $PACKAGE_VERSION $NTOP_VERSION_EXTRA"
+diff -ur ntop-3.2/Makefile.am ntop-3.2.am/Makefile.am
+--- ntop-3.2/Makefile.am 2006-01-02 12:32:14.000000000 +0200
++++ ntop-3.2.am/Makefile.am 2006-01-02 12:28:11.000000000 +0200
+@@ -46,13 +46,6 @@
+ CLEANFILES = $(DISTCLEANFILES)
+ INSTALLCLEANFILES = addressQueue.db dnsCache.db
+
+-#
+-# Fake out the missing tests for the auto* tools
+-#
+-ACLOCAL = /bin/sh ./missing --run echo
+-AUTOCONF = /bin/sh ./missing --run echo
+-AUTOMAKE = /bin/sh ./missing --run echo
+-AUTOHEADER = /bin/sh ./missing --run echo
+
+ # A list of all the files in the current directory which can be regenerated
+ MAINTAINERCLEANFILES = COPYING Makefile.in aclocal.m4 config.guess \
+diff -ur ntop-3.2/configure.in ntop-3.2.am/configure.in
+--- ntop-3.2/configure.in 2006-01-02 12:32:14.000000000 +0200
++++ ntop-3.2.am/configure.in 2006-01-02 12:27:48.000000000 +0200
+@@ -1827,6 +1827,7 @@
+ AC_DEFINE(HAVE_ISINF,1,we have the isinf function)],[AC_MSG_RESULT(no)])])
+
+ dnl> XML dump (plugin)
++AM_PATH_GLIB_2_0(2.0.0, CFLAGS="$CFLAGS $GLIB_CFLAGS", AC_MSG_ERROR(GLib2 distribution not found.), gmodule)
+ AC_CHECK_HEADERS(glib.h glibconfig.h)
+ AC_CHECK_HEADERS(gdome.h)
+
+diff -u ntop-3.2/configure.in ntop-3.2.gdome/configure.in
+--- ntop-3.2/configure.in 2006-01-02 15:42:02.000000000 +0200
++++ ntop-3.2.gdome/configure.in 2006-01-02 14:45:38.000000000 +0200
+@@ -1827,9 +1827,21 @@
+ AC_DEFINE(HAVE_ISINF,1,we have the isinf function)],[AC_MSG_RESULT(no)])])
+
+ dnl> XML dump (plugin)
+-AM_PATH_GLIB_2_0(2.0.0, CFLAGS="$CFLAGS $GLIB_CFLAGS", AC_MSG_ERROR(GLib2 distribution not found.), gmodule)
++AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR(GLib2 distribution not found.), gmodule)
++
++CPPFLAGS_save="$CPPFLAGS"
++CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
+ AC_CHECK_HEADERS(glib.h glibconfig.h)
++CPPFLAGS="$CPPFLAGS_save"
++
++PKG_CHECK_MODULES(GDOME, gdome2 >= 0.7.0,, AC_MSG_ERROR(could not find Gdome2))
++AC_SUBST(GDOME_CFLAGS)
++AC_SUBST(GDOME_LIBS)
++
++CPPFLAGS_save="$CPPFLAGS"
++CPPFLAGS="$CPPFLAGS $GDOME_CFLAGS"
+ AC_CHECK_HEADERS(gdome.h)
++CPPFLAGS="$CPPFLAGS_save"
+
+ AC_TYPE_PID_T
+ dnl> Autoconf2: AC_CHECK_TYPE(pid_t, int)
+diff -u ntop-3.2/plugins/Makefile.am ntop-3.2.gdome/plugins/Makefile.am
+--- ntop-3.2/plugins/Makefile.am 2006-01-02 15:42:02.000000000 +0200
++++ ntop-3.2.gdome/plugins/Makefile.am 2006-01-02 15:41:18.000000000 +0200
+@@ -84,7 +84,7 @@
+
+ libxmldumpPlugin_la_SOURCES = xmldumpPlugin.c
+ libxmldumpPlugin_la_LDFLAGS = -shared -release @PACKAGE_VERSION@ @DYN_FLAGS@
+-libxmldumpPlugin_la_CFLAGS = $(AM_CFLAGS)
++libxmldumpPlugin_la_CFLAGS = $(AM_CFLAGS) $(GDOME_CFLAGS) $(GLIB_CFLAGS)
+
+ #
+ # Dependencies to allow ntop loading plugins on-place
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/ntop-am.patch?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list