[svn r951] gmyth now is 0.8.1. Added methods epg_is_connected() and scheduler_is_connected()
1 dnl as-version.m4 0.1.0
3 dnl autostars m4 macro for versioning
5 dnl Thomas Vander Stichele <thomas at apestaart dot org>
7 dnl $Id: as-version.m4,v 1.1 2005/06/18 18:02:46 burgerman Exp $
9 dnl AS_VERSION(PACKAGE, PREFIX, MAJOR, MINOR, MICRO, NANO,
10 dnl ACTION-IF-NO-NANO, [ACTION-IF-NANO])
13 dnl AS_VERSION(gstreamer, GST_VERSION, 0, 3, 2,)
14 dnl for a 0.3.2 release version
17 dnl - defines [$PREFIX]_MAJOR, MINOR and MICRO
18 dnl - if NANO is empty, then we're in release mode, else in cvs/dev mode
19 dnl - defines [$PREFIX], VERSION, and [$PREFIX]_RELEASE
20 dnl - executes the relevant action
21 dnl - AC_SUBST's PACKAGE, VERSION, [$PREFIX] and [$PREFIX]_RELEASE
22 dnl as well as the little ones
23 dnl - doesn't call AM_INIT_AUTOMAKE anymore because it prevents
24 dnl maintainer mode from running ok
26 dnl don't forget to put #undef [$2] and [$2]_RELEASE in acconfig.h
27 dnl if you use acconfig.h
29 AC_DEFUN([AS_VERSION],
37 if test "x$NANO" = "x" || test "x$NANO" = "x0";
39 AC_MSG_NOTICE(configuring [$1] for release)
40 VERSION=[$3].[$4].[$5]
43 ifelse([$7], , :, [$7])
45 AC_MSG_NOTICE(configuring [$1] for development with nano $NANO)
46 VERSION=[$3].[$4].[$5].$NANO
47 [$2]_RELEASE=0.`date +%Y%m%d.%H%M%S`
49 ifelse([$8], , :, [$8])
53 AC_DEFINE_UNQUOTED([$2], "$[$2]", [Define the version])
55 AC_DEFINE_UNQUOTED([$2]_RELEASE, "$[$2]_RELEASE", [Define the release version])
56 AC_SUBST([$2]_RELEASE)
62 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Define the package name])
64 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Define the version])