]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
fix glib-2.0 dependency problem in rrdcached build
authorTobias Oetiker <tobi@oetiker.ch>
Mon, 29 Sep 2014 22:40:06 +0000 (00:40 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Mon, 29 Sep 2014 22:40:06 +0000 (00:40 +0200)
configure.ac
doc/RRDp.pod [deleted symlink]
doc/RRDs.pod [deleted symlink]
m4/acinclude.m4
src/Makefile.am

index 6dc4bba12abc40565d0106565e5b34fb9a884b71..9e934595b102f9bfd27de830eb6a549fa3dbe9aa 100644 (file)
@@ -525,6 +525,10 @@ AM_CONDITIONAL(BUILD_RRDGRAPH,[test $enable_rrd_graph != no])
 
 CORE_LIBS="$LIBS"
 
+EX_CHECK_ALL(glib-2.0,   glib_check_version,            glib.h,                 glib-2.0,    2.28.7, ftp://ftp.gtk.org/pub/glib/2.28/, "")
+GLIB_LIBS=$THIS_LIB
+AC_SUBST(GLIB_LIBS)
+
 if test $enable_rrd_graph != no; then
 dnl EX_CHECK_ALL(z,          zlibVersion,               zlib.h,                 zlib,        1.2.5,  http://zlib.net/, "")
 dnl EX_CHECK_ALL(png,        png_access_version_number, png.h,                  libpng,      1.4.8,  ftp://ftp.simplesystems.org/pub/libpng/png/src/, "")
@@ -535,9 +539,7 @@ EX_CHECK_ALL(cairo,      cairo_svg_surface_create,      cairo-svg.h,
 EX_CHECK_ALL(cairo,      cairo_pdf_surface_create,      cairo-pdf.h,            cairo-pdf,   1.10.2,  http://cairographics.org/releases/, "")
 EX_CHECK_ALL(cairo,      cairo_ps_surface_create,       cairo-ps.h,             cairo-ps,    1.10.2,  http://cairographics.org/releases/, "")
 EX_CHECK_ALL(pangocairo-1.0,  pango_cairo_context_set_font_options,  pango/pango.h,  pangocairo,  1.28.4,    http://ftp.gnome.org/pub/GNOME/sources/pango/1.28, "")
-
 fi
-EX_CHECK_ALL(glib-2.0,   glib_check_version,            glib.h,                 glib-2.0,    2.28.7, ftp://ftp.gtk.org/pub/glib/2.28/, "")
 EX_CHECK_ALL(xml2,       xmlParseFile,                  libxml/parser.h,        libxml-2.0,        2.7.8,  http://xmlsoft.org/downloads.html, /usr/include/libxml2)
 
 if test "$EX_CHECK_ALL_ERR" = "YES"; then
diff --git a/doc/RRDp.pod b/doc/RRDp.pod
deleted file mode 120000 (symlink)
index 11703f7..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../bindings/perl-piped/RRDp.pm
\ No newline at end of file
diff --git a/doc/RRDs.pod b/doc/RRDs.pod
deleted file mode 120000 (symlink)
index 30a99d2..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../bindings/perl-shared/RRDs.pm
\ No newline at end of file
index 6aed223893471dd35fb1a7d0d1d53075807e590f..5eff6de64c2ce8a137e2a20ed2bfc402a5804916 100644 (file)
@@ -35,6 +35,7 @@ AC_DEFUN([EX_CHECK_ALL],
              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L $4`
              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other $4`
              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l $4`
+             THIS_LIB=`$PKGCONFIG --libs-only-l $4`
             dnl remove the cached value and test again
             unset ac_cv_lib_`echo $1 | sed ['s/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/']`_$2
              AC_CHECK_LIB($1,$2,[
index f0a544853135b1c207513caff39a309e537f32c4..d9993b95ce2c2c45c6279384b1a3a97cc0f29251 100644 (file)
@@ -9,9 +9,8 @@ if STATIC_PROGRAMS
 AM_LDFLAGS = -all-static
 endif
 
-INCLUDES = -DLOCALEDIR="\"$(datadir)/locale\""
 RRD_DEFAULT_FONT=@RRD_DEFAULT_FONT@
-AM_CPPFLAGS = -DRRD_DEFAULT_FONT=\"$(RRD_DEFAULT_FONT)\" -DNUMVERS=@NUMVERS@
+AM_CPPFLAGS = -DRRD_DEFAULT_FONT=\"$(RRD_DEFAULT_FONT)\" -DNUMVERS=@NUMVERS@ -DLOCALEDIR="\"$(datadir)/locale\"" 
 AM_CFLAGS = @CFLAGS@
 ## no including this by default @WERROR@
 
@@ -116,6 +115,7 @@ rrdtool_LDADD       = librrd.la
 rrdcached_SOURCES = rrd_daemon.c
 rrdcached_DEPENDENCIES = librrd_th.la
 rrdcached_CPPFLAGS = -DVERSION='"$(VERSION)"' -DLOCALSTATEDIR='"$(localstatedir)"'
+rrdcached_LIBADD = $(GLIB_LIBS)
 rrdcached_LDADD = librrd_th.la
 
 pkgconfigdir = $(libdir)/pkgconfig