From: Eli Zaretskii <eliz@gnu.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 15675@debbugs.gnu.org, andrewjmoreton@gmail.com
Subject: bug#15675: the configure script invoked before make
Date: Thu, 24 Oct 2013 19:11:32 +0300 [thread overview]
Message-ID: <834n86ir7v.fsf@gnu.org> (raw)
In-Reply-To: <jq4n875n2y.fsf@fencepost.gnu.org>
> From: Glenn Morris <rgm@gnu.org>
> Date: Thu, 24 Oct 2013 00:07:01 -0400
> Cc: 15675@debbugs.gnu.org
>
> Andy Moreton wrote:
>
> > CPP = gcc -I ../nt/inc -E
>
> Seems wrong to me for CPP to contain any -I option. Where does that come from?
From the configure script.
The story begins, innocently enough, here:
case "${canonical}" in
*-darwin* ) opsys=darwin ;;
*-mingw32 )
opsys=mingw32
# MinGW overrides and adds some system headers in nt/inc.
GCC_TEST_OPTIONS="-I $srcdir/nt/inc"
(MinGW needs the test programs to pick up headers in nt/inc, since
those headers define some stuff which is not available in the MinGW
system headers. This is what GCC_TEST_OPTIONS are for, right?)
Then the configure script sets CC to something that uses these
switches:
if test x$GCC = xyes; then
test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
So far, so good. But then:
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
if test "${ac_cv_prog_CPP+set}" = set; then :
$as_echo_n "(cached) " >&6
else
# Double quotes because CPP needs to be expanded
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
do ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[...]
done
ac_cv_prog_CPP=$CPP
fi
CPP=$ac_cv_prog_CPP
This sets CPP to "$CC -E", and the rest, as they say, is history.
The problem here seems to be that the script confuses the value of CPP
needed to run the test programs with the value of CPP that is needed
to be substituted for @CPP@. The latter should have any
GCC_TEST_OPTIONS removed from it.
next prev parent reply other threads:[~2013-10-24 16:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-21 17:02 bug#15675: the configure script invoked before make “Adrian”
2013-10-23 6:26 ` Glenn Morris
2013-10-24 1:12 ` Andy Moreton
2013-10-24 1:56 ` Glenn Morris
2013-10-24 2:16 ` Glenn Morris
2013-10-24 3:44 ` Andy Moreton
2013-10-24 4:07 ` Glenn Morris
2013-10-24 14:48 ` Andy Moreton
2013-10-24 16:11 ` Eli Zaretskii [this message]
2013-10-24 21:30 ` Glenn Morris
2013-10-25 6:38 ` Eli Zaretskii
2013-10-25 8:45 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=834n86ir7v.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=15675@debbugs.gnu.org \
--cc=andrewjmoreton@gmail.com \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).