Navigation Menu

Skip to content

Commit

Permalink
new versioning system for configure
Browse files Browse the repository at this point in the history
  • Loading branch information
pchilds committed Jul 18, 2012
1 parent ff169ac commit c9e101e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
@@ -1,5 +1,5 @@
## Process this file with automake to produce Makefile.in
SUBDIRS= gtk2plot
SUBDIRS= ${PLOT_SDIR}
ACLOCAL_AMFLAGS=-I m4 ${ACLOCAL_FLAGS}

pkgconfigdir=$(libdir)/pkgconfig
Expand Down
35 changes: 20 additions & 15 deletions configure.ac
@@ -1,27 +1,32 @@
AC_PREREQ([2.65])
m4_define(gtkplot_configure_ac)
m4_define([gtkplot_major_version], [1])
m4_define([gtkplot_minor_version], [0])
m4_define([gtkplot_micro_version], [0])
m4_define([gtk_major_dependency], [2])
m4_define([gtk_minor_dependency], [14])
m4_define([gtk_api_revision], [0])
m4_define([gtkplot_lt_current], [0])
m4_define([gtkplot_lt_age], [0])
m4_define([gtkplot_lt_revision], [0])
m4_define([gtkplot_binary_age], [m4_eval(100 * gtkplot_minor_version + gtkplot_micro_version)])
m4_define([gtkplot_lt_current], [m4_eval(100 * gtkplot_minor_version + gtkplot_micro_version - gtkplot_lt_revision)])
m4_define([gtkplot_lt_age], [m4_eval(gtkplot_binary_age - gtkplot_lt_revision)])

AC_INIT([Gtk2Plot],[gtkplot_major_version.gtkplot_minor_version.gtkplot_micro_version],[pchilds@physics.org],[gtk2plot],[https://github.com/pchilds/GtkPlot])
m4_define([gtk_req], [gtk+-gtk_major_dependency.gtk_api_revision >= gtk_major_dependency.gtk_minor_dependency])
m4_append([Sdir], [Gtk])
m4_append([sdir], [gtk])
m4_append([Sdir], m4_unquote([gtk_major_dependency]))
m4_append([sdir], m4_unquote([gtk_major_dependency]))
m4_append([Sdir], [Plot])
m4_append([sdir], [plot])
AC_INIT([Sdir],[gtk_major_dependency.gtkplot_lt_current.gtkplot_lt_revision],[pchilds@physics.org],[sdir],[https://github.com/pchilds/GtkPlot])
AC_CONFIG_HEADERS([config.h gtkplotconfig.h])
AC_CONFIG_SRCDIR([gtk2plot/gtkplotlinear.h])
AC_CONFIG_SRCDIR([sdir/gtkplotlinear.h])
AC_CONFIG_AUX_DIR([confsupp])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CC([gcc cc])
LT_INIT([disable-static])
gtk_req="gtk+-2.0 >= 2.14"
LT_INIT()
AC_SUBST([LT_CURRENT], [gtkplot_lt_current])
AC_SUBST([LT_REVISION], [gtkplot_lt_revision])
AC_SUBST([LT_AGE], [gtkplot_lt_age])
AC_SUBST([PLOT_API_VERSION], [2.0])
AC_SUBST([PLOT_GTK_VERSION], [$gtk_req])
PKG_CHECK_MODULES([PLOT], [$gtk_req])
AC_CONFIG_FILES([Makefile gtk2plot/Makefile gtkplot-${PLOT_API_VERSION}.pc])
AC_SUBST([PLOT_API_VERSION], [gtk_major_dependency.gtk_api_revision])
AC_SUBST([PLOT_GTK_VERSION], [gtk_req])
AC_SUBST([PLOT_SDIR], [sdir])
PKG_CHECK_MODULES([PLOT], [gtk_req])
AC_CONFIG_FILES([Makefile ${PLOT_SDIR}/Makefile gtkplot-${PLOT_API_VERSION}.pc])
AC_OUTPUT()

0 comments on commit c9e101e

Please sign in to comment.