This is a proposed patch to allow compiler names that don't fit into the
"avr-gcc" scheme like, e.g. "xgcc".
Johann
* configure.ac (CC): Use `${CC} -dumpmachine` to query for right cross
compiler instead of checking CC.
Index: configure.ac
===================================================================
--- configure.ac (revision 2259)
+++ configure.ac (working copy)
@@ -146,7 +146,12 @@ AC_CHECK_TOOL(AR, ar, ar)
# Make sure that we found the right avr cross-compiler.
case "${CC}" in
- *avr*gcc*) ;;
+ *gcc*)
+ case "X`${CC} -dumpmachine`X" in
+ XavrX) ;;
+ *) AC_MSG_ERROR(Wrong C compiler found; check the PATH!) ;;
+ esac
+ ;;
*) AC_MSG_ERROR(Wrong C compiler found; check the PATH!) ;;
esac
case "${AS}" in
_______________________________________________
AVR-GCC-list mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list