Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-02-19 06:38:41 +0300
committerMike Frysinger <vapier@gentoo.org>2022-12-20 03:08:12 +0300
commit04411f45d0d4fe09fcdcad050a9ad7c833b8af0a (patch)
tree086c4a07cba0e3077a3cbf58494ae2189c0840ff /libgloss/configure.ac
parent8893cd10067ceed80e427d0103e123e89f91bc67 (diff)
libgloss: merge arm configure script up a level
Move the minor arm-specific logic to a dedicated variable so we can merge its configure logic up a level.
Diffstat (limited to 'libgloss/configure.ac')
-rw-r--r--libgloss/configure.ac15
1 files changed, 14 insertions, 1 deletions
diff --git a/libgloss/configure.ac b/libgloss/configure.ac
index 931e3f6de..9906781a7 100644
--- a/libgloss/configure.ac
+++ b/libgloss/configure.ac
@@ -8,6 +8,16 @@ fi
AC_CONFIG_AUX_DIR(..)
+dnl Support --disable-newlib-supplied-syscalls
+dnl NB: This is kept in sync with the newlib/acinclude.m4 option code.
+AC_ARG_ENABLE(newlib-supplied-syscalls,
+[ --disable-newlib-supplied-syscalls disable newlib from supplying syscalls],
+[case "${enableval}" in
+ yes) newlib_may_supply_syscalls=yes ;;
+ no) newlib_may_supply_syscalls=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for newlib-supplied-syscalls option) ;;
+ esac], [newlib_may_supply_syscalls=yes])dnl
+
AC_PROG_INSTALL
AC_CANONICAL_SYSTEM
@@ -205,7 +215,8 @@ case "${target}" in
subdirs="$subdirs rx"
;;
arm*-*-elf | arm*-*-coff | arm*-*-*)
- AC_CONFIG_SUBDIRS([arm])
+ AC_CONFIG_FILES([arm/Makefile arm/cpu-init/Makefile])
+ subdirs="$subdirs arm arm/cpu-init"
;;
spu-*-elf)
AC_CONFIG_FILES([spu/Makefile])
@@ -235,6 +246,7 @@ case "${target}" in
subdirs="$subdirs nios2"
;;
esac
+AC_SUBST(subdirs)
dnl These subdirs have converted to non-recursive make. Hopefully someday all
dnl the ports above will too!
@@ -332,6 +344,7 @@ dnl
AC_DEFINE_UNQUOTED(__SYMBOL_PREFIX, "$libc_cv_symbol_prefix", [symbol prefix])
m4_include([aarch64/acinclude.m4])
+m4_include([arm/acinclude.m4])
m4_include([i386/acinclude.m4])
m4_include([libnosys/acinclude.m4])
m4_include([m68k/acinclude.m4])