configure.ac
changeset 276 b4784a66a8e6
parent 259 362415050b29
child 296 9768e60aa4e1
     1.1 --- a/configure.ac	Sun Sep 21 18:26:25 2008 +0100
     1.2 +++ b/configure.ac	Mon Sep 22 08:37:23 2008 +0100
     1.3 @@ -1,9 +1,15 @@
     1.4  dnl Process this file with autoconf to produce a configure script.
     1.5  
     1.6  dnl Version information.
     1.7 -m4_define([lemon_version_number], [])
     1.8 +m4_define([lemon_version_number],
     1.9 +	[m4_normalize(esyscmd([echo ${LEMON_VERSION}]))])
    1.10 +dnl m4_define([lemon_version_number], [])
    1.11 +m4_define([lemon_hg_path], [m4_normalize(esyscmd([./scripts/chg-len.py]))])
    1.12  m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i]))])
    1.13 -m4_define([lemon_version], [ifelse(lemon_version_number(), [], [lemon_hg_revision()], [lemon_version_number()])])
    1.14 +m4_define([lemon_version], [ifelse(lemon_version_number(),
    1.15 +			   [],
    1.16 +			   [lemon_hg_path().lemon_hg_revision()],
    1.17 +			   [lemon_version_number()])])
    1.18  
    1.19  AC_PREREQ([2.59])
    1.20  AC_INIT([LEMON], [lemon_version()], [lemon-user@lemon.cs.elte.hu], [lemon])