[Mesa-dev] [PATCH] configure.ac: unbreak the build with non gnu grep
Jan Vesely
jan.vesely at rutgers.edu
Wed Sep 10 08:37:05 PDT 2014
On Wed, 2014-09-10 at 16:11 +1000, Jonathan Gray wrote:
> 181581280bd430d122d416e308c1de82db82da04 changed the way the
> llvm-config version is read from sed to grep and introduced
> a requirement for gnu grep extension that treats BREs as EREs.
>
> Avoid this by calling egrep instead of grep which should be
> able to handle EREs everywhere.
>
> This allows Mesa to build on OpenBSD again.
>
> Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
I don't have a BSD machine to test, but this works OK on my Linux box.
Acked-by: Jan Vesely <jan.vesely at rutgers.edu>
> ---
> configure.ac | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index 985ad4c..f3ee387 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1695,7 +1695,7 @@ if test "x$enable_gallium_llvm" = xyes; then
> fi
>
> if test "x$LLVM_CONFIG" != xno; then
> - LLVM_VERSION=`$LLVM_CONFIG --version | grep -o '^[[0-9.]]\+'`
> + LLVM_VERSION=`$LLVM_CONFIG --version | egrep -o '^[[0-9.]]+'`
> LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags`
> LLVM_BINDIR=`$LLVM_CONFIG --bindir`
> LLVM_CPPFLAGS=`strip_unwanted_llvm_flags "$LLVM_CONFIG --cppflags"`
--
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140910/c91ce4d9/attachment.sig>
More information about the mesa-dev
mailing list