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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [configure.in] - Blame information for rev 1780

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

Line No. Rev Author Line
1 1005 ivang
dnl This is the newlib configure.in file.
2
dnl Process this file with autoconf to produce a configure script.
3
 
4
AC_PREREQ(2.5)
5
AC_INIT(libc)
6
 
7
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
8
AC_CONFIG_AUX_DIR(..)
9
 
10
NEWLIB_CONFIGURE(.)
11
 
12
dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
13
dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
14
dnl line of the macro which fail because appropriate LDFLAGS are not set.
15
if test "${use_libtool}" = "yes"; then
16
AC_LIBTOOL_WIN32_DLL
17
AM_PROG_LIBTOOL
18
AC_PROG_AWK
19
fi
20
 
21
configdirs="libc libm"
22
 
23
AC_ARG_ENABLE(newlib_hw_fp,
24
[  --enable-newlib-hw-fp    Turn on hardware floating point math],
25
[case "${enableval}" in
26
   yes) newlib_hw_fp=true ;;
27
   no)  newlib_hw_fp=false ;;
28
   *) AC_MSG_ERROR(bad value ${enableval} for --enable-newlib-hw-fp) ;;
29
 esac],[newlib_hw_fp=false])
30
AM_CONDITIONAL(NEWLIB_HW_FP, test x$newlib_hw_fp = xtrue)
31
 
32
if test -z "${with_multisubdir}"; then
33
  configdirs="${configdirs} doc"
34
  have_doc=yes
35
else
36
  have_doc=
37
fi
38
AM_CONDITIONAL(HAVE_DOC, test x$have_doc = xyes)
39
 
40
AC_CONFIG_SUBDIRS(${configdirs})
41
 
42
CRT0=
43
CRT0_DIR=
44
if test -n "${sys_dir}"; then
45
  CRT0=crt0.o
46
  CRT0_DIR=libc
47
fi
48
AC_SUBST(CRT0)
49
AC_SUBST(CRT0_DIR)
50
 
51
if test -n "${libm_machine_dir}"; then
52
  LIBM_MACHINE_OBJECTLIST=libm/machine/${libm_machine_dir}/objectlist.awk.in
53
fi
54
AC_SUBST(LIBM_MACHINE_OBJECTLIST)
55
 
56
if test -n "${machine_dir}"; then
57
  MACHINE_OBJECTLIST=libc/machine/${machine_dir}/objectlist.awk.in
58
fi
59
AC_SUBST(MACHINE_OBJECTLIST)
60
 
61
if test -n "${sys_dir}"; then
62
  SYS_OBJECTLIST=libc/sys/${sys_dir}/objectlist.awk.in
63
fi
64
AC_SUBST(SYS_OBJECTLIST)
65
 
66
if test -n "${posix_dir}"; then
67
  POSIX_OBJECTLIST=libc/${posix_dir}/objectlist.awk.in
68
fi
69
AC_SUBST(POSIX_OBJECTLIST)
70
 
71
if test -n "${signal_dir}"; then
72
  SIGNAL_OBJECTLIST=libc/${signal_dir}/objectlist.awk.in
73
fi
74
AC_SUBST(SIGNAL_OBJECTLIST)
75
 
76
if test -n "${syscall_dir}"; then
77
  SYSCALL_OBJECTLIST=libc/${syscall_dir}/objectlist.awk.in
78
fi
79
AC_SUBST(SYSCALL_OBJECTLIST)
80
 
81
if test -n "${unix_dir}"; then
82
  UNIX_OBJECTLIST=libc/${unix_dir}/objectlist.awk.in
83
fi
84
AC_SUBST(UNIX_OBJECTLIST)
85
 
86
# Put a plausible default for CC_FOR_BUILD in Makefile.
87
if test -z "$CC_FOR_BUILD"; then
88
  if test "x$cross_compiling" = "xno"; then
89
    CC_FOR_BUILD='$(CC)'
90
  else
91
    CC_FOR_BUILD=gcc
92
  fi
93
fi
94
AC_SUBST(CC_FOR_BUILD)
95
 
96
if test "${multilib}" = "yes"; then
97
  multilib_arg="--enable-multilib"
98
else
99
  multilib_arg=
100
fi
101
 
102
 
103
AC_OUTPUT(Makefile,
104
[if test -n "$CONFIG_FILES"; then
105
  . ${newlib_basedir}/../config-ml.in
106
fi],
107
srcdir=${srcdir}
108
host=${host}
109
target=${target}
110
with_multisubdir=${with_multisubdir}
111
ac_configure_args="${multilib_arg} ${ac_configure_args}"
112
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
113
newlib_basedir=${newlib_basedir}
114
CC="${CC}"
115
LDFLAGS="${LDFLAGS}"
116
)

powered by: WebSVN 2.1.0

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