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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [configure.in] - Blame information for rev 309

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

Line No. Rev Author Line
1 207 jeremybenn
dnl This is the newlib/libc configure.in file.
2
dnl Process this file with autoconf to produce a configure script.
3
 
4
AC_PREREQ(2.59)
5
AC_INIT([newlib],[NEWLIB_VERSION])
6
AC_CONFIG_SRCDIR([sys.tex])
7
 
8
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
9
AC_CONFIG_AUX_DIR(../..)
10
 
11
dnl Support --enable-newlib-io-pos-args used by libc/stdio
12
AC_ARG_ENABLE(newlib-io-pos-args,
13
[  --enable-newlib-io-pos-args enable printf-family positional arg support],
14
[case "${enableval}" in
15
  yes) newlib_io_pos_args=yes ;;
16
  no)  newlib_io_pos_args=no ;;
17
  *)   AC_MSG_ERROR(bad value ${enableval} for newlib-io-pos-args option) ;;
18
 esac], [newlib_io_pos_args=no])dnl
19
 
20
NEWLIB_CONFIGURE(..)
21
 
22
dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
23
dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
24
dnl line of the macro which fail because appropriate LDFLAGS are not set.
25
_LT_DECL_SED
26
if test "${use_libtool}" = "yes"; then
27
AC_LIBTOOL_WIN32_DLL
28
AM_PROG_LIBTOOL
29
fi
30
 
31
AC_CONFIG_SUBDIRS(machine sys)
32
 
33
CRT0=
34
if test "x${have_crt0}" = "xyes"; then
35
  CRT0=crt0.o
36
fi
37
AC_SUBST(CRT0)
38
 
39
dnl For each directory which we may or may not want, we define a name
40
dnl for the library and an automake conditional for whether we should
41
dnl build the library.
42
 
43
LIBC_POSIX_LIB=
44
if test -n "${posix_dir}"; then
45
  if test "${use_libtool}" = "yes"; then
46
    LIBC_POSIX_LIB=${posix_dir}/lib${posix_dir}.${aext}
47
  else
48
    LIBC_POSIX_LIB=${posix_dir}/lib.${aext}
49
  fi
50
fi
51
AC_SUBST(LIBC_POSIX_LIB)
52
AM_CONDITIONAL(HAVE_POSIX_DIR, test x${posix_dir} != x)
53
 
54
LIBC_SIGNAL_LIB=
55
LIBC_SIGNAL_DEF=
56
if test -n "${signal_dir}"; then
57
  if test "${use_libtool}" = "yes"; then
58
    LIBC_SIGNAL_LIB=${signal_dir}/lib${signal_dir}.${aext}
59
  else
60
    LIBC_SIGNAL_LIB=${signal_dir}/lib.${aext}
61
  fi
62
  LIBC_SIGNAL_DEF=${signal_dir}/stmp-def
63
fi
64
AC_SUBST(LIBC_SIGNAL_LIB)
65
AC_SUBST(LIBC_SIGNAL_DEF)
66
AM_CONDITIONAL(HAVE_SIGNAL_DIR, test x${signal_dir} != x)
67
 
68
LIBC_STDIO_LIB=
69
LIBC_STDIO_DEF=
70
if test -n "${stdio_dir}"; then
71
  if test "${use_libtool}" = "yes"; then
72
    LIBC_STDIO_LIB=${stdio_dir}/lib${stdio_dir}.${aext}
73
  else
74
    LIBC_STDIO_LIB=${stdio_dir}/lib.${aext}
75
  fi
76
  LIBC_STDIO_DEF=${stdio_dir}/stmp-def
77
fi
78
AC_SUBST(LIBC_STDIO_LIB)
79
AC_SUBST(LIBC_STDIO_DEF)
80
AM_CONDITIONAL(HAVE_STDIO_DIR, test x${stdio_dir} != x)
81
 
82
LIBC_STDIO64_LIB=
83
LIBC_STDIO64_DEF=
84
if test -n "${stdio64_dir}"; then
85
  if test "${use_libtool}" = "yes"; then
86
    LIBC_STDIO64_LIB=${stdio64_dir}/lib${stdio64_dir}.${aext}
87
  else
88
    LIBC_STDIO64_LIB=${stdio64_dir}/lib.${aext}
89
  fi
90
  LIBC_STDIO64_DEF=${stdio64_dir}/stmp-def
