diff options
author | Philip Taffner <philip.taffner@bluegfx.de> | 2014-09-27 13:04:44 +0400 |
---|---|---|
committer | Philip Taffner <philip.taffner@bluegfx.de> | 2014-09-27 13:04:44 +0400 |
commit | 5fbb7e8d85f4b3fe22a50f933e21703ab0984932 (patch) | |
tree | b1cd30cd723559bbbd0cb810f91c4265e7b165b1 /misc | |
parent | 6a959a5566f25e828f07ac5d588023931a32ba97 (diff) |
xhprof: Execute aclocal and autoconf only if Gentoo is used.
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/composer/build-xhprof.sh | 19 |
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 |