source: trunk/libs/newlib/src/libgloss/configure.in @ 450

Last change on this file since 450 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

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