Changeset 2431 for trunk/configure.ac


Ignore:
Timestamp:
Mar 6, 2011, 9:04:31 PM (12 years ago)
Author:
Peter
Message:

fixes #620. Move version defines from 'version.h' to
'config_public.h'. The latter is included from the former so the api
is not changed in the sense that a program that used e.g. YAT_VERSIOn
and included 'version.h' will still compile. version.h is no longer
generated but checked into the repository. This may cause a confict in
developers wc, which can easily be avoided by removing version.h
before updating to with this ChangeSet?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r2418 r2431  
    3434
    3535m4_include([m4/version.m4])
    36 AC_INIT([yat],[YAT_VERSION],[libyat-users@lists.sourceforge.net],,
     36AC_INIT([yat],[YAT_VERSION__],[libyat-users@lists.sourceforge.net],,
    3737        [http://dev.thep.lu.se/yat])
    3838AC_PREREQ(2.63)
     
    4848AC_SUBST([YAT_PATCH_VERSION], [PATCH_VERSION])
    4949AC_SUBST([YAT_DEV_BUILD], [DEV_BUILD])
     50AC_DEFINE([YAT_VERSION], ["YAT_VERSION__"], [version])
     51AC_DEFINE([YAT_MAJOR_VERSION], [MAJOR_VERSION], [major version])
     52AC_DEFINE([YAT_MINOR_VERSION], [MINOR_VERSION], [minor version])
     53AC_DEFINE([YAT_PATCH_VERSION], [PATCH_VERSION], [patch version])
     54AC_DEFINE([YAT_DEV_BUILD], [DEV_BUILD], [Define to false if offical version])
    5055
    5156AC_CONFIG_HEADERS([config.h])
     
    283288     yat/regression/Makefile
    284289     yat/statistics/Makefile
    285      yat/utility/version.h
    286290     yat/utility/Makefile])
    287291
Note: See TracChangeset for help on using the changeset viewer.