Line 26... |
Line 26... |
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
# Use a full version number (x.y.z, possibly with "rcn" as a suffix) when
|
# Use a full version number (x.y.z, possibly with "rcn" as a suffix) when
|
# preparing a release, otherwise use a the date version (yyyy-mm-dd).
|
# preparing a release, otherwise use a the date version (yyyy-mm-dd).
|
AC_INIT([or1ksim], [0.5.0rc1], [openrisc@opencores.org])
|
AC_INIT([or1ksim], [0.5.0rc2], [openrisc@opencores.org])
|
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
# Generically use extensions such as _GNU_SOURCE if available.
|
# Generically use extensions such as _GNU_SOURCE if available.
|
AC_USE_SYSTEM_EXTENSIONS
|
AC_USE_SYSTEM_EXTENSIONS
|
|
|
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 346 2010-09-07 11:55:53Z jeremybennett $ using automake version] AC_ACVERSION)
|
AC_REVISION([$Id: configure.ac 385 2010-10-02 14:15:12Z jeremybennett $ 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;
|
dlx*) CPU_ARCH=dlx;
|
ARCH_ISA=DLX;;
|
ARCH_ISA=DLX;;
|
*) AC_MSG_WARN(Unknown target architecture $target_cpu: OR32 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
|
|
|