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-01-24 07:24:52 +0300
committerMike Frysinger <vapier@gentoo.org>2022-02-02 07:07:11 +0300
commit8622002ffc71ff5777a7221232ba02c7a7e7d004 (patch)
tree7733e63e5264de6215e27a5dc937a6bbabd5ba34 /libgloss/configure.ac
parent30f244155b8e82aa948ddcb8f2350654fc1adb92 (diff)
libgloss: move to ../config/multi.m4 for multilib logic
The current libgloss multilib logic is almost exactly the same as the config/multi.m4, and the differences should be minor, so switch over to that to delete custom logic on ourside. The insertions here look larger and that's because none of the scripts were declaring --enable-multilib explicitly even though they checked the flag and changed behavior.
Diffstat (limited to 'libgloss/configure.ac')
-rw-r--r--libgloss/configure.ac24
1 files changed, 2 insertions, 22 deletions
diff --git a/libgloss/configure.ac b/libgloss/configure.ac
index c65a3655a..ac812c69b 100644
--- a/libgloss/configure.ac
+++ b/libgloss/configure.ac
@@ -330,27 +330,7 @@ target_makefile_frag_path=$target_makefile_frag
AC_SUBST(target_makefile_frag_path)
AC_SUBST_FILE(target_makefile_frag)
-if test "${multilib}" = "yes"; then
- multilib_arg="--enable-multilib"
-else
- multilib_arg=
-fi
+AM_ENABLE_MULTILIB(, ..)
-# for now, only add multilibs for specific targets
-AC_CONFIG_FILES([Makefile],
-[if test -n "$CONFIG_FILES"; then
- unset ac_file
- . ${srcdir}/../config-ml.in
-fi],
-srcdir=${srcdir}
-target=${target}
-host=${host}
-with_multisubdir=${with_multisubdir}
-ac_configure_args="--enable-multilib ${ac_configure_args}"
-CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
-CC="${CC}"
-LDFLAGS=${LDFLAGS}
-)
+AC_CONFIG_FILES([Makefile])
AC_OUTPUT
-
-