Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorPhilip Taffner <philip.taffner@bluegfx.de>2014-09-27 13:04:44 +0400
committerPhilip Taffner <philip.taffner@bluegfx.de>2014-09-27 13:04:44 +0400
commit5fbb7e8d85f4b3fe22a50f933e21703ab0984932 (patch)
treeb1cd30cd723559bbbd0cb810f91c4265e7b165b1 /misc
parent6a959a5566f25e828f07ac5d588023931a32ba97 (diff)
xhprof: Execute aclocal and autoconf only if Gentoo is used.
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/composer/build-xhprof.sh19
1 files changed, 11 insertions, 8 deletions
diff --git a/misc/composer/build-xhprof.sh b/misc/composer/build-xhprof.sh
index cf23b3e529..fb9741d0ec 100755
--- a/misc/composer/build-xhprof.sh
+++ b/misc/composer/build-xhprof.sh
@@ -27,16 +27,19 @@ 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
+# Execute aclocal and autoconf only if Gentoo is used.
+if [[ -x /usr/bin/emerge ]]; then
+ 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
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