mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
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>
This commit is contained in:
parent
c45be3d21e
commit
313b26f415
1 changed files with 1 additions and 1 deletions
|
|
@ -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])
|
AC_MSG_ERROR([Documentation build requested but graphviz's dot not found. Install graphviz or disable the documentation using --disable-documentation])
|
||||||
fi
|
fi
|
||||||
AC_MSG_CHECKING([for compatible dot version])
|
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],
|
AS_VERSION_COMPARE([$dot_version], [2.26.0],
|
||||||
[AC_MSG_RESULT([no])
|
[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])],
|
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])],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue