diff -r 0d1e8518c722 -r c0fa87863427 common/autoconf/basics.m4 --- a/common/autoconf/basics.m4 Tue Jun 18 11:29:34 2013 +0200 +++ b/common/autoconf/basics.m4 Tue Jun 18 11:30:36 2013 +0200 @@ -363,7 +363,11 @@ AC_MSG_ERROR([Cannot specify both --with-devkit and --with-tools-dir at the same time]) fi TOOLS_DIR=$with_devkit/bin - SYS_ROOT=$with_devkit/$host_alias/libc + if test -d "$with_devkit/$host_alias/libc"; then + SYS_ROOT=$with_devkit/$host_alias/libc + elif test -d "$with_devkit/$host/sys-root"; then + SYS_ROOT=$with_devkit/$host/sys-root + fi ]) ])