X-Git-Url: https://git.distorted.org.uk/~mdw/runlisp/blobdiff_plain/0bef29cbe2f62ebe6b69faffc29c0634a21b814e..550b5009d0443c6179d64e2b75286b6dd6ec1425:/m4/mdw-auto-version.m4 diff --git a/m4/mdw-auto-version.m4 b/m4/mdw-auto-version.m4 index 5ea1041..046495e 100644 --- a/m4/mdw-auto-version.m4 +++ b/m4/mdw-auto-version.m4 @@ -53,14 +53,11 @@ dnl -*-autoconf-*- ### exception to the GPL to apply to your modified version as well. # serial 1 -AC_DEFUN([mdw_AUTO_VERSION], [nobody cares...]) -m4_define([mdw_AUTO_VERSION], [m4_define([AUTO_VERSION], m4_esyscmd([ +AC_DEFUN([mdw_AUTO_VERSION], [m4_define([AUTO_VERSION], m4_esyscmd([ ver=UNKNOWN for pre in ./ config/; do - for post in "" .in; do - try=${pre}auto-version${post} - if test -x $try; then ver=$("$try"); break; fi - done + try=${pre}auto-version + if test -x $try; then ver=$("$try"); break; fi done echo -n "$ver" ]))])