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>2021-11-11 05:04:31 +0300
committerMike Frysinger <vapier@gentoo.org>2021-11-16 03:35:04 +0300
commit67208d9ef8bc33c4d48ce4466884ce3a93da9bb9 (patch)
treee7863587ea389266dd14f8a93b28d9287d16efc0 /newlib/configure.ac
parent6226bad0eafe762b811c62d1dc096bc0858b0d1a (diff)
newlib: merge doc into top-level Makefile
Avoid a recursive make with this tiny subdir to speed things up a bit.
Diffstat (limited to 'newlib/configure.ac')
-rw-r--r--newlib/configure.ac26
1 files changed, 24 insertions, 2 deletions
diff --git a/newlib/configure.ac b/newlib/configure.ac
index 67597bb48..49a1b5fdd 100644
--- a/newlib/configure.ac
+++ b/newlib/configure.ac
@@ -303,7 +303,6 @@ AC_CONFIG_SUBDIRS(libm)
if test -z "${with_multisubdir}"; then
have_multisubdir=no
- AC_CONFIG_SUBDIRS(doc)
else
have_multisubdir=yes
fi
@@ -398,10 +397,33 @@ AC_SUBST(STDIO64_OBJECTLIST)
# Put a plausible default for CC_FOR_BUILD in Makefile.
if test -z "$CC_FOR_BUILD"; then
- CC_FOR_BUILD=gcc
+ if test "x$cross_compiling" = "xno"; then
+ CC_FOR_BUILD='$(CC)'
+ else
+ CC_FOR_BUILD=gcc
+ fi
fi
AC_SUBST(CC_FOR_BUILD)
+# Also set EXEEXT_FOR_BUILD.
+if test "x$cross_compiling" = "xno"; then
+ EXEEXT_FOR_BUILD='$(EXEEXT)'
+else
+ AC_CACHE_CHECK([for build system executable suffix], newlib_cv_build_exeext,
+ [cat > ac_c_test.c << 'EOF'
+int main() {
+/* Nothing needed here */
+}
+EOF
+ ${CC_FOR_BUILD} -o ac_c_test am_c_test.c 1>&5 2>&5
+ newlib_cv_build_exeext=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//`
+ rm -f ac_c_test*
+ test x"${newlib_cv_build_exeext}" = x && newlib_cv_build_exeext=no])
+ EXEEXT_FOR_BUILD=""
+ test x"${newlib_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${newlib_cv_build_exeext}
+fi
+AC_SUBST(EXEEXT_FOR_BUILD)
+
if test "${newlib_elix_level}" -gt "0"; then
AC_DEFINE_UNQUOTED(_ELIX_LEVEL,${newlib_elix_level})
fi