OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [configure.ac] - Diff between revs 538 and 552

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 538 Rev 552
Line 44... Line 44...
AC_PROG_LIBTOOL
AC_PROG_LIBTOOL
AM_INIT_AUTOMAKE
AM_INIT_AUTOMAKE
 
 
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_HEADERS([config.h])
 
 
AC_REVISION([$Id: configure.ac 538 2011-05-09 14:42:56Z julius $ using automake version] AC_ACVERSION)
AC_REVISION([$Id: configure.ac 552 2011-06-05 10:49:58Z julius $ using automake version] AC_ACVERSION)
 
 
# make sure we are using a recent autoconf version
# make sure we are using a recent autoconf version
AC_PREREQ(2.59)
AC_PREREQ(2.59)
 
 
# yuck.
# yuck.
case "$target_cpu" in
case "$target_cpu" in
or32*)  CPU_ARCH=or32;
or32*)  CPU_ARCH=or32;
        ARCH_ISA=OR32;
        ARCH_ISA=OR32;
        AC_DEFINE(OR32_TYPES, 1, "The compiler uses the OR32 ELF types");;
        AC_DEFINE(OR32_TYPES, 1, "The compiler uses the OR32 ELF types");;
 
 
dlx*)   CPU_ARCH=dlx;
 
        ARCH_ISA=DLX;;
 
 
 
*)      AC_MSG_WARN(Unknown target architecture $target_cpu: OR32 ELF assumed);
*)      AC_MSG_WARN(Unknown target architecture $target_cpu: OR32 ELF assumed);
        CPU_ARCH=or32;
        CPU_ARCH=or32;
        ARCH_ISA=OR32;
        ARCH_ISA=OR32;
        AC_DEFINE(OR32_TYPES, 1, "The compiler uses the OR32 ELF types");;
        AC_DEFINE(OR32_TYPES, 1, "The compiler uses the OR32 ELF types");;
esac
esac
Line 217... Line 214...
execution="1"
execution="1"
 
 
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
AC_MSG_CHECKING(which execution style to use)
AC_MSG_CHECKING(which execution style to use)
AC_ARG_ENABLE(execution,
AC_ARG_ENABLE(execution,
    [  --enable-execution Execution style to use (simple/complex/dynamic)],
    [  --enable-execution Execution style to use (simple/complex)],
    [
    [
    case "$enableval" in
    case "$enableval" in
    simple)
    simple)
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
      execution="0"
      execution="0"
Line 230... Line 227...
    complex)
    complex)
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
      execution="1"
      execution="1"
      AC_MSG_RESULT(complex)
      AC_MSG_RESULT(complex)
      ;;
      ;;
    dynamic)
 
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
 
      execution="2"
 
      AC_MSG_RESULT(dynamic)
 
      ;;
 
    *)
    *)
      AC_MSG_ERROR("execution must one of simple/complex/dynamic")
      AC_MSG_ERROR("execution must one of simple/complex")
      ;;
      ;;
    esac
    esac
    ],
    ],
    [
    [
      AC_MSG_RESULT(complex)
      AC_MSG_RESULT(complex)
Line 297... Line 289...
AC_DEFINE_UNQUOTED(RAW_RANGE_STATS, $raw_range_stats, [ Specifies, whether we should do register accesses over time analysis. Simple execution must be enabled!])
AC_DEFINE_UNQUOTED(RAW_RANGE_STATS, $raw_range_stats, [ Specifies, whether we should do register accesses over time analysis. Simple execution must be enabled!])
AC_DEFINE_UNQUOTED(HAVE_ETH_PHY, $eth_phy, [Whether we have ethernet PHY support])
AC_DEFINE_UNQUOTED(HAVE_ETH_PHY, $eth_phy, [Whether we have ethernet PHY support])
AC_DEFINE_UNQUOTED(HAVE_UNSIGNED_XORI, $unsigned_xori, [Whether l.xori takes an unsigned immediate operand])
AC_DEFINE_UNQUOTED(HAVE_UNSIGNED_XORI, $unsigned_xori, [Whether l.xori takes an unsigned immediate operand])
AC_DEFINE_UNQUOTED(SIMPLE_EXECUTION, $execution == 0, [Whether we are building with simple execution module])
AC_DEFINE_UNQUOTED(SIMPLE_EXECUTION, $execution == 0, [Whether we are building with simple execution module])
AC_DEFINE_UNQUOTED(COMPLEX_EXECUTION, $execution == 1, [Whether we are building with complex execution module])
AC_DEFINE_UNQUOTED(COMPLEX_EXECUTION, $execution == 1, [Whether we are building with complex execution module])
AC_DEFINE_UNQUOTED(DYNAMIC_EXECUTION, $execution == 2, [Whether we are building with dynamic execution module])
 
AM_CONDITIONAL(GENERATE_NEEDED, test x$execution = x1)
AM_CONDITIONAL(GENERATE_NEEDED, test x$execution = x1)
AM_CONDITIONAL(DYNAMIC_EXECUTION, test x$execution = x2)
 
 
 
 
 
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
 
 
# Check for a DejaGNU global config file. If not set, then set it
# Check for a DejaGNU global config file. If not set, then set it
Line 378... Line 369...
                 tick/Makefile                            \
                 tick/Makefile                            \
                 vapi/Makefile])
                 vapi/Makefile])
 
 
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
case "$CPU_ARCH" in
case "$CPU_ARCH" in
dlx)    AC_CONFIG_FILES([cpu/dlx/Makefile]);;
 
*)      AC_CONFIG_FILES([cpu/or32/Makefile]);;
*)      AC_CONFIG_FILES([cpu/or32/Makefile]);;
esac
esac
 
 
# Generate the output
# Generate the output
AC_COPYRIGHT([Copyright (C) 1999-2008 OpenCores
AC_COPYRIGHT([Copyright (C) 1999-2008 OpenCores

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.