From: oetiker Date: Mon, 19 Jan 2004 23:16:03 +0000 (+0000) Subject: modifications for 'no more local libaries' X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0240b19174dfda10b6a6dbea0b924e2bd2dbac69;p=rrdtool.git modifications for 'no more local libaries' git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@231 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/Makefile.am b/src/Makefile.am index 58b71c1..cb4fca2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -5,39 +5,9 @@ #ACLOCAL_M4 = $(top_srcdir)/config/aclocal.m4 #AUTOHEADER = @AUTOHEADER@ --localdir=$(top_srcdir)/config DEFS += -DMAKE_TIMESTAMP=\""$(shell date)"\" -if USE_INSTALLED_libcgi -CGI_LIB = -lcgi -else -CGI_LIB = $(top_builddir)/libraries/@CGI_LIB_DIR@/librrd_cgi.la -CGI_INCLUDES = -I$(top_srcdir)/libraries/@CGI_LIB_DIR@ -endif -if USE_INSTALLED_libfreetype -FREETYPE_LIB = -lfreetype -else -FREETYPE_LIB = $(top_builddir)/libraries/@FREETYPE_LIB_DIR@/librrd_freetype.la -FREETYPE_INCLUDES = -I$(top_srcdir)/libraries/@FREETYPE_LIB_DIR@/include -endif -if USE_INSTALLED_libart_lgpl -ART_LIB = -lart_lgpl -else -ART_LIB = $(top_builddir)/libraries/@ART_LIB_DIR@/librrd_art.la -ART_INCLUDES = -I$(top_srcdir)/libraries/@ART_LIB_DIR@ -I$(top_builddir)/libraries/@ART_LIB_DIR@ -endif -if USE_INSTALLED_libpng -PNG_LIB = -lpng -else -PNG_LIB = $(top_builddir)/libraries/@PNG_LIB_DIR@/librrd_png.la -PNG_INCLUDES = -I$(top_srcdir)/libraries/@PNG_LIB_DIR@ -endif -if USE_INSTALLED_libz -ZLIB_LIB = -lz -else -ZLIB_LIB = $(top_builddir)/libraries/@ZLIB_LIB_DIR@/librrd_z.la -ZLIB_INCLUDES = -I$(top_srcdir)/libraries/@ZLIB_LIB_DIR@ -endif - -INCLUDES = $(CGI_INCLUDES) $(FREETYPE_INCLUDES) $(ART_INCLUDES) \ - $(PNG_INCLUDES) $(ZLIB_INCLUDES) + +#INCLUDES = $(CGI_INCLUDES) $(FREETYPE_INCLUDES) $(ART_INCLUDES) \ +# $(PNG_INCLUDES) $(ZLIB_INCLUDES) RRD_C_FILES = \ getopt.c \ @@ -72,38 +42,24 @@ RRD_C_FILES = \ rrd_nan_inf.h fnv.h rrd_graph.h rrd_afm.h rrd_afm_data.h \ rrd_is_thread_safe.h -# Build two libraries. One is a public one that gets installed in -# $prefix/lib. Libtool does not create an archive of the PIC compiled -# objects for this library type. The second library is a private one -# meant to build the RRDs.so for perl-shared. In this case libtool -# creates a ./.lib/*.al file that contains the PIC compiled object -# files. - -RRD_LIBS = \ - $(CGI_LIB) \ - $(FREETYPE_LIB) \ - $(ART_LIB) \ - $(PNG_LIB) \ - $(ZLIB_LIB) - lib_LTLIBRARIES = librrd.la librrd_th.la -noinst_LTLIBRARIES = librrd_private.la +#noinst_LTLIBRARIES = librrd_private.la librrd_la_SOURCES = $(RRD_C_FILES) rrd_not_thread_safe.c -librrd_private_la_SOURCES = $(RRD_C_FILES) rrd_not_thread_safe.c +#librrd_private_la_SOURCES = $(RRD_C_FILES) rrd_not_thread_safe.c -librrd_la_LIBADD = $(RRD_LIBS) +# librrd_la_LIBADD = $(RRD_LIBS) librrd_la_LDFLAGS = -version-info 1:2:0 librrd_th_la_SOURCES = $(RRD_C_FILES) rrd_thread_safe.c -librrd_th_la_LIBADD = $(RRD_LIBS) -lpthread +librrd_th_la_LIBADD = -lpthread librrd_th_la_LDFLAGS = -version-info 1:2:0 include_HEADERS = rrd.h -librrd_private_la_LIBADD = $(RRD_LIBS) -librrd_private_la_LDFLAGS = -static +#librrd_private_la_LIBADD = $(RRD_LIBS) +#librrd_private_la_LDFLAGS = -static bin_PROGRAMS = rrdcgi rrdtool rrdupdate diff --git a/src/rrd_gfx.h b/src/rrd_gfx.h index dafd7d0..ad04f46 100644 --- a/src/rrd_gfx.h +++ b/src/rrd_gfx.h @@ -7,7 +7,7 @@ #ifndef RRD_GFX_H #define RRD_GFX_H #define LIBART_COMPILATION -#include +#include enum gfx_if_en {IF_PNG=0,IF_SVG,IF_EPS,IF_PDF}; enum gfx_en { GFX_LINE=0,GFX_AREA,GFX_TEXT };