1 AC_ARG_ENABLE([fpu], AS_HELP_STRING([--disable-fpu], [Disable floating-point]))
2 AS_IF([test "x$enable_fpu" != "xno"], [
3 AC_DEFINE([RISCV_ENABLE_FPU],,[Define if floating-point instructions are supported])
6 AC_ARG_ENABLE([64bit], AS_HELP_STRING([--disable-64bit], [Disable 64-bit mode]))
7 AS_IF([test "x$enable_64bit" != "xno"], [
8 AC_DEFINE([RISCV_ENABLE_64BIT],,[Define if 64-bit mode is supported])
11 AC_ARG_ENABLE([rvc], AS_HELP_STRING([--disable-rvc], [Disable instruction compression]))
12 AS_IF([test "x$enable_rvc" != "xno"], [
13 AC_DEFINE([RISCV_ENABLE_RVC],,[Define if instruction compression is supported])
16 libopc=`dirname \`which riscv-gcc\``/../`$ac_config_guess`/riscv/lib/libopcodes.a
17 AC_CHECK_FILES([$libopc],[have_libopcodes="yes"],[have_libopcodes="no"])
19 AC_SEARCH_LIBS([bfd_init],[bfd],[],[have_libopcodes="no"])
21 AS_IF([test "$have_libopcodes" = "no"],[
22 AC_MSG_WARN([Could not find opcodes library])
23 AC_MSG_WARN([Build will not include disassembly support])
26 AC_DEFINE([RISCV_HAVE_LIBOPCODES],,[Define if libopcodes exists])