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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [testbench/] [configure.in] - Diff between revs 451 and 493

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

Rev 451 Rev 493
Line 43... Line 43...
MAKE_SHELL=/bin/sh
MAKE_SHELL=/bin/sh
AC_SUBST(MAKE_SHELL)
AC_SUBST(MAKE_SHELL)
 
 
dnl Compiler options.
dnl Compiler options.
AC_PROG_GCC_TRADITIONAL
AC_PROG_GCC_TRADITIONAL
AC_SUBST(CFLAGS)
dnl set -- $CFLAGS
set -- $CFLAGS
CFLAGS="-Wall"
 
 
COMPILE_OR1K=unknown
COMPILE_OR1K=unknown
 
 
AC_SUBST(TESTS_ENV)
AC_SUBST(TESTS_ENV)
TESTS_ENV=
TESTS_ENV=
AC_SUBST(OR1K_SRCDIR)
AC_SUBST(OR1K_SRCDIR)
OR1K_SRCDIR="./${top_srcdir}"
OR1K_SRCDIR="./${top_srcdir}"
case $target in
case $target in
Line 57... Line 59...
                CFLAGS="$CFLAGS -nostdlib -mhard-div"
                CFLAGS="$CFLAGS -nostdlib -mhard-div"
                COMPILE=or1k
                COMPILE=or1k
                TESTS_ENV="$SIM"
                TESTS_ENV="$SIM"
                ;;
                ;;
esac
esac
echo $TESTS_ENV
dnl echo $TESTS_ENV
AM_CONDITIONAL(OR1K_EXCEPT, test x$COMPILE = xor1k)
AM_CONDITIONAL(OR1K_EXCEPT, test x$COMPILE = xor1k)
 
 
CFLAGS="$CFLAGS -Wall"
 
 
dnl optimizations level
 
AC_MSG_CHECKING(whether to enable optimizations)
 
AC_ARG_ENABLE(opt,
 
    [  --enable-opt      enable optimizations
 
  --enable-opt=level     same as gcc -O switch  ], [
 
    case "$enableval" in
 
        yes)
 
            CFLAGS="$CFLAGS -O"
 
            ;;
 
        *)
 
            CFLAGS="$CFLAGS -O$enableval"
 
            ;;
 
    esac
 
])
 
AC_MSG_RESULT(${enable_opt-default})
 
 
 
case "$enable_debugging" in
 
    yes) AC_CHECK_LIB(efence, malloc) ;;
 
esac
 
 
AC_SUBST(INCLUDES)
AC_SUBST(INCLUDES)
INCLUDES="-I\${top_srcdir}/support"
INCLUDES="-I\${top_srcdir}/support"
 
 
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for typedefs, structures, and compiler characteristics.

powered by: WebSVN 2.1.0

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