diff options
author | Masamichi Hosoda <trueroad@trueroad.jp> | 2015-08-22 21:20:17 +0900 |
---|---|---|
committer | Masamichi Hosoda <trueroad@trueroad.jp> | 2015-08-29 18:18:50 +0900 |
commit | a832764e7300d48468a6812077b899a4beed271b (patch) | |
tree | 99c8f6a2d5eef24a07e92b3c17fcec1a092072e8 /aclocal.m4 | |
parent | 09fca104f8cd9c8b85b269a4006ce3b7f9511489 (diff) |
Fix fontforge version detection
Newer fontforge shows git hash in `fontforge --version`.
In that case, configure script
might recognize it as date (version).
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 48d0b77b74..0037c58ca8 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -42,7 +42,8 @@ AC_DEFUN(STEPMAKE_GET_VERSION, [ if test -z "$_ver"; then ## If empty, try date [fontforge] - eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 | grep '[0-9]\{6,8\}' \ + eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 \ + | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \ | head -n 1 \ | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\" fi |