From: Emil Velikov Date: Thu, 14 Jun 2018 13:15:59 +0000 (+0100) Subject: configure: use compliant grep regex checks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dfb1f2759c668ad0e2147ca0b29aed6fb2473451;p=mesa.git configure: use compliant grep regex checks 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 Reported-by: Stefan Esser 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 Reviewed-by: Matt Turner --- diff --git a/configure.ac b/configure.ac index a1953620071..502b1787c62 100644 --- a/configure.ac +++ b/configure.ac @@ -2248,13 +2248,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