X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=summon-arm-toolchain.git;a=blobdiff_plain;f=summon-arm-toolchain;fp=summon-arm-toolchain;h=16ad7700d4e9a2048d043b98a7f494c66513133a;hp=d4c1cef0306e54d94c7522303c85e2f6793a3d58;hb=4de5db93097ff0ada59fc3cf0b8b6072a1e604c0;hpb=2fdc1199850aa123b3812fde3d10989ea4eb5131 diff --git a/summon-arm-toolchain b/summon-arm-toolchain index d4c1cef..16ad770 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -141,9 +141,14 @@ else TAR=tar # use the system tar fi -if [ -z MAKE ]; then - MAKE=make - export make # make it known to the configure scripts +if [ -z ${MAKE} ]; then + if which gnumake > /dev/null; then + export MAKE=gnumake + elif which gmake > /dev/null; then + export MAKE=gmake + else + export MAKE=make # should be GNU make + fi fi ##############################################################################