X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=configure.ac;h=ebfd649795a37a5c2098efee103cc817abeff602;hb=e0ce10a4148d4087e46252584b85b2fff3a0dbd7;hp=c32adb1b036fc04c9ff98d8580ef917da92a330e;hpb=834cd6bd0b65360515ba205ace61c96f83f81867;p=riscv-tests.git diff --git a/configure.ac b/configure.ac index c32adb1..ebfd649 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,15 @@ AC_INIT(riscv-tests, 1.0) cross_compiling=yes -AC_PROG_CC([riscv64-unknown-elf-gcc]) +AC_PROG_CC + +AC_ARG_WITH(xlen, + [AS_HELP_STRING([--with-xlen=XLEN], + [Set XLEN, the X-register bit width (default is 64)])], + AC_SUBST(XLEN, $withval), + AC_SUBST(XLEN, 64) + ) + AC_OUTPUT( Makefile