if test x"${NDEBUG}" = "xno"; then
AC_MSG_RESULT(yes)
- dnl check for binutils-dev headers on some architectures
+ dnl check for binutils headers and libraries on some architectures for the
+ dnl disassembler
case "${ARCH_DIR}" in
arm | i386 | powerpc | x86_64 )
- AC_CHECK_HEADER([ansidecl.h],, [AC_MSG_ERROR(cannot find ansidecl.h)])
- AC_CHECK_HEADER([bfd.h],, [AC_MSG_ERROR(cannot find bfd.h)])
- AC_CHECK_HEADER([symcat.h],, [AC_MSG_ERROR(cannot find symcat.h)])
+ AC_CHECK_HEADER([dis-asm.h],, [AC_MSG_ERROR(cannot find dis-asm.h)])
+ AC_CHECK_LIB(bfd, bfd_get_arch,, [AC_MSG_ERROR(cannot find libbfd (from bintuils))])
+ AC_CHECK_LIB(opcodes, init_disassemble_info,, [AC_MSG_ERROR(cannot find libopcodes (from bintuils))])
;;
esac