2001-12-14 07:50:11 +08:00
|
|
|
dnl This is the newlib/libm/machine configure.in file.
|
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
2006-04-14 03:56:32 +08:00
|
|
|
AC_PREREQ(2.59)
|
|
|
|
AC_INIT([newlib],[NEWLIB_VERSION])
|
|
|
|
AC_CONFIG_SRCDIR([i386])
|
2001-12-14 07:50:11 +08:00
|
|
|
|
|
|
|
dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake.
|
|
|
|
AC_CONFIG_AUX_DIR(../../..)
|
|
|
|
|
|
|
|
NEWLIB_CONFIGURE(../..)
|
|
|
|
|
|
|
|
dnl We have to add the following lines because automake detects the
|
|
|
|
dnl references to libtool libraries from aclocal and tries to verify that
|
|
|
|
dnl AM_PROG_LIBTOOL is being used. This must be added after
|
|
|
|
dnl the call to NEWLIB_CONFIGURE.
|
2007-05-25 01:33:42 +08:00
|
|
|
_LT_DECL_SED
|
2010-02-25 05:00:08 +08:00
|
|
|
_LT_PROG_ECHO_BACKSLASH
|
2001-12-14 07:50:11 +08:00
|
|
|
if test "${use_libtool}" = "yes"; then
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
fi
|
|
|
|
|
|
|
|
machlib=
|
|
|
|
|
|
|
|
if test -n "${libm_machine_dir}"; then
|
2006-04-12 03:02:16 +08:00
|
|
|
case ${libm_machine_dir} in
|
2012-09-27 04:06:50 +08:00
|
|
|
aarch64) AC_CONFIG_SUBDIRS(aarch64) ;;
|
2012-12-05 05:43:21 +08:00
|
|
|
arm) AC_CONFIG_SUBDIRS(arm) ;;
|
2006-04-12 03:02:16 +08:00
|
|
|
i386) AC_CONFIG_SUBDIRS(i386) ;;
|
2014-12-15 21:27:38 +08:00
|
|
|
nds32) AC_CONFIG_SUBDIRS(nds32) ;;
|
2007-02-15 07:18:25 +08:00
|
|
|
spu) AC_CONFIG_SUBDIRS(spu) ;;
|
2017-07-27 16:45:12 +08:00
|
|
|
riscv) AC_CONFIG_SUBDIRS(riscv) ;;
|
2006-04-12 03:02:16 +08:00
|
|
|
esac;
|
2001-12-14 07:50:11 +08:00
|
|
|
if test "${use_libtool}" = "yes"; then
|
|
|
|
machlib=${libm_machine_dir}/lib${libm_machine_dir}.${aext}
|
|
|
|
else
|
|
|
|
machlib=${libm_machine_dir}/lib.${aext}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(libm_machine_dir)
|
|
|
|
AC_SUBST(machlib)
|
|
|
|
|
2001-12-20 07:41:46 +08:00
|
|
|
AM_CONDITIONAL(HAVE_LIBM_MACHINE_DIR, test x${libm_machine_dir} != x)
|
2006-04-14 03:56:32 +08:00
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
AC_OUTPUT
|
2001-12-14 07:50:11 +08:00
|
|
|
|
|
|
|
|
|
|
|
|