]> sourceware.org Git - newlib-cygwin.git/commit
newlib: fix preprocessor checks
authorMike Frysinger <vapier@gentoo.org>
Fri, 28 Jan 2022 10:12:54 +0000 (05:12 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 1 Feb 2022 03:21:17 +0000 (22:21 -0500)
commit4b0e66093c0b48d5c363cf17c45ad9bf88ae526c
treee543410a0b4c62389af37ecfc3bb16f38b447a33
parent6a59fc444b46681b59ce3152cfbd3c9e024455fa
newlib: fix preprocessor checks

Restore the call to AC_NO_EXECUTABLES -- I naively assumed in commit
2e9aa5f56cc26a411014a7f788423c670cfb5646 ("newlib: update preprocessor
configure checks") that checking for a preprocessor would not involve
linking code.  Unfortunately, autoconf will implicitly check that the
compiler "works" before allowing it to be used, and that involves a
link test, and that fails because newlib provides the C library which
is needed to pass a link test.

There is some code in NEWLIB_CONFIGURE specifically to help mitigate
these, but it's not kicking in here for some reason, so let's just add
the AC_NO_EXECUTABLES call back until we can unwind that custom logic.

Additionally, we have to call AC_PROG_CPP explicitly.  This was being
invoked later on, but only in the use_libtool=yes codepath, and that
is almost never enabled.
newlib/libc/configure
newlib/libc/configure.ac
newlib/libm/configure
newlib/libm/configure.ac
This page took 0.028923 seconds and 5 git commands to generate.