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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_1_0/] [or1ksim/] [configure.in] - Blame information for rev 7

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 jrydberg
dnl
2
dnl Configure script for the OpenRISC 1000 simulator
3
dnl
4
dnl report bugs to jrydberg@phx.pp.se
5
dnl
6
dnl Process this file with autoconf to produce a configure script.
7
 
8
AC_INIT(cpu/or1k/execute.c)
9
AM_INIT_AUTOMAKE(or1ksim, 1.1)
10
AM_CONFIG_HEADER(config.h)
11
 
12
AC_REVISION([for or1ksim-1.1, version 2.14, from autoconf version] AC_ACVERSION)
13
SIMVERSION=1.1
14
 
15
dnl make sure we are using a recent autoconf version
16
AC_PREREQ(2.10)
17
AC_CANONICAL_HOST
18
 
19
# We want these before the checks, so the checks can modify their values.
20
test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
21
 
22
AC_PROG_CC
23
AC_MINIX
24
 
25
AC_SET_MAKE
26
 
27
# If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
28
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
29
 
30
AC_PROG_GCC_TRADITIONAL
31
AC_PROG_INSTALL
32
AC_CHECK_PROG(AR, ar, ar)
33
dnl Set default for ARFLAGS, since autoconf does not have a macro for it.
34
dnl This allows people to set it when running configure or make
35
test -n "$ARFLAGS" || ARFLAGS="cr"
36
AC_PROG_RANLIB
37
 
38
MAKE_SHELL=/bin/sh
39
 
40
AC_SUBST(MAKE_SHELL)
41
 
42
AC_RETSIGTYPE
43
AC_HEADER_STAT
44
AC_HEADER_DIRENT
45
AC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr setlocale lstat)
46
AC_FUNC_STRCOLL
47
AC_CHECK_HEADERS(unistd.h stdlib.h varargs.h stdarg.h string.h \
48
                sys/ptem.h sys/pte.h sys/stream.h sys/select.h \
49
                termcap.h termios.h termio.h sys/file.h locale.h)
50
 
51
dnl yuck
52
case "$host_os" in
53
aix*)   prefer_curses=yes ;;
54
esac
55
 
56
case "$host_cpu" in
57
*cray*) LOCAL_CFLAGS=-DCRAY ;;
58
esac
59
 
60
case "$host_os" in
61
isc*)   LOCAL_CFLAGS=-Disc386 ;;
62
esac
63
 
64
 
65
BUILD_DIR=`pwd`
66
AC_SUBST(BUILD_DIR)
67
 
68
AC_SUBST(CFLAGS)
69
AC_SUBST(LOCAL_CFLAGS)
70
AC_SUBST(LOCAL_LDFLAGS)
71
AC_SUBST(LOCAL_DEFS)
72
 
73
AC_SUBST(AR)
74
AC_SUBST(ARFLAGS)
75
 
76
AC_SUBST(host_cpu)
77
AC_SUBST(host_os)
78
AC_SUBST(host)
79
 
80
AC_SUBST(SUMVERSION)
81
AC_SUBST(TERMCAP_LIB)
82
 
83
dnl yuck
84
CPU_ARCH=or1k
85
AC_SUBST(CPU_ARCH)
86
 
87
dnl yuck
88
INCLUDES="-I\${top_srcdir}/cpu/common -I\${top_srcdir}/cpu/$CPU_ARCH -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
89
-I\${top_srcdir}/bpb"
90
AC_SUBST(INCLUDES)
91
 
92
 
93
AC_OUTPUT([Makefile bpb/Makefile cache/Makefile cpu/Makefile
94
        cpu/common/Makefile cpu/or1k/Makefile
95
        support/Makefile mmu/Makefile],
96
[
97
# Makefile uses this timestamp file to record whether config.h is up to date.
98
echo > stamp-h
99
])

powered by: WebSVN 2.1.0

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