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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [configure.ac] - Blame information for rev 258

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

Line No. Rev Author Line
1 24 jeremybenn
dnl Process this file with autoconf to produce a configure script.
2
AC_PREREQ(2.59)dnl
3
AC_INIT(Makefile.in)
4
 
5
AC_PROG_CC
6
AC_PROG_INSTALL
7
AC_CHECK_TOOL(AR, ar)
8
AC_CHECK_TOOL(RANLIB, ranlib, :)
9
 
10
AC_CANONICAL_SYSTEM
11
AC_ARG_PROGRAM
12
AC_PROG_CC
13
AC_SUBST(CFLAGS)
14
AC_SUBST(HDEFINES)
15
AR=${AR-ar}
16
AC_SUBST(AR)
17
AC_PROG_RANLIB
18
 
19
# Put a plausible default for CC_FOR_BUILD in Makefile.
20
if test "x$cross_compiling" = "xno"; then
21
  CC_FOR_BUILD='$(CC)'
22
else
23
  CC_FOR_BUILD=gcc
24
fi
25
AC_SUBST(CC_FOR_BUILD)
26
CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
27
AC_SUBST(CFLAGS_FOR_BUILD)
28
 
29
# If a cpu ever has more than one simulator to choose from, use
30
# --enable-sim=... to choose.
31
AC_ARG_ENABLE(sim,
32
[  --enable-sim ],
33
[case "${enableval}" in
34
yes | no) ;;
35
*)      AC_MSG_ERROR(bad value ${enableval} given for --enable-sim option) ;;
36
esac])
37
 
38 213 jeremybenn
# Added from binutils 2.20.1/bfd
39
#Link in zlib if we can.  This allows us to read compressed debug sections.
40
# This is used only by compress.c.
41
AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
42
AC_SUBST(LIBS)
43
 
44 24 jeremybenn
# WHEN ADDING ENTRIES TO THIS MATRIX:
45
 
46
# Make sure that the left side always has two dashes.  Otherwise you
47
# can get spurious matches.  Even for unambiguous cases, do this as a
48
# convention, else the table becomes a real mess to understand and
49
# maintain.
50
 
51
if test "${enable_sim}" != no; then
52
   testsuite=no
53
   common=yes
54
   igen=no
55
   case "${target}" in
56
       arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
57
           AC_CONFIG_SUBDIRS(arm)
58
           testsuite=yes
59
           ;;
60
       cris-*-* | crisv32-*-*)
61
           AC_CONFIG_SUBDIRS(cris)
62
           testsuite=yes
63
           ;;
64
       d10v-*-*)
65
           AC_CONFIG_SUBDIRS(d10v)
66
           ;;
67
       frv-*-*)
68
           AC_CONFIG_SUBDIRS(frv)
69
           testsuite=yes
70
           ;;
71
       h8300*-*-*)
72
           AC_CONFIG_SUBDIRS(h8300)
73
           testsuite=yes
74
           ;;
75
       iq2000-*-*)
76
           AC_CONFIG_SUBDIRS(iq2000)
77
           testsuite=yes
78
           ;;
79
       m32c-*-*)
80
           AC_CONFIG_SUBDIRS(m32c)
81
           ;;
82
       m32r-*-*)
83
           AC_CONFIG_SUBDIRS(m32r)
84
           testsuite=yes
85
           ;;
86
       m68hc11-*-*|m6811-*-*)
87
           AC_CONFIG_SUBDIRS(m68hc11)
88
           testsuite=yes
89
           ;;
90
       mcore-*-*)
91
           AC_CONFIG_SUBDIRS(mcore)
92
           testsuite=yes
93
           ;;
94
       mips*-*-*)
95
           AC_CONFIG_SUBDIRS(mips)
96
           testsuite=yes
97
           igen=yes
98
           ;;
99
       mn10300*-*-*)
100
           AC_CONFIG_SUBDIRS(mn10300)
101
           igen=yes
102
           ;;
103 147 jeremybenn
       or32-*-*)
104
           AC_CONFIG_SUBDIRS(or32)
105
           testsuite=yes
106
           ;;
107 24 jeremybenn
       sh64*-*-*)
108
           AC_CONFIG_SUBDIRS(sh64)
109
           testsuite=yes
110
           ;;
111
       sh*-*-*)
112
           AC_CONFIG_SUBDIRS(sh)
113
           testsuite=yes
114
           ;;
115
       sparc-*-rtems*|sparc-*-elf*)
116
           AC_CONFIG_SUBDIRS(erc32)
117
           testsuite=yes
118
           ;;
119
       powerpc*-*-* )
120
           AC_CONFIG_SUBDIRS(ppc)
121
           ;;
122
       v850*-*-* )
123
           AC_CONFIG_SUBDIRS(v850)
124
           igen=yes
125
           testsuite=yes
126
           ;;
127
       *)
128
           # No simulator subdir, so the subdir "common" isn't needed.
129
           common=no
130
           ;;
131
   esac
132
   if test "$testsuite" = yes; then
133
      AC_CONFIG_SUBDIRS(testsuite)
134
   fi
135
   if test "$common" = yes; then
136
      AC_CONFIG_SUBDIRS(common)
137
   fi
138
   if test "$igen" = yes; then
139
      AC_CONFIG_SUBDIRS(igen)
140
   fi
141
fi
142
 
143
AC_OUTPUT(Makefile)
144
 
145
exit 0

powered by: WebSVN 2.1.0

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