$automake --foreign --add-missing --force-missing --copy --warnings=all
autoconf --warnings=all --force
# one again to make every body happy
+
autoreconf
# LIBS="$(LDFLAGS) $(LIBS)" $(PERLFLAGS) $(PERL_MAKE_OPTIONS)
clean-local:
- test -f perl-piped/Makefile && cd perl-piped && $(MAKE) clean || rm perl-piped/Makefile || true
- test -f perl-shared/Makefile && cd perl-shared && $(MAKE) clean || rm perl-shared/Makefile || true
+ test -f perl-piped/Makefile && cd perl-piped && $(MAKE) clean || true
+ test -f perl-piped/Makefile && rm perl-piped/Makefile || true
+ test -f perl-shared/Makefile && cd perl-shared && $(MAKE) clean || true
+ test -f perl-shared/Makefile && rm -f perl-shared/Makefile || true
##END##
*/
#define VERSION_SAVED VERSION
#undef VERSION
-#include "../../config.h"
+#include "../../rrd_config.h"
#include "../../src/rrd_tool.h"
#undef VERSION
#define VERSION VERSION_SAVED
AC_SUBST(NUMVERS)
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE
-AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_HEADERS([rrd_config.h])
dnl all our local stuff like install scripts and include files
dnl is in there
AH_TOP([
-#ifndef CONFIG_H
-#define CONFIG_H
+#ifndef RRD_CONFIG_H
+#define RRD_CONFIG_H
/* IEEE can be prevented from raising signals with fpsetmask(0) */
#undef MUST_DISABLE_FPMASK
#error "Can't compile without isinf function"
#endif
-#endif /* CONFIG_H */
+#endif /* RRD_CONFIG_H */
])
dnl Process Special Options
AC_MSG_CHECKING(in)
AC_MSG_RESULT(and out again)
-echo $ECHO_N "ordering CD from http://people.ee.ethz.ch/oetiker/wish $ECHO_C" 1>&6
+echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
sleep 1
echo $ECHO_N ".$ECHO_C" 1>&6
sleep 1
@echo $(DL)output $(notdir $(@:.def=.nlm))$(DL) >> $@
endif
-$(PROOT)/config.h: Makefile
+$(PROOT)/rrd_config.h: Makefile
@echo Creating $@
- @echo $(DL)/* $@ for NetWare target.$(DL) > $@
+ @echo $(DL)/* $(notdir $@) for NetWare target.$(DL) > $@
@echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
@echo $(DL)** All your changes will be lost!!$(DL) >> $@
@echo $(DL)*/$(DL) >> $@
@echo $(DL)#ifndef NETWARE$(DL) >> $@
- @echo $(DL)#error This config.h is created for NetWare platform!$(DL) >> $@
+ @echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@
@echo $(DL)#endif$(DL) >> $@
+ @echo $(DL)#ifndef RRD_CONFIG_H$(DL) >> $@
+ @echo $(DL)#define RRD_CONFIG_H$(DL) >> $@
@echo $(DL)#define OS "i586-pc-NetWare"$(DL) >> $@
@echo $(DL)#define PACKAGE_VERSION "$(RRD_VERSION_STR)"$(DL) >> $@
@echo $(DL)#define PACKAGE_BUGREPORT "tobi@oetiker.ch"$(DL) >> $@
ifdef WITH_PIECHART
@echo $(DL)#define WITH_PIECHART 1$(DL) >> $@
endif
+ @echo $(DL)#endif /* RRD_CONFIG_H */$(DL) >> $@
$(DISTDIR)/readme.txt: Makefile
@echo Creating $@
#endif
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "../rrd_config.h"
#endif
#if !defined (__STDC__) || !__STDC__
Boston, MA 02111-1307, USA. */
\f
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "../rrd_config.h"
#endif
#include "getopt.h"
#include "../win32/config.h"
#else
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include "../rrd_config.h"
#endif
#endif
#include "../win32/config.h"
#else
#ifdef HAVE_CONFIG_H
-#include <config.h>
+#include "../rrd_config.h"
#endif
#endif
all: rrdtool rrdcgi
-rrdtool: $(OBJDIR) $(PROOT)/config.h $(OBJDIR)/rrdtool.exe
-rrdcgi: $(OBJDIR) $(PROOT)/config.h $(OBJDIR)/rrdcgi.$(CGIEXT)
-librrd: $(OBJDIR) $(PROOT)/config.h $(OBJDIR)/librrd.$(LIBEXT)
+rrdtool: $(OBJDIR) $(PROOT)/rrd_config.h $(OBJDIR)/rrdtool.exe
+rrdcgi: $(OBJDIR) $(PROOT)/rrd_config.h $(OBJDIR)/rrdcgi.$(CGIEXT)
+librrd: $(OBJDIR) $(PROOT)/rrd_config.h $(OBJDIR)/librrd.$(LIBEXT)
dist: all $(DISTDIR) $(DISTDIR)/readme.txt
# @-$(CP) $(OBJDIR)/librrd.$(LIBEXT) $(DISTDIR)
@-mkdir $(DEVLDIR)$(DS)lib
@-mkdir $(DEVLDIR)$(DS)src
@-$(CP) $(OBJDIR)/librrd.$(LIBEXT) $(DEVLDIR)/lib
- @-$(CP) $(PROOT)/config.h $(DEVLDIR)/include
+ @-$(CP) $(PROOT)/rrd_config.h $(DEVLDIR)/include
@-$(CP) $(PROOT)/src/rrd.h $(DEVLDIR)/include
@-$(CP) $(PROOT)/src/*.ttf $(DEVLDIR)/src
@-$(CP) $(PROOT)/CHANGES $(DEVLDIR)
clean:
-$(RM) -r $(OBJDIR)
- -$(RM) $(PROOT)/config.h
+ -$(RM) $(PROOT)/rrd_config.h
distclean: clean
-$(RM) -r $(DISTDIR)
@echo 10 ICON DISCARDABLE "$(ICON)" >> $@
endif
-$(PROOT)/config.h: Makefile $(OBJDIR)/version.inc
+$(PROOT)/rrd_config.h: Makefile $(OBJDIR)/version.inc
@echo Creating $@
- @echo $(DL)/* $@ for Win32 target.$(DL) > $@
+ @echo $(DL)/* $(notdir $@) for Win32 target.$(DL) > $@
@echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
@echo $(DL)** All your changes will be lost!!$(DL) >> $@
@echo $(DL)*/$(DL) >> $@
@echo $(DL)#ifndef WIN32$(DL) >> $@
- @echo $(DL)#error This config.h is created for Win32 platform!$(DL) >> $@
+ @echo $(DL)#error This $(notdir $@) is created for Win32 platform!$(DL) >> $@
@echo $(DL)#endif$(DL) >> $@
+ @echo $(DL)#ifndef RRD_CONFIG_H$(DL) >> $@
+ @echo $(DL)#define RRD_CONFIG_H$(DL) >> $@
@echo $(DL)#define OS "i586-pc-Win32"$(DL) >> $@
@echo $(DL)#define PACKAGE_VERSION "$(RRD_VERSION_STR)"$(DL) >> $@
@echo $(DL)#define PACKAGE_BUGREPORT "tobi@oetiker.ch"$(DL) >> $@
ifdef WITH_PIECHART
@echo $(DL)#define WITH_PIECHART 1$(DL) >> $@
endif
+ @echo $(DL)#endif /* RRD_CONFIG_H */$(DL) >> $@
$(DISTDIR)/readme.txt: Makefile
@echo Creating $@