From c47dfd9df6410963b29615ccb27931810a80ab22 Mon Sep 17 00:00:00 2001 From: ellson Date: Tue, 18 Oct 2005 18:49:27 +0000 Subject: [PATCH] add library versioning --- configure.ac | 26 ++++++++++++++++++++++++++ lib/agraph/Makefile.am | 2 ++ lib/cdt/Makefile.am | 2 ++ lib/expr/Makefile.am | 2 ++ lib/gd/Makefile.am | 4 ++-- lib/graph/Makefile.am | 2 ++ lib/gvc/Makefile.am | 2 ++ lib/pack/Makefile.am | 2 ++ lib/pathplan/Makefile.am | 3 +++ tclpkg/tcldot/Makefile.am | 4 ++++ 10 files changed, 47 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 281cb832d..15fed7673 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,31 @@ # Process this file with autoconf to produce a configure script +AC_PREREQ(2.54) + +dnl =========================================================================== + +# Package name and version number, (as distinct from shared library version) AC_INIT(graphviz, 2.5) + + +# libtool shared library version + +# Increment if the interface has additions, changes, removals. +LT_CURRENT=1 + +# Increment any time the source changes; set to +# 0 if you increment CURRENT +LT_REVISION=0 + +# Increment if any interfaces have been added; set to 0 +# if any interfaces have been removed. removal has +# precedence over adding, so set to 0 if both happened. +LT_AGE=0 + +VERSION_INFO="$LT_CURRENT:$LT_REVISION:$LT_AGE" +AC_SUBST(VERSION_INFO) + +dnl =========================================================================== + AC_CONFIG_SRCDIR(configure.ac) AC_CONFIG_AUX_DIR(config) diff --git a/lib/agraph/Makefile.am b/lib/agraph/Makefile.am index 847996fe9..a6361a007 100644 --- a/lib/agraph/Makefile.am +++ b/lib/agraph/Makefile.am @@ -16,6 +16,8 @@ pkgconfig_DATA = libagraph.pc man_MANS = $(man) pdf_DATA = $(pdf) +libagraph_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined + libagraph_la_SOURCES = agerror.c apply.c attr.c \ edge.c flatten.c grammar.y graph.c id.c imap.c io.c \ mem.c node.c obj.c pend.c rec.c refstr.c scan.l subg.c \ diff --git a/lib/cdt/Makefile.am b/lib/cdt/Makefile.am index b2a9bce9a..baa3c3a15 100644 --- a/lib/cdt/Makefile.am +++ b/lib/cdt/Makefile.am @@ -16,6 +16,8 @@ pdf_DATA = $(pdf) pkgextrainclude_DATA = $(top_builddir)/ast_common.h pkgconfig_DATA = libcdt.pc +libcdt_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined + libcdt_la_SOURCES = dtclose.c dtdisc.c dtextract.c dtflatten.c \ dthash.c dtlist.c dtmethod.c dtopen.c dtrenew.c dtrestore.c dtsize.c \ dtstat.c dtstrhash.c dttree.c dtview.c dtwalk.c diff --git a/lib/expr/Makefile.am b/lib/expr/Makefile.am index adebddd64..cfba448e7 100644 --- a/lib/expr/Makefile.am +++ b/lib/expr/Makefile.am @@ -14,6 +14,8 @@ pkglib_LTLIBRARIES = libexpr.la man_MANS = expr.3 pdf_DATA = expr.pdf +libexpr_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined + libexpr_la_SOURCES = excc.c excontext.c exdata.c exerror.c \ exeval.c exexpr.c exlexname.c exopen.c exrewind.c extoken.c \ extype.c exzero.c exparse.y diff --git a/lib/gd/Makefile.am b/lib/gd/Makefile.am index f663e555e..460c1821a 100644 --- a/lib/gd/Makefile.am +++ b/lib/gd/Makefile.am @@ -17,6 +17,8 @@ noinst_PROGRAMS = annotate gdparttopng gdtopng gd2copypal gd2topng pngtogd \ html_DATA = $(html) endif +libgvgd_la_LDFLAGS = -version-info 2:0:0 + libgvgd_la_SOURCES = gd.c gdfx.c gd_security.c gd_gd.c gd_gd2.c gd_io.c gd_io_dp.c \ gd_gif_in.c gd_gif_out.c gd_io_file.c gd_io_ss.c gd_jpeg.c gd_png.c \ gd_ss.c gd_topal.c gd_wbmp.c gdcache.c gdfontg.c gdfontl.c gdfontmb.c \ @@ -24,8 +26,6 @@ libgvgd_la_SOURCES = gd.c gdfx.c gd_security.c gd_gd.c gd_gd2.c gd_io.c gd_io_dp libgvgd_la_LIBADD = @ICONV_LIBS@ @FC_LIBS@ @FT_LIBS@ @JPEG_LIBS@ @PNG_LIBS@ @Z_LIBS@ @MATH_LIBS@ -libgvgd_la_LDFLAGS = -version-info 2:0:0 - gd.html: index.html cp $(top_srcdir)/lib/gd/index.html gd.html diff --git a/lib/graph/Makefile.am b/lib/graph/Makefile.am index 40c6815a5..60ccf4fb8 100644 --- a/lib/graph/Makefile.am +++ b/lib/graph/Makefile.am @@ -16,6 +16,8 @@ pkgconfig_DATA = libgraph.pc man_MANS = $(man) pdf_DATA = $(pdf) +libgraph_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined + libgraph_la_SOURCES = attribs.c agxbuf.c edge.c graph.c graphio.c lexer.c \ node.c parser.y refstr.c trie.c diff --git a/lib/gvc/Makefile.am b/lib/gvc/Makefile.am index b8992a909..36a394930 100644 --- a/lib/gvc/Makefile.am +++ b/lib/gvc/Makefile.am @@ -22,6 +22,8 @@ noinst_HEADERS = gvcproc.h pkglib_LTLIBRARIES = libgvc.la pkgconfig_DATA = libgvc.pc +libgvc_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined + libgvc_la_SOURCES = gvrender.c gvlayout.c gvtextlayout.c gvdevice.c \ gvcontext.c gvjobs.c gvevent.c gvplugin.c gvconfig.c gvusershape.c \ gvc.c diff --git a/lib/pack/Makefile.am b/lib/pack/Makefile.am index 24ed9b1a9..254de590e 100644 --- a/lib/pack/Makefile.am +++ b/lib/pack/Makefile.am @@ -15,6 +15,8 @@ pkglib_LTLIBRARIES = libpack.la man_MANS = pack.3 pdf_DATA = pack.pdf +libpack_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined + libpack_la_SOURCES = ccomps.c pack.c .3.pdf: diff --git a/lib/pathplan/Makefile.am b/lib/pathplan/Makefile.am index 455ac8797..0ed226744 100644 --- a/lib/pathplan/Makefile.am +++ b/lib/pathplan/Makefile.am @@ -13,8 +13,11 @@ pkgconfig_DATA = libpathplan.pc man_MANS = $(man) pdf_DATA = $(pdf) +libpathplan_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined + libpathplan_la_SOURCES = cvt.c inpoly.c route.c shortest.c \ shortestpth.c solvers.c triang.c util.c visibility.c + libpathplan_la_LIBADD = @MATH_LIBS@ .3.pdf: diff --git a/tclpkg/tcldot/Makefile.am b/tclpkg/tcldot/Makefile.am index 731b302a2..287a0d652 100644 --- a/tclpkg/tcldot/Makefile.am +++ b/tclpkg/tcldot/Makefile.am @@ -30,7 +30,11 @@ pdf_DATA = $(pdf) html_DATA = $(html) endif +# need to align pkgIndex.tcl +#libtcldot_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined + libtcldot_la_SOURCES = tcldot.c tkgen.c $(top_srcdir)/tclpkg/gdtclft/gdtclft.c + libtcldot_la_LIBADD = \ $(top_builddir)/tclpkg/tclhandle/libtclhandle.la \ $(top_builddir)/tclpkg/tclstubs/libtclstubs.la \ -- 2.40.0