2000-02-17 19:39:52 +00:00
|
|
|
dnl This is the newlib/libm configure.in file.
|
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
2006-04-13 19:56:32 +00:00
|
|
|
AC_INIT([newlib],[NEWLIB_VERSION])
|
2022-01-01 20:28:37 -05:00
|
|
|
AC_CONFIG_SRCDIR([libm.texi])
|
2000-02-17 19:39:52 +00:00
|
|
|
|
|
|
|
AC_ARG_ENABLE(newlib_hw_fp,
|
|
|
|
[ --enable-newlib-hw-fp Turn on hardware floating point math],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) newlib_hw_fp=true ;;
|
|
|
|
no) newlib_hw_fp=false ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-newlib-hw-fp) ;;
|
|
|
|
esac],[newlib_hw_fp=false])
|
|
|
|
AM_CONDITIONAL(NEWLIB_HW_FP, test x$newlib_hw_fp = xtrue)
|
|
|
|
|
|
|
|
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
|
|
|
|
AC_CONFIG_AUX_DIR(../..)
|
|
|
|
|
|
|
|
NEWLIB_CONFIGURE(..)
|
|
|
|
|
2001-12-13 23:50:11 +00:00
|
|
|
dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and
|
|
|
|
dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first
|
|
|
|
dnl line of the macro which fail because appropriate LDFLAGS are not set.
|
2007-05-24 17:33:42 +00:00
|
|
|
_LT_DECL_SED
|
2010-02-24 21:00:08 +00:00
|
|
|
_LT_PROG_ECHO_BACKSLASH
|
2001-12-13 23:50:11 +00:00
|
|
|
if test "${use_libtool}" = "yes"; then
|
2022-01-17 12:45:10 -05:00
|
|
|
LT_INIT([win32-dll])
|
2001-12-13 23:50:11 +00:00
|
|
|
fi
|
|
|
|
|
2022-01-17 00:42:53 -05:00
|
|
|
AC_TYPE_LONG_DOUBLE
|
|
|
|
AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$ac_cv_type_long_double" = x"yes")
|
|
|
|
|
2022-01-22 20:19:41 -05:00
|
|
|
dnl We have to include these unconditionally since machines might want to use
|
|
|
|
dnl AM_CONDITIONAL in their subdirs.
|
|
|
|
m4_include([machine/nds32/acinclude.m4])
|
|
|
|
|
2001-12-13 23:50:11 +00:00
|
|
|
LIBM_MACHINE_LIB=
|
2003-09-29 21:04:09 +00:00
|
|
|
if test -n "${libm_machine_dir}"; then
|
2022-01-22 19:54:54 -05:00
|
|
|
case ${libm_machine_dir} in
|
2022-01-22 20:19:41 -05:00
|
|
|
aarch64) AC_CONFIG_FILES([machine/aarch64/Makefile]) ;;
|
|
|
|
arm) AC_CONFIG_FILES([machine/arm/Makefile]) ;;
|
|
|
|
i386) AC_CONFIG_FILES([machine/i386/Makefile]) ;;
|
|
|
|
nds32) AC_CONFIG_FILES([machine/nds32/Makefile]) ;;
|
|
|
|
pru) AC_CONFIG_FILES([machine/pru/Makefile]) ;;
|
|
|
|
spu) AC_CONFIG_FILES([machine/spu/Makefile]) ;;
|
|
|
|
riscv) AC_CONFIG_FILES([machine/riscv/Makefile]) ;;
|
|
|
|
x86_64) AC_CONFIG_FILES([machine/x86_64/Makefile]) ;;
|
|
|
|
powerpc) AC_CONFIG_FILES([machine/powerpc/Makefile]) ;;
|
|
|
|
sparc) AC_CONFIG_FILES([machine/sparc/Makefile]) ;;
|
|
|
|
mips) AC_CONFIG_FILES([machine/mips/Makefile]) ;;
|
2022-01-22 19:54:54 -05:00
|
|
|
*) AC_MSG_ERROR([unsupported libm_machine_dir "${libm_machine_dir}"]) ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
LIBM_MACHINE_DIR=machine/${libm_machine_dir}
|
2001-12-13 23:50:11 +00:00
|
|
|
if test "${use_libtool}" = "yes"; then
|
2022-01-22 19:54:54 -05:00
|
|
|
LIBM_MACHINE_LIB=${LIBM_MACHINE_DIR}/lib${libm_machine_dir}.${aext}
|
2001-12-13 23:50:11 +00:00
|
|
|
else
|
2022-01-22 19:54:54 -05:00
|
|
|
LIBM_MACHINE_LIB=${LIBM_MACHINE_DIR}/lib.${aext}
|
2001-12-13 23:50:11 +00:00
|
|
|
fi
|
|
|
|
fi
|
2022-01-22 19:54:54 -05:00
|
|
|
AM_CONDITIONAL(HAVE_LIBM_MACHINE_DIR, test "x${LIBM_MACHINE_DIR}" != x)
|
|
|
|
AC_SUBST(LIBM_MACHINE_DIR)
|
2001-12-13 23:50:11 +00:00
|
|
|
AC_SUBST(LIBM_MACHINE_LIB)
|
|
|
|
|
2019-08-08 11:27:06 -05:00
|
|
|
AC_CONFIG_FILES([Makefile math/Makefile mathfp/Makefile common/Makefile complex/Makefile fenv/Makefile])
|
2006-04-13 19:56:32 +00:00
|
|
|
AC_OUTPUT
|