3 dnl --- *@-mdw_AUTO_VERSION-@* ---
5 dnl Author: Mark Wooding
7 dnl Synopsis: mdw_AUTO_VERSION
11 dnl Use: Defines an m4 macro AUTO_VERSION which contains the current
12 dnl version number, worked out in some clever way.
14 AC_DEFUN([mdw_AUTO_VERSION], [nobody cares...])
15 m4_define([mdw_AUTO_VERSION], [m4_define([AUTO_VERSION], m4_esyscmd([
17 for pre in ./ config/; do
18 for post in "" .in; do
19 try=${pre}auto-version${post}
20 if test -x $try; then ver=$("$try"); break; fi