OSDN Git Service

Initial revision
[pf3gnuchains/pf3gnuchains4x.git] / newlib / configure.in
1 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 configdirs="libc libm"
13
14 AC_ARG_ENABLE(newlib_hw_fp,
15 [  --enable-newlib-hw-fp    Turn on hardware floating point math],
16 [case "${enableval}" in
17    yes) newlib_hw_fp=true ;;
18    no)  newlib_hw_fp=false ;;
19    *) AC_MSG_ERROR(bad value ${enableval} for --enable-newlib-hw-fp) ;;
20  esac],[newlib_hw_fp=false])
21 AM_CONDITIONAL(NEWLIB_HW_FP, test x$newlib_hw_fp = xtrue)
22
23 if test -z "${with_multisubdir}"; then
24   configdirs="${configdirs} doc"
25   have_doc=yes
26 else
27   have_doc=
28 fi
29 AM_CONDITIONAL(HAVE_DOC, test x$have_doc = xyes)
30
31 AC_CONFIG_SUBDIRS(${configdirs})
32
33 CRT0=
34 CRT0_DIR=
35 if test -n "${sys_dir}"; then
36   CRT0=crt0.o
37   CRT0_DIR=libc
38 fi
39 AC_SUBST(CRT0)
40 AC_SUBST(CRT0_DIR)
41
42
43
44
45 if test "${multilib}" = "yes"; then
46   multilib_arg="--enable-multilib"
47 else
48   multilib_arg=
49 fi
50
51
52 AC_OUTPUT(Makefile,
53 [if test -n "$CONFIG_FILES"; then
54   . ${newlib_basedir}/../config-ml.in
55 fi],
56 srcdir=${srcdir}
57 host=${host}
58 target=${target}
59 with_multisubdir=${with_multisubdir}
60 ac_configure_args="${multilib_arg} ${ac_configure_args}"
61 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
62 newlib_basedir=${newlib_basedir}
63 CC="${CC}"
64 )