diff options
author | Benjamin Otte <otte@redhat.com> | 2011-05-20 20:57:33 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-05-20 21:02:13 +0200 |
commit | e2c558c435b8c8f9a9057b466020e93d7d61fd70 (patch) | |
tree | 1028544f02d45159434faff4bb63ff988db06979 | |
parent | cd07704183a3b907b389f553f046920dea547890 (diff) |
build: Use $GREP -e instead of plain grep -e
https://bugs.freedesktop.org/show_bug.cgi?id=37388
-rw-r--r-- | build/configure.ac.warnings | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build/configure.ac.warnings b/build/configure.ac.warnings index b225ac82f..33c89ce29 100644 --- a/build/configure.ac.warnings +++ b/build/configure.ac.warnings @@ -67,8 +67,9 @@ CAIRO_CFLAGS="$CAIRO_CFLAGS $WARN_CFLAGS" # gcc from generating thousands of warnings about the misapplication of the # attribute to void functions and variables. AC_CACHE_CHECK([how to enable unused result warnings], cairo_cv_warn_unused_result, [ + AC_REQUIRE([AC_PROG_GREP]) cairo_cv_warn_unused_result="" - if echo $WARN_CFLAGS | grep -e '-Wno-attributes' >/dev/null; then + if echo $WARN_CFLAGS | $GREP -e '-Wno-attributes' >/dev/null; then CAIRO_CC_TRY_FLAG_SILENT( [-Wno-attributes], [__attribute__((__warn_unused_result__)) void f (void) {} |