From 8437de71d1295facf8ef47025906a5305dc7da68 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Wed, 22 Jan 2014 10:44:18 +0000 Subject: [PATCH] * configure.ac (libelf): check against elf_getshdrstrndx() rather than just elf_begin() only, so it is clear we found a sufficiently recent libelf to work with. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1272 81a1dc3b-b13d-400b-aceb-764788c761c2 --- ChangeLog | 6 ++++++ configure.ac | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ea8053c9..e2cd52a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-01-22 Joerg Wunsch + + * configure.ac (libelf): check against elf_getshdrstrndx() rather + than just elf_begin() only, so it is clear we found a sufficiently + recent libelf to work with. + 2014-01-22 Joerg Wunsch Contributed by Alan Horstmann: diff --git a/configure.ac b/configure.ac index 283d7efb..2dc712c4 100644 --- a/configure.ac +++ b/configure.ac @@ -82,7 +82,7 @@ AC_CHECK_LIB([ncurses], [tputs]) AC_CHECK_LIB([readline], [readline]) AH_TEMPLATE([HAVE_LIBELF], [Define if ELF support is enabled via libelf]) -AC_CHECK_LIB([elf], [elf_begin], [have_libelf=yes]) +AC_CHECK_LIB([elf], [elf_getshdrstrndx], [have_libelf=yes]) if test x$have_libelf = xyes; then case $target in *)