From bbf9488bf68c0d39941a82ce1504c56dbcf2c277 Mon Sep 17 00:00:00 2001 From: joerg_wunsch Date: Mon, 9 Sep 2013 15:00:36 +0000 Subject: [PATCH] Check for ar and ranlib in the target tool namespace, rather than on the host. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1214 81a1dc3b-b13d-400b-aceb-764788c761c2 --- ChangeLog | 5 +++++ configure.ac | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index d074eb9d..d3d52bc0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-09-09 Joerg Wunsch + + * configure.ac: check for ar and ranlib in the target tool + namespace, rather than on the host. + 2013-09-08 Joerg Wunsch Fix byte-wise EEPROM and flash writes on Xmega diff --git a/configure.ac b/configure.ac index 4bd32b1a..4eb2f49e 100644 --- a/configure.ac +++ b/configure.ac @@ -39,7 +39,14 @@ AC_PROG_INSTALL AC_PROG_SED AC_PROG_YACC AC_PROG_LEX +AN_MAKEVAR([RANLIB], [AC_PROG_RANLIB]) +AN_PROGRAM([ranlib], [AC_PROG_RANLIB]) +AC_DEFUN([AC_PROG_RANLIB], [AC_CHECK_TARGET_TOOL(RANLIB, ranlib, :)]) AC_PROG_RANLIB +AN_MAKEVAR([AR], [AC_PROG_AR]) +AN_PROGRAM([ar], [AC_PROG_AR]) +AC_DEFUN([AC_PROG_AR], [AC_CHECK_TARGET_TOOL(AR, ar, :)]) +AC_PROG_AR AH_TEMPLATE([HAVE_YYLEX_DESTROY], [Define if lex/flex has yylex_destroy]) # flex should have this