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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [libgloss/] [libnosys/] [configure.in] - Blame information for rev 231

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

Line No. Rev Author Line
1 207 jeremybenn
# Copyright (c) 1995, 1996 Cygnus Support
2
#
3
# The authors hereby grant permission to use, copy, modify, distribute,
4
# and license this software and its documentation for any purpose, provided
5
# that existing copyright notices are retained in all copies and that this
6
# notice is included verbatim in any distributions. No written agreement,
7
# license, or royalty fee is required for any of the authorized uses.
8
# Modifications to this software may be copyrighted by their authors
9
# and need not follow the licensing terms described here, provided that
10
# the new terms are clearly indicated on the first page of each file where
11
# they apply.
12
#
13
# Process this file with autoconf to produce a configure script.
14
#
15
AC_PREREQ(2.59)
16
AC_INIT(close.c)
17
AC_CONFIG_HEADER(config.h)
18
 
19
if test "${enable_shared}" = "yes" ; then
20
    echo "Shared libraries not supported for cross compiling, ignored"
21
fi
22
 
23
if test "$srcdir" = "." ; then
24
  if test "${with_target_subdir}" != "." ; then
25
    libgloss_topdir="${srcdir}/${with_multisrctop}../../.."
26
  else
27
    libgloss_topdir="${srcdir}/${with_multisrctop}../.."
28
  fi
29
else
30
  libgloss_topdir="${srcdir}/../.."
31
fi
32
AC_CONFIG_AUX_DIR($libgloss_topdir)
33
 
34
AC_CANONICAL_SYSTEM
35
AC_ARG_PROGRAM
36
 
37
AC_PROG_INSTALL
38
 
39
AC_DEFINE(HAVE_GNU_LD)
40
dnl Make sure syscall names match those being used by newlib
41
case "${target}" in
42
  *-*-cygwin*)
43
        ;;
44
  a29k-amd-udi)
45
        ;;
46
  arc-*-*)
47
        ;;
48
  arm-*-pe)
49
        ;;
50
  arm-*-*)
51
        ;;
52
  strongarm-*-*)
53
        ;;
54
  bfin-*-*)
55
        ;;
56
  cris-*-* | crisv32-*-*)
57
        ;;
58
  d10v*)
59
        ;;
60
  h8300*-*-*)
61
        ;;
62
  h8500-*-*)
63
        ;;
64
  i[3456]86-*-sco*)
65
        ;;
66
  lm32-*-*)
67
        ;;
68
  m32r-*-*)
69
        ;;
70
  mn10?00-*-*)
71
        ;;
72
  powerpcle-*-pe)
73
        ;;
74
  or32-*-*)
75
        ;;
76
  sh*-*-*)
77
        ;;
78
  sparc-sun-sunos*)
79
        ;;
80
  sparc64-*-*)
81
        ;;
82
  thumb-*-pe)
83
        ;;
84
  thumb-*-*)
85
        ;;
86
  v850-*-*)
87
        ;;
88
  v850e-*-*)
89
        ;;
90
  v850ea-*-*)
91
        ;;
92
  w65-*-*)
93
        ;;
94
  xstormy16-*-*)
95
        ;;
96
  z8k-*-*)
97
        ;;
98
  *)
99
        AC_DEFINE(MISSING_SYSCALL_NAMES)
100
        ;;
101
esac
102
 
103
dnl Make sure we know if elf format used
104
case "${target}" in
105
  *-*-elf)
106
        AC_DEFINE(HAVE_ELF)
107
 
108
        AC_CACHE_CHECK([for .previous assembler directive],
109
                         libc_cv_asm_previous_directive, [dnl
110
        libc_cv_asm_previous_directive=no
111
        cat > conftest.s <
112
.section foo_section
113
.previous
114
EOF
115
        if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
116
          libc_cv_asm_previous_directive=yes
117
        fi
118
        rm -f conftest*])
119
 
120
        if test "x${libc_cv_asm_previous_directive}" = "xyes"; then
121
          AC_DEFINE(HAVE_ASM_PREVIOUS_DIRECTIVE)
122
        fi
123
 
124
        AC_CACHE_CHECK([for .popsection assembler directive],
125
                         libc_cv_asm_popsection_directive, [dnl
126
        libc_cv_asm_popsection_directive=no
127
        cat > conftest.s <
128
.pushsection foo_section
129
.popsection
130
EOF
131
        if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
132
          libc_cv_asm_popsection_directive=yes
133
        fi
134
        rm -f conftest*])
135
 
136
        if test "x${libc_cv_asm_popsection_directive}" = "xyes"; then
137
          AC_DEFINE(HAVE_ASM_POPSECTION_DIRECTIVE)
138
        fi
139
 
140
        AC_CACHE_CHECK([for section attributes],
141
                         libc_cv_section_attributes, [dnl
142
        libc_cv_section_attributes=no
143
        cat > conftest.c <
144
int secttest __attribute__ ((section (".gnu.warning.secttest"))) = 10;
145
int main() {}
146
EOF
147
        if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.c 1>&AC_FD_CC); then
148
          libc_cv_section_attributes=yes
149
        fi
150
        rm -f conftest*])
151
        if test "x${libc_cv_section_attributes}" = "xyes"; then
152
          AC_DEFINE(HAVE_SECTION_ATTRIBUTES)
153
        fi
154
        ;;
155
esac
156
 
157
AC_CACHE_CHECK([for symbol prefix], libc_cv_symbol_prefix, [dnl
158
cat > conftest.c <<\EOF
159
foo () { }
160
EOF
161
dnl
162
libc_cv_symbol_prefix=none
163
if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "\$foo" > /dev/null]);
164
then
165
  libc_cv_symbol_prefix='$'
166
else
167
  if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep "_foo" > /dev/null]);
168
  then
169
    libc_cv_symbol_prefix=_
170
  fi
171
fi
172
rm -f conftest* ])
173
if test $libc_cv_symbol_prefix != none; then
174
  AC_DEFINE_UNQUOTED(__SYMBOL_PREFIX, "$libc_cv_symbol_prefix")
175
else
176
  AC_DEFINE(__SYMBOL_PREFIX, "")
177
fi
178
 
179
LIB_AC_PROG_CC
180
AS=${AS-as}
181
AC_SUBST(AS)
182
AR=${AR-ar}
183
AC_SUBST(AR)
184
LD=${LD-ld}
185
AC_SUBST(LD)
186
AC_PROG_RANLIB
187
LIB_AM_PROG_AS
188
 
189
host_makefile_frag=${srcdir}/../config/default.mh
190
 
191
dnl We have to assign the same value to other variables because autoconf
192
dnl doesn't provide a mechanism to substitute a replacement keyword with
193
dnl arbitrary data or pathnames.
194
dnl
195
host_makefile_frag_path=$host_makefile_frag
196
AC_SUBST(host_makefile_frag_path)
197
AC_SUBST_FILE(host_makefile_frag)
198
 
199
AC_CONFIG_FILES(Makefile,
200
ac_file=Makefile . ${libgloss_topdir}/config-ml.in,
201
srcdir=${srcdir}
202
target=${target}
203
with_multisubdir=${with_multisubdir}
204
ac_configure_args="${ac_configure_args} --enable-multilib"
205
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
206
libgloss_topdir=${libgloss_topdir}
207
)
208
AC_OUTPUT
209
 
210
 

powered by: WebSVN 2.1.0

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