summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2005-01-21 07:26:34 +0000
committerDavid Schleef <ds@schleef.org>2005-01-21 07:26:34 +0000
commit5b6a2f5867e0ed9ef0f92fe3f65ff1766444aebc (patch)
treed023ca5ef6b532a168442c6dbeec1d9df576c462 /m4
parent03f3547d24b70f14c876ad0d145a37e3d72c92be (diff)
downloadliboil-5b6a2f5867e0ed9ef0f92fe3f65ff1766444aebc.tar.gz
add
Diffstat (limited to 'm4')
-rw-r--r--m4/as-nano.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/m4/as-nano.m4 b/m4/as-nano.m4
new file mode 100644
index 0000000..ca09455
--- /dev/null
+++ b/m4/as-nano.m4
@@ -0,0 +1,27 @@
+dnl as-version.m4 0.1.0
+
+dnl autostars m4 macro for versioning (modified)
+
+dnl Thomas Vander Stichele <thomas at apestaart dot org>
+dnl David Schleef <ds@schleef.org>
+
+dnl $Id: as-nano.m4,v 1.1 2005-01-21 07:26:34 ds Exp $
+
+dnl AS_VERSION(ACTION-IF-NO-NANO, [ACTION-IF-NANO])
+
+AC_DEFUN([AS_NANO],
+[
+ AC_MSG_CHECKING(nano version)
+
+ NANO=$(echo AC_PACKAGE_VERSION | sed ['s/[0-9]\.[0-9]\.[0-9]\.*//'])
+ AC_SUBST(NANO)
+
+ if test x"$NANO" = x || test "x$NANO" = "x0" ; then
+ AC_MSG_RESULT([0 (release)])
+ NANO=0
+ ifelse([$1], , :, [$1])
+ else
+ AC_MSG_RESULT($NANO)
+ ifelse([$2], , :, [$2])
+ fi
+])