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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_1_0/] [or1ksim/] [configure.in] - Diff between revs 26 and 28

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

Rev 26 Rev 28
Line 15... Line 15...
 
 
dnl make sure we are using a recent autoconf version
dnl make sure we are using a recent autoconf version
AC_PREREQ(2.10)
AC_PREREQ(2.10)
AC_CANONICAL_HOST
AC_CANONICAL_HOST
 
 
 
dnl yuck
 
case "$target_cpu" in
 
or32*)  CPU_ARCH=or32;
 
        ARCH_ISA=OR32;;
 
or16*)  CPU_ARCH=or16;
 
        ARCH_ISA=OR16;;
 
dlx*)   CPU_ARCH=dlx;
 
        ARCH_ISA=DLX;;
 
esac
 
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 auto_cflags=1
test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
 
 
AC_PROG_CC
AC_PROG_CC
AC_MINIX
AC_MINIX
 
 
AC_SET_MAKE
AC_PROG_MAKE_SET
 
 
# If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
# If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2 -D$ARCH_ISA"
 
 
AC_PROG_GCC_TRADITIONAL
AC_PROG_GCC_TRADITIONAL
AC_PROG_INSTALL
AC_PROG_INSTALL
AC_CHECK_PROG(AR, ar, ar)
AC_CHECK_PROG(AR, ar, ar)
dnl Set default for ARFLAGS, since autoconf does not have a macro for it.
dnl Set default for ARFLAGS, since autoconf does not have a macro for it.
Line 38... Line 49...
 
 
MAKE_SHELL=/bin/sh
MAKE_SHELL=/bin/sh
 
 
AC_SUBST(MAKE_SHELL)
AC_SUBST(MAKE_SHELL)
 
 
AC_RETSIGTYPE
AC_TYPE_SIGNAL
AC_HEADER_STAT
AC_HEADER_STAT
AC_HEADER_DIRENT
AC_HEADER_DIRENT
AC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr setlocale lstat)
AC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr setlocale lstat)
AC_FUNC_STRCOLL
AC_FUNC_STRCOLL
AC_CHECK_HEADERS(unistd.h stdlib.h varargs.h stdarg.h string.h \
AC_CHECK_HEADERS(unistd.h stdlib.h varargs.h stdarg.h string.h \
Line 82... Line 93...
AC_SUBST(host)
AC_SUBST(host)
 
 
AC_SUBST(SUMVERSION)
AC_SUBST(SUMVERSION)
AC_SUBST(TERMCAP_LIB)
AC_SUBST(TERMCAP_LIB)
 
 
dnl yuck
 
case "$target_cpu" in
 
or32*)  CPU_ARCH=or32;;
 
or16*)  CPU_ARCH=or16;;
 
dlx*)   CPU_ARCH=dlx;;
 
esac
 
AC_SUBST(CPU_ARCH)
 
 
 
dnl yuck
dnl yuck
INCLUDES="-I\${top_srcdir}/cpu/common -I\${top_srcdir}/cpu/or1k \
INCLUDES="-I\${top_srcdir}/cpu/common -I\${top_srcdir}/cpu/or1k \
-I\${top_srcdir}/cpu/$CPU_ARCH -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
-I\${top_srcdir}/cpu/$CPU_ARCH -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
-I\${top_srcdir}/bpb"
-I\${top_srcdir}/bpb"

powered by: WebSVN 2.1.0

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