From 45ee23a6b812c249ce239f620f35c5b35d42493d Mon Sep 17 00:00:00 2001
From: Philip Taffner <philip.taffner@bluegfx.de>
Date: Fri, 26 Sep 2014 11:44:17 +0200
Subject: [PATCH] Fix xhprof build in Gentoo.

---
 misc/composer/build-xhprof.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/misc/composer/build-xhprof.sh b/misc/composer/build-xhprof.sh
index 517d228d0b..63178b87ef 100755
--- a/misc/composer/build-xhprof.sh
+++ b/misc/composer/build-xhprof.sh
@@ -27,6 +27,16 @@ if ! phpize &> ../../../../tmp/xhprof-logs/phpize.log; then
     exit 1
 fi
 
+if ! aclocal &> ../../../../tmp/xhprof-logs/aclocal.log; then
+    echo "Fatal error: aclocal failed! View tmp/xhprof-logs/aclocal.log for more info."
+    exit 1
+fi
+
+if ! autoconf &> ../../../../tmp/xhprof-logs/autoconf.log; then
+    echo "Fatal error: autoconf failed! View tmp/xhprof-logs/autoconf.log for more info."
+    exit 1
+fi
+
 if ! ./configure &> ../../../../tmp/xhprof-logs/configure.log; then
     echo "Fatal error: configure script failed! View tmp/xhprof-logs/configure.log for more info."
     exit 2
-- 
GitLab