configure.ac
branch1.1
changeset 940 0a48b28c6683
parent 725 d1e1cd94bf49
child 791 f8c468367dab
child 1037 d3b041452dd8
equal deleted inserted replaced
34:7b79478ad964 35:b2f79ad55cec
     1 dnl Process this file with autoconf to produce a configure script.
     1 dnl Process this file with autoconf to produce a configure script.
     2 
     2 
     3 dnl Version information.
     3 dnl Version information.
     4 m4_define([lemon_version_number],
     4 m4_define([lemon_version_number],
     5 	[m4_normalize(esyscmd([echo ${LEMON_VERSION}]))])
     5           [m4_normalize(esyscmd([echo ${LEMON_VERSION}]))])
     6 dnl m4_define([lemon_version_number], [])
     6 dnl m4_define([lemon_version_number], [])
     7 m4_define([lemon_hg_path], [m4_normalize(esyscmd([./scripts/chg-len.py]))])
     7 m4_define([lemon_hg_path], [m4_normalize(esyscmd([./scripts/chg-len.py]))])
     8 m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i]))])
     8 m4_define([lemon_hg_revision], [m4_normalize(esyscmd([hg id -i 2> /dev/null]))])
     9 m4_define([lemon_version], [ifelse(lemon_version_number(),
     9 m4_define([lemon_version], [ifelse(lemon_version_number(),
    10 			   [],
    10                            [],
    11 			   [lemon_hg_path().lemon_hg_revision()],
    11                            [ifelse(lemon_hg_revision(),
    12 			   [lemon_version_number()])])
    12                            [],
       
    13                            [hg-tip],
       
    14                            [lemon_hg_path().lemon_hg_revision()])],
       
    15                            [lemon_version_number()])])
    13 
    16 
    14 AC_PREREQ([2.59])
    17 AC_PREREQ([2.59])
    15 AC_INIT([LEMON], [lemon_version()], [lemon-user@lemon.cs.elte.hu], [lemon])
    18 AC_INIT([LEMON], [lemon_version()], [lemon-user@lemon.cs.elte.hu], [lemon])
    16 AC_CONFIG_AUX_DIR([build-aux])
    19 AC_CONFIG_AUX_DIR([build-aux])
    17 AC_CONFIG_MACRO_DIR([m4])
    20 AC_CONFIG_MACRO_DIR([m4])