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-07 14:18:55 +0300
committerMike Frysinger <vapier@gentoo.org>2022-03-02 04:29:07 +0300
commit89f643e87b919aa3a20ef81429f5712a2879b6de (patch)
tree50301d8c218bf09561b7385f922ddc075bcb1608 /libgloss/configure.ac
parent020fa7ed7b0a4e5e0cbc048b44697df8762c7e08 (diff)
libgloss: use m4_foreach_w to simplify the logic a bit
It's functionally the same, but the configure.ac code is simpler and less boiler plate duplicated.
Diffstat (limited to 'libgloss/configure.ac')
-rw-r--r--libgloss/configure.ac12
1 files changed, 7 insertions, 5 deletions
diff --git a/libgloss/configure.ac b/libgloss/configure.ac
index 43e791663..6ed848dd5 100644
--- a/libgloss/configure.ac
+++ b/libgloss/configure.ac
@@ -237,9 +237,13 @@ case "${target}" in
;;
esac
-AM_CONDITIONAL(CONFIG_BFIN, test x$config_bfin = xtrue)
-AM_CONDITIONAL(CONFIG_IQ2000, test x$config_iq2000 = xtrue)
-AM_CONDITIONAL(CONFIG_WINCE, test x$config_wince = xtrue)
+dnl These subdirs have converted to non-recursive make. Hopefully someday all
+dnl the ports above will too!
+m4_foreach_w([SUBDIR], [
+ bfin iq2000 libnosys wince
+], [dnl
+ AM_CONDITIONAL([CONFIG_]m4_toupper(SUBDIR), [test x$config_]SUBDIR = xtrue)
+])
dnl For now, don't bother configuring testsuite
dnl
@@ -247,8 +251,6 @@ dnl if test "${config_testsuite}" = "true";
dnl then AC_CONFIG_SUBDIRS([testsuite])
dnl fi
-AM_CONDITIONAL(CONFIG_LIBNOSYS, test x$config_libnosys = xtrue)
-
AC_PROG_CC
AM_PROG_AS
AM_PROG_AR