sim: unify environment build settings
[deliverable/binutils-gdb.git] / sim / riscv / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(Makefile.in)
3 AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
4
5 SIM_AC_COMMON
6
7 SIM_AC_OPTION_ENDIAN(LITTLE)
8 SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT)
9 SIM_AC_OPTION_WARNINGS
10
11 # Select the default model for the target.
12 riscv_model=
13 case "${target}" in
14 riscv32*) riscv_model="RV32G" ;;
15 riscv*) riscv_model="RV64G" ;;
16 esac
17 SIM_AC_OPTION_DEFAULT_MODEL(${riscv_model})
18
19 # Select the bitsize of the target.
20 riscv_addr_bitsize=
21 case "${target}" in
22 riscv32*) riscv_addr_bitsize=32 ;;
23 riscv*) riscv_addr_bitsize=64 ;;
24 esac
25 SIM_AC_OPTION_BITSIZE($riscv_addr_bitsize)
26
27 SIM_AC_OUTPUT
This page took 0.084447 seconds and 4 git commands to generate.