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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [libgloss/] [configure.in] - Blame information for rev 816

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

Line No. Rev Author Line
1 207 jeremybenn
dnl Process this file with autoconf to produce a configure script.
2
AC_PREREQ(2.59)
3
AC_INIT([libgloss],[LIBGLOSS_VERSION])
4
AC_CONFIG_SRCDIR([libnosys])
5
 
6
if test "${enable_shared}" = "yes" ; then
7
    echo "Shared libraries not supported for cross compiling, ignored"
8
fi
9
 
10
if test "${srcdir}" = "." ; then
11
  if test "${with_target_subdir}" != "." ; then
12
    libgloss_topdir="${srcdir}/${with_multisrctop}../.."
13
  else
14
    libgloss_topdir="${srcdir}/${with_multisrctop}.."
15
  fi
16
else
17
  libgloss_topdir="${srcdir}/.."
18
fi
19
AC_CONFIG_AUX_DIR($libgloss_topdir)
20
 
21
AC_PROG_INSTALL
22
 
23
AC_CANONICAL_SYSTEM
24
AM_INIT_AUTOMAKE([cygnus no-define 1.9.5])
25
 
26
if test -z "${with_multisubdir}" ; then
27
  AC_CONFIG_SUBDIRS([doc])
28
fi
29
 
30
dnl indicates whether to run configure within the testsuite subdirectory
31
config_testsuite=true
32
 
33
dnl indicates whether to run configure within the libnosys subdirectory
34
config_libnosys=true
35
 
36
case "${target}" in
37
  i[[3456]]86-*-elf* | i[[3456]]86-*-coff*)
38
        AC_CONFIG_SUBDIRS([i386])
39
        ;;
40
  m32r-*-*)
41
        AC_CONFIG_SUBDIRS([m32r])
42
        ;;
43
  m68hc11-*-* | m6811-*-* | m68hc12-*-* | m6812-*-*)
44
        AC_CONFIG_SUBDIRS([m68hc11])
45
        ;;
46
  fido-*-* | m68*-*-*)
47
        AC_CONFIG_SUBDIRS([m68k])
48
        ;;
49
  hppa*-*-pro*)
50
        AC_CONFIG_SUBDIRS([pa])
51
        ;;
52
  i960-*-coff)
53
        AC_CONFIG_SUBDIRS([i960])
54
        ;;
55
  sparclet-*-aout* | sparc-*-elf* | sparc64-*-elf* | sparc86x-*-* | sparclite-*-*)
56
        AC_CONFIG_SUBDIRS([sparc])
57
        ;;
58
  sh*-*-pe | mips*-*-pe | *arm-wince-pe)
59
        AC_CONFIG_SUBDIRS([wince])
60
        ;;
61
  mips*-*-*)
62
        AC_CONFIG_SUBDIRS([mips])
63
        ;;
64
  powerpc-*-*|powerpcle-*-*)
65
        AC_CONFIG_SUBDIRS([rs6000])
66
        ;;
67
  mn10200-*-*)
68
        AC_CONFIG_SUBDIRS([mn10200])
69
        ;;
70
  mn10300-*-*)
71
        AC_CONFIG_SUBDIRS([mn10300])
72
        ;;
73
  bfin-*-*)
74
        AC_CONFIG_SUBDIRS([bfin])
75
        ;;
76
  cris-*-* | crisv32-*-*)
77
        AC_CONFIG_SUBDIRS([cris])
78
        ;;
79
  crx-*-*)
80
        AC_CONFIG_SUBDIRS([crx])
81
        ;;
82
  d30v-*-*)
83
        AC_CONFIG_SUBDIRS([d30v])
84
        ;;
85
  fr30-*-*)
86
        AC_CONFIG_SUBDIRS([fr30])
87
        ;;
88
  frv*-*-*)
89
        AC_CONFIG_SUBDIRS([frv])
90
        ;;
