1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
@node ax_is_release
@unnumberedsec ax_is_release
@majorheading Synopsis
@smallexample
AX_IS_RELEASE(POLICY)
@end smallexample
@majorheading Description
Determine whether the code is being configured as a release, or from
git. Set the ax_is_release variable to 'yes' or 'no'.
If building a release version, it is recommended that the configure
script disable compiler errors and debug features, by conditionalising
them on the ax_is_release variable. If building from git, these
features should be enabled.
The POLICY parameter specifies how ax_is_release is determined. It can
take the following values:
@smallexample
* git-directory: ax_is_release will be 'no' if a '.git' directory exists
* minor-version: ax_is_release will be 'no' if the minor version number
in $PACKAGE_VERSION is odd; this assumes
$PACKAGE_VERSION follows the 'major.minor.micro' scheme
* micro-version: ax_is_release will be 'no' if the micro version number
in $PACKAGE_VERSION is odd; this assumes
$PACKAGE_VERSION follows the 'major.minor.micro' scheme
* always: ax_is_release will always be 'yes'
* never: ax_is_release will always be 'no'
@end smallexample
Other policies may be added in future.
@majorheading Source Code
Download the
@uref{http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_is_release.m4,latest
version of @file{ax_is_release.m4}} or browse
@uref{http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=history;f=m4/ax_is_release.m4,the
macro's revision history}.
@majorheading License
@w{Copyright @copyright{} 2015 Philip Withnall @email{philip@@tecnocode.co.uk}}
Copying and distribution of this file, with or without modification, are
permitted in any medium without royalty provided the copyright notice
and this notice are preserved.
|