configure: Add check for bfh.h

We need bfd.h for the image object, so add a check for it in
configure.ac.

Signed-off-by: Ivan Hu <ivanh.hu@canonical.com>
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
Ivan Hu 2012-06-20 11:59:32 +08:00 committed by Jeremy Kerr
parent 4d892eb723
commit 14cff46671

View file

@ -17,6 +17,10 @@ AC_PROG_MKDIR_P
AC_CHECK_TOOL(OBJCOPY, [objcopy]) AC_CHECK_TOOL(OBJCOPY, [objcopy])
AC_CHECK_TOOL(STRIP, [strip]) AC_CHECK_TOOL(STRIP, [strip])
AC_CHECK_HEADER([bfd.h], [],
AC_MSG_ERROR([bfd.h not found.]
[bfd.h is usually distributed in a binutils development package.]))
if test $cross_compiling = no; then if test $cross_compiling = no; then
AM_MISSING_PROG(HELP2MAN, help2man) AM_MISSING_PROG(HELP2MAN, help2man)
else else