common/autoconf/basics.m4
changeset 18021 680b9b43e2d6
parent 17662 8cae100e6f14
child 18421 0296625b6c1f
--- 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
   ])
 
 ])