From 7f8fc1c9db5bef2dea05e001488d5bc7c8b38575 Mon Sep 17 00:00:00 2001
From: Erik de Castro Lopo <erikd@mega-nerd.com>
Date: Thu, 5 Nov 2015 21:13:30 +1100
Subject: [PATCH] aclocal.m4: Do not check for readelf on darwin

Tested on darwin and linux. Not tested on mingw32.
---
 aclocal.m4 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/aclocal.m4 b/aclocal.m4
index 6ca398659c2b..874e1907c7be 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -2213,7 +2213,8 @@ AC_DEFUN([FIND_GCC],[
 # $1 = the variable to set
 #
 AC_DEFUN([FIND_READELF],[
-    if test "$HostOS" != "mingw32"; then
+    if test "$HostOS" != "mingw32" &&
+       test "$HostOS" != "darwin" ; then
         FP_ARG_WITH_PATH_GNU_PROG([READELF], [readelf], [readelf])
         if test -z "$READELF"; then
             AC_MSG_ERROR([cannot identify readelf tool])
-- 
GitLab