91
fi
92
AC_SUBST(LIBC_STDIO64_LIB)
93
AC_SUBST(LIBC_STDIO64_DEF)
94
AM_CONDITIONAL(HAVE_STDIO64_DIR, test x${stdio64_dir} != x)
95
 
96
LIBC_SYSCALL_LIB=
97
if test -n "${syscall_dir}"; then
98
  if test "${use_libtool}" = "yes"; then
99
    LIBC_SYSCALL_LIB=${syscall_dir}/lib${syscall_dir}.${aext}
100
  else
101
    LIBC_SYSCALL_LIB=${syscall_dir}/lib.${aext}
102
  fi
103
fi
104
AC_SUBST(LIBC_SYSCALL_LIB)
105
AM_CONDITIONAL(HAVE_SYSCALL_DIR, test x${syscall_dir} != x)
106
 
107
LIBC_UNIX_LIB=
108
if test -n "${unix_dir}"; then
109
  if test "${use_libtool}" = "yes"; then
110
    LIBC_UNIX_LIB=${unix_dir}/lib${unix_dir}.${aext}
111
  else
112
    LIBC_UNIX_LIB=${unix_dir}/lib.${aext}
113
  fi
114
fi
115
AC_SUBST(LIBC_UNIX_LIB)
116
AM_CONDITIONAL(HAVE_UNIX_DIR, test x${unix_dir} != x)
117
 
118
LIBC_EXTRA_LIB=
119
LIBC_EXTRA_DEF=
120
extra_dir=
121
 
122
AC_SUBST(LIBC_EXTRA_LIB)
123
AC_SUBST(LIBC_EXTRA_DEF)
124
AC_SUBST(extra_dir)
125
 
126
dnl We always recur into sys and machine, and let them decide what to
127
dnl do.  However, we do need to know whether they will produce a library.
128
 
129
LIBC_SYS_LIB=
130
if test -n "${sys_dir}"; then
131
  if test "${use_libtool}" = "yes"; then
132
    LIBC_SYS_LIB=sys/${sys_dir}/lib${sys_dir}.${aext}
133
  else
134
    LIBC_SYS_LIB=sys/lib.${aext}
135
  fi
136
fi
137
AC_SUBST(LIBC_SYS_LIB)
138
AC_SUBST(sys_dir)
139
 
140
dnl Autoconf 2.59 doesn't support the AC_TYPE_LONG_DOUBLE macro. Instead of:
141
dnl   AC_TYPE_LONG_DOUBLE
142
dnl   AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$ac_cv_type_long_double" = x"yes")
143
dnl we specify our own long double test.
144
AC_CACHE_CHECK([Checking long double support], [acnewlib_cv_type_long_double],[dnl
145
cat > conftest.c <
146
int main() {
147
long double x = 0.0L;
148
return 0;
149
}
150
EOF
151
if AC_TRY_COMMAND([${CC} $CFLAGS $CPPFLAGS -c conftest.c 1>&AS_MESSAGE_LOG_FD])
152
then
153
  acnewlib_cv_type_long_double=yes
154
else
155
  acnewlib_cv_type_long_double=no
156
fi
157
rm -f conftest*])
158
AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$acnewlib_cv_type_long_double" = x"yes")
159
 
160
dnl iconv library will be compiled if --enable-newlib-iconv option is enabled
161
AM_CONDITIONAL(ENABLE_NEWLIB_ICONV, test x${newlib_iconv} != x)
162
 
163
if test -n "${machine_dir}"; then
164
  if test "${use_libtool}" = "yes"; then
165
    LIBC_MACHINE_LIB=machine/${machine_dir}/lib${machine_dir}.${aext}
166
  else
167
    LIBC_MACHINE_LIB=machine/lib.${aext}
168
  fi
169
fi
170
AC_SUBST(LIBC_MACHINE_LIB)
171
AC_SUBST(machine_dir)
172
 
173
AC_CONFIG_FILES([Makefile argz/Makefile ctype/Makefile errno/Makefile locale/Makefile misc/Makefile reent/Makefile search/Makefile stdio/Makefile stdio64/Makefile stdlib/Makefile string/Makefile time/Makefile posix/Makefile signal/Makefile syscalls/Makefile unix/Makefile iconv/Makefile iconv/ces/Makefile iconv/ccs/Makefile iconv/ccs/binary/Makefile iconv/lib/Makefile])
174
AC_OUTPUT

powered by: WebSVN 2.1.0

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