91
  lm32*-*-*)
92
        AC_CONFIG_SUBDIRS([lm32])
93
        ;;
94
  mcore-*-*)
95
        AC_CONFIG_SUBDIRS([mcore])
96
        ;;
97
  mep-*-*)
98
        AC_CONFIG_SUBDIRS([mep])
99
        ;;
100
  moxie-*-*)
101
        AC_CONFIG_SUBDIRS([moxie])
102
        ;;
103
  microblaze-*-*)
104
        AC_CONFIG_SUBDIRS([microblaze])
105
        ;;
106
  mt-*-*)
107
        AC_CONFIG_SUBDIRS([mt])
108
        ;;
109
  xc16x-*-*)
110
        AC_CONFIG_SUBDIRS([xc16x])
111
        ;;
112
  xstormy16-*-*)
113
        AC_CONFIG_SUBDIRS([xstormy16])
114
        ;;
115
  m32c-*-*)
116
        AC_CONFIG_SUBDIRS([m32c])
117
        ;;
118
  rx*-*-elf)
119
        AC_CONFIG_SUBDIRS([rx])
120
        ;;
121
  strongarm-*-elf | strongarm-*-coff | arm*-*-elf | arm*-*-coff | ep9312-*-elf | ep9312-*-coff | xscale-*-elf | xscale-*-coff | *arm-*-*)
122
        AC_CONFIG_SUBDIRS([arm])
123
        ;;
124
  spu-*-elf)
125
        AC_CONFIG_SUBDIRS([spu])
126
        config_testsuite=false
127
        config_libnosys=false
128
        ;;
129
  or32-*-*)
130
        AC_CONFIG_SUBDIRS(or32)
131
        ;;
132
  iq2000-*-*)
133
        AC_CONFIG_SUBDIRS([iq2000])
134
        ;;
135
esac
136
 
137
dnl For now, don't bother configuring testsuite
138
dnl
139
dnl if test "${config_testsuite}" = "true";
140
dnl   then AC_CONFIG_SUBDIRS([testsuite])
141
dnl fi
142
 
143
if test "${config_libnosys}" = "true"; then
144
  AC_CONFIG_SUBDIRS([libnosys])
145
fi
146
 
147
LIB_AC_PROG_CC
148
AS=${AS-as}
149
AC_SUBST(AS)
150
AC_CHECK_PROG(AR, ar, ar, :)
151
AR=${AR-ar}
152
AC_SUBST(AR)
153
LD=${LD-ld}
154
AC_SUBST(LD)
155
AC_PROG_RANLIB
156
LIB_AM_PROG_AS
157
 
158
host_makefile_frag=${srcdir}/config/default.mh
159
 
160
dnl We have to assign the same value to other variables because autoconf
161
dnl doesn't provide a mechanism to substitute a replacement keyword with
162
dnl arbitrary data or pathnames.
163
dnl
164
host_makefile_frag_path=$host_makefile_frag
165
AC_SUBST(host_makefile_frag_path)
166
AC_SUBST_FILE(host_makefile_frag)
167
 
168
if test "${multilib}" = "yes"; then
169
  multilib_arg="--enable-multilib"
170
else
171
  multilib_arg=
172
fi
173
 
174
# for now, only add multilibs for specific targets
175
AC_CONFIG_FILES([Makefile],
176
[if test -n "$CONFIG_FILES"; then
177
  unset ac_file
178
  . ${libgloss_topdir}/config-ml.in
179
fi],
180
srcdir=${srcdir}
181
target=${target}
182
with_multisubdir=${with_multisubdir}
183
ac_configure_args="--enable-multilib ${ac_configure_args}"
184
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
185
libgloss_topdir=${libgloss_topdir}
186
CC="${CC}"
187
LDFLAGS=${LDFLAGS}
188
)
189
AC_OUTPUT
190
 
191
 

powered by: WebSVN 2.1.0

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