# build the following subdirectories
-SUBDIRS = po src examples doc bindings intl
+SUBDIRS = po src examples doc bindings
# the following files are not mentioned in any other Makefile
EXTRA_DIST = COPYRIGHT CHANGES WIN32-BUILD-TIPS.txt TODO CONTRIBUTORS THREADS \
# include <malloc/malloc.h>
#endif
-#include <rrd_config_bottom.h>
+#include "src/rrd_config_bottom.h"
#endif
])
dnl if there is no fdatasync we may get lucky with fsync
AC_CHECK_FUNCS(fsync)
+dnl check for socket and nsl solaris again ... we need this for the new rrd_daemon stuff
+
+AC_CHECK_FUNCS(socket, [], AC_CHECK_LIB(socket, socket, [LIBS="${LIBS} -lsocket"; AC_DEFINE(HAVE_SOCKET)],[]))
+AC_CHECK_FUNCS(getaddrinfo, [], AC_CHECK_LIB(nsl, getaddrinfo, [LIBS="${LIBS} -lnsl"; AC_DEFINE(HAVE_GETADDRINFO)],[]))
+
+
dnl XXX: dunno about windows.. add AC_CHECK_FUNCS(munmap) there too?
if test "x$enable_mmap" = "xyes"; then
#include "rrd_tool.h"
#include "rrd_client.h"
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#define y1 cairo_y1
#define index cairo_index
+/* this may configure __EXTENSIONS__ without which pango will fail to compile
+ so load this early */
+#include "../rrd_config.h"
+
#include <cairo.h>
#include <cairo-pdf.h>
#include <cairo-svg.h>
#include <cairo-ps.h>
-/* without this will not compile on solaris */
-#ifndef __EXTENSIONS__
-#define __EXTENSIONS__
-#endif
#include <pango/pangocairo.h>
* $Id$
*************************************************************************** */
+#include "rrd_tool.h"
+#include "rrd_rpncalc.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
# define close _close
#endif
-#include "rrd_tool.h"
-#include "rrd_rpncalc.h"
#define ARRAY_LENGTH(a) (sizeof (a) / sizeof ((a)[0]))
xmlChar *text;
double temp;
- if ((text = (char *)get_xml_text(reader))!= NULL){
- char *c = text;
- while (c){
- *c=tolower((unsigned char)(*c));
- c++;
- }
+ if ((text = get_xml_text(reader))!= NULL){
if (xmlStrcasestr(text,(xmlChar *)"nan")){
*value = DNAN;
xmlFree(text);