diff options
author | Bill Spitzak <spitzak@gmail.com> | 2015-04-02 19:20:00 -0700 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-04-07 15:48:25 -0700 |
commit | 313b26f415d48e1918818cb9da54f8e8bc521f87 (patch) | |
tree | 124d22195c7f91dd5f128ee84d2937ccf9dc8ed3 | |
parent | c45be3d21e7231eec33c50f38d85fb4ac5fb74cc (diff) |
config: use simpler regexp syntax to get dot version
I wasted a lot of time before I figured out that I needed to add those
square brackets to get this to work. Sigh...
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 6bbec59..271eec3 100644 --- a/configure.ac +++ b/configure.ac @@ -141,7 +141,7 @@ if test "x$enable_documentation" = "xyes"; then AC_MSG_ERROR([Documentation build requested but graphviz's dot not found. Install graphviz or disable the documentation using --disable-documentation]) fi AC_MSG_CHECKING([for compatible dot version]) - dot_version=`$DOT -V 2>&1|$GREP -oP '(?<=version\W)@<:@0-9.@:>@*(?=\W(.*))'` + dot_version=`$DOT -V 2>&1|$GREP -o ['[0-9]*\.[0-9]*\.[0-9]*']` AS_VERSION_COMPARE([$dot_version], [2.26.0], [AC_MSG_RESULT([no]) AC_MSG_ERROR([Graphviz dot $dot_version too old. Graphviz 2.26+ required for documentation build. Install required graphviz version or disable the documentation using --disable-documentation])], |