[Mesa-dev] [PATCH] configure: use compliant grep regex checks
Emil Velikov
emil.l.velikov at gmail.com
Thu Jun 14 13:15:59 UTC 2018
From: Emil Velikov <emil.velikov at collabora.com>
The current `grep "foo\|bar"' trips on some grep implementations, like
the FreeBSD one. Instead use `egrep "foo|bar"' as suggested by Stefan.
Cc: Stefan Esser <se at FreeBSD.org>
Reported-by: Stefan Esser <se at FreeBSD.org>
Bugzilla: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228673
Fixes: 1914c814a6c ("configure: error out if building OMX w/o supported platform")
Fixes: 63e11ac2b5c ("configure: error out if building VA w/o supported platform")
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 7c19c8f99d7..958e1e10d77 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2235,13 +2235,13 @@ else
have_vdpau_platform=no
fi
-if echo $platforms | grep -q "x11\|drm"; then
+if echo $platforms | egrep -q "x11|drm"; then
have_omx_platform=yes
else
have_omx_platform=no
fi
-if echo $platforms | grep -q "x11\|drm\|wayland"; then
+if echo $platforms | egrep -q "x11|drm|wayland"; then
have_va_platform=yes
else
have_va_platform=no
--
2.16.0
More information about the mesa-dev
mailing list