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

Subversion Repositories or1k

[/] [or1k/] [tags/] [rel-0-3-0-rc2/] [or1ksim/] [configure.ac] - Diff between revs 1748 and 1751

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

Rev 1748 Rev 1751
Line 24... Line 24...
# Configure script for the OpenRISC 1000 simulator
# Configure script for the OpenRISC 1000 simulator
 
 
# Process this file with autoconf to produce a configure script.
# Process this file with autoconf to produce a configure script.
 
 
 
 
AC_INIT([or1ksim], [0.3.0rc1], [openrisc@opencores.org])
AC_INIT([or1ksim], [0.3.0rc2], [openrisc@opencores.org])
AC_CONFIG_SRCDIR([cpu/or32/execute.c])
AC_CONFIG_SRCDIR([cpu/or32/execute.c])
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,v 1.1 2008-10-12 17:27:52 jeremybennett Exp $ using automake version] AC_ACVERSION)
AC_REVISION([$Id: configure.ac,v 1.2 2008-11-11 13:24:02 jeremybennett Exp $ 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;
Line 49... Line 49...
        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
 
 
 
# determine endianism from target CPU name. If it has "little" in the name,
 
# then its litte endian, otherwise its big endian (default for OR1K)
 
case "$target_cpu" in
 
*little*)  AC_DEFINE(OR32_LITTLE_ENDIAN, 1, "The OR32 is little endian");;
 
       *)  AC_DEFINE(OR32_BIG_ENDIAN,    1, "The OR32 is big endian");;
 
esac
 
 
AC_SUBST(CPU_ARCH)
AC_SUBST(CPU_ARCH)
 
 
# We want these before the checks, so the checks can modify their values.
# We want these before the checks, so the checks can modify their values.
test -z "$CFLAGS" && CFLAGS="-g -Wall" auto_cflags=1
test -z "$CFLAGS" && CFLAGS="-g -Wall" auto_cflags=1
 
 
Line 89... Line 96...
AC_HEADER_STDC
AC_HEADER_STDC
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)
 
AC_CHECK_DECLS([I_PUSH])
AC_C_BIGENDIAN
AC_C_BIGENDIAN
 
 
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
AC_C_CONST
AC_C_CONST
AC_TYPE_SIZE_T
AC_TYPE_SIZE_T
Line 122... Line 130...
AC_CHECK_SIZEOF(char, 1)
AC_CHECK_SIZEOF(char, 1)
AC_CHECK_SIZEOF(short, 1)
AC_CHECK_SIZEOF(short, 1)
AC_CHECK_SIZEOF(int, 1)
AC_CHECK_SIZEOF(int, 1)
AC_CHECK_SIZEOF(long, 1)
AC_CHECK_SIZEOF(long, 1)
 
 
 
#Check for compare function type for qsort (needed by some Linuxes)
 
AC_CHECK_TYPES([__compar_fn_t])
 
 
# check for GNU readline
# check for GNU readline
AC_CHECK_LIB(readline, add_history)
AC_CHECK_LIB(readline, add_history)
 
 
# yuck
# yuck
case "$host_os" in
case "$host_os" in
Line 148... Line 159...
 
 
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 -a" ;;
        yes) profile="-pg" ;;
    esac
    esac
])
])
AC_MSG_RESULT(${enable_profiling-no})
AC_MSG_RESULT(${enable_profiling-no})
 
 
execution="1"
execution="1"
Line 236... Line 247...
AC_ARG_ENABLE(
AC_ARG_ENABLE(
    [debug],
    [debug],
    AC_HELP_STRING([--enable-debug],[enable library debugging symbols]),
    AC_HELP_STRING([--enable-debug],[enable library debugging symbols]),
    [
    [
       case $enableval in
       case $enableval in
          yes) echo "enabling debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
          no)  echo "disabling debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
          *)   echo "illegal argument to --enable-debug" & exit 1;;
          *)   echo "illegal argument to --enable-debug" & exit 1;;
       esac
       esac
    ],
    ],
    [DEBUGFLAGS="-DNDEBUG"]
    [DEBUGFLAGS="-DNDEBUG"]
    )
    )

powered by: WebSVN 2.1.0

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