Test for libelf.h in subdirectory libelf, too, and inlude it from there if test
was positive. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1093 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
d486a0a1cd
commit
a8b5742512
|
@ -1,3 +1,9 @@
|
||||||
|
2012-07-18 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
|
* configure.ac: check for libelf.h also in libelf/
|
||||||
|
* fileio.c: include <libelf/libelf.h> if configure found this
|
||||||
|
to be the case
|
||||||
|
|
||||||
2012-06-13 Rene Liebscher <R.Liebscher@gmx.de>
|
2012-06-13 Rene Liebscher <R.Liebscher@gmx.de>
|
||||||
|
|
||||||
* configure.ac: Check for presence of <pthread.h>
|
* configure.ac: Check for presence of <pthread.h>
|
||||||
|
|
|
@ -84,7 +84,7 @@ if test x$have_libelf = xyes; then
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_DEFINE([HAVE_LIBELF])
|
AC_DEFINE([HAVE_LIBELF])
|
||||||
AC_CHECK_HEADERS([libelf.h])
|
AC_CHECK_HEADERS([libelf.h libelf/libelf.h])
|
||||||
fi
|
fi
|
||||||
AC_SUBST(LIBELF, $LIBELF)
|
AC_SUBST(LIBELF, $LIBELF)
|
||||||
|
|
||||||
|
|
4
fileio.c
4
fileio.c
|
@ -30,7 +30,11 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#ifdef HAVE_LIBELF
|
#ifdef HAVE_LIBELF
|
||||||
|
#ifdef HAVE_LIBELF_H
|
||||||
#include <libelf.h>
|
#include <libelf.h>
|
||||||
|
#elif defined(HAVE_LIBELF_LIBELF_H)
|
||||||
|
#include <libelf/libelf.h>
|
||||||
|
#endif
|
||||||
#define EM_AVR32 0x18ad /* inofficial */
|
#define EM_AVR32 0x18ad /* inofficial */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue