1 dnl This is the newlib configure.in file.
2 dnl Process this file with autoconf to produce a configure script.
7 dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
12 configdirs="libc libm"
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)
23 if test -z "${with_multisubdir}"; then
24 configdirs="${configdirs} doc"
29 AM_CONDITIONAL(HAVE_DOC, test x$have_doc = xyes)
31 AC_CONFIG_SUBDIRS(${configdirs})
35 if test -n "${sys_dir}"; then
45 if test "${multilib}" = "yes"; then
46 multilib_arg="--enable-multilib"
53 [if test -n "$CONFIG_FILES"; then
54 . ${newlib_basedir}/../config-ml.in
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}