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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [configure.ac] - Diff between revs 90 and 91

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

Rev 90 Rev 91
Line 29... Line 29...
# 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-04-21], [openrisc@opencores.org])
AC_INIT([or1ksim], [2010-04-21], [openrisc@opencores.org])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_MACRO_DIR([m4])
 
 
 
# Generically use extensions such as _GNU_SOURCE if available.
 
AC_USE_SYSTEM_EXTENSIONS
 
 
# Check we have the execute source file present for sanity. Specify a separate
# Check we have the execute source file present for sanity. Specify a separate
# config for the testsuite OR1K specific programs, since we'll need different
# config for the testsuite OR1K specific programs, since we'll need different
# tool chain there (the OpenRISC one, rather than the native one).
# tool chain there (the OpenRISC one, rather than the native one).
AC_CONFIG_SRCDIR([cpu/or32/execute.c])
AC_CONFIG_SRCDIR([cpu/or32/execute.c])
AC_CONFIG_SUBDIRS([testsuite/test-code-or1k])
AC_CONFIG_SUBDIRS([testsuite/test-code-or1k])
 
 
AC_CANONICAL_TARGET([])
AC_CANONICAL_TARGET([])
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 90 2010-04-21 17:30:28Z jeremybennett $ using automake version] AC_ACVERSION)
AC_REVISION([$Id: configure.ac 91 2010-04-21 18:40:17Z 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 80... Line 84...
AC_PROG_MAKE_SET
AC_PROG_MAKE_SET
 
 
AC_PROG_INSTALL
AC_PROG_INSTALL
AC_CHECK_PROG(AR, ar, ar)
AC_CHECK_PROG(AR, ar, ar)
 
 
# This is GNU compliant source and uses GNU libraries
 
AC_DEFINE(_GNU_SOURCE, 1, "The source code uses the GNU libraries)
 
AC_SUBST(_GNU_SOURCE)
 
 
 
# 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"
 
 
MAKE_SHELL=/bin/sh
 
 
 
AC_SUBST(MAKE_SHELL)
 
 
 
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 varargs.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)
Line 203... Line 199...
case "$host_os" in
case "$host_os" in
solaris*) LIBS="-lsocket -lnsl" ;;
solaris*) LIBS="-lsocket -lnsl" ;;
esac
esac
 
 
# define options
# define options
 
 
AC_MSG_CHECKING(whether to enable profiling)
AC_MSG_CHECKING(whether to enable profiling)
AC_ARG_ENABLE(profiling,
AC_ARG_ENABLE(profiling,
    [  --enable-profiling      generate profiling code], [
    [  --enable-profiling      generate profiling code], [
    case "$enableval" in
    case "$enableval" in
        yes) profile="-pg" ;;
        yes) profile="-pg" ;;

powered by: WebSVN 2.1.0

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