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], [2010-08-03], [openrisc@opencores.org])
|
AC_INIT([or1ksim], [2010-08-04], [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 234 2010-08-03 10:10:12Z jeremybennett $ using automake version] AC_ACVERSION)
|
AC_REVISION([$Id: configure.ac 236 2010-08-04 16:24:21Z 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.
|
Line 71... |
Line 71... |
*) AC_DEFINE(OR32_BIG_ENDIAN, 1, "The OR32 is big endian");;
|
*) AC_DEFINE(OR32_BIG_ENDIAN, 1, "The OR32 is big endian");;
|
esac
|
esac
|
|
|
AC_SUBST(CPU_ARCH)
|
AC_SUBST(CPU_ARCH)
|
|
|
# Set the CFLAGS we want
|
# Set the CFLAGS we want. We put the user flags last, so that if the user
|
CFLAGS="$CFLAGS -g -Wall -Werror -O2 -D$ARCH_ISA"
|
# changes the optimization level, that will take precedence.
|
|
CFLAGS="-g -Wall -Werror -O2 -D$ARCH_ISA $CFLAGS"
|
|
|
AM_PROG_AS
|
AM_PROG_AS
|
|
|
AC_PROG_CC
|
AC_PROG_CC
|
AM_PROG_CC_C_O
|
AM_PROG_CC_C_O
|
Line 89... |
Line 90... |
# Set default for ARFLAGS, since autoconf does not have a macro for it.
|
# Set default for ARFLAGS, since autoconf does not have a macro for it.
|
# This allows people to set it when running configure or make
|
# This allows people to set it when running configure or make
|
test -n "$ARFLAGS" || ARFLAGS="cr"
|
test -n "$ARFLAGS" || ARFLAGS="cr"
|
|
|
AC_TYPE_SIGNAL
|
AC_TYPE_SIGNAL
|
AC_CHECK_HEADERS(unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \
|
AC_CHECK_HEADERS(unistd.h stdlib.h stdarg.h string.h strings.h \
|
sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
|
sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
|
termcap.h termios.h termio.h sys/file.h locale.h getopt.h \
|
termcap.h termios.h termio.h sys/file.h locale.h getopt.h \
|
net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h \
|
net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h \
|
limits.h)
|
limits.h)
|
AC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr setlocale lstat)
|
AC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr setlocale lstat)
|