If code using AS_NANO wants finer grained control, they should
use the PACKAGE_VERSION_NANO.
https://bugzilla.gnome.org/show_bug.cgi?id=598248
AC_SUBST(PACKAGE_VERSION_MICRO)
])
AC_SUBST(PACKAGE_VERSION_MICRO)
])
-dnl AS_NANO(ACTION-IF-NO-NANO, [ACTION-IF-NANO])
+dnl AS_NANO(ACTION-IF-NANO-NON-NULL, [ACTION-IF-NANO-NULL])
dnl requires AC_INIT to be called before
dnl For projects using a fourth or nano number in your versioning to indicate
dnl requires AC_INIT to be called before
dnl For projects using a fourth or nano number in your versioning to indicate
dnl - sets the variable PACKAGE_VERSION_NANO
dnl - sets the variable PACKAGE_VERSION_RELEASE, which can be used
dnl for rpm release fields
dnl - sets the variable PACKAGE_VERSION_NANO
dnl - sets the variable PACKAGE_VERSION_RELEASE, which can be used
dnl for rpm release fields
-dnl - executes ACTION-IF-NO-NANO or ACTION-IF-NANO
+dnl - executes ACTION-IF-NANO-NON-NULL or ACTION-IF-NANO-NULL
dnl example:
dnl AS_NANO(RELEASE="yes", RELEASE="no")
dnl example:
dnl AS_NANO(RELEASE="yes", RELEASE="no")
else
AC_MSG_RESULT($NANO)
PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
else
AC_MSG_RESULT($NANO)
PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
- ifelse([$2], , :, [$2])
+ if test "x$NANO" != "x1" ; then
+ ifelse([$1], , :, [$1])
+ else
+ ifelse([$2], , :, [$2])
+ fi
fi
PACKAGE_VERSION_NANO=$NANO
AC_SUBST(PACKAGE_VERSION_NANO)
fi
PACKAGE_VERSION_NANO=$NANO
AC_SUBST(PACKAGE_VERSION_NANO)