FAQ

On Mon, 17 Nov 2003, Nicholas Clark wrote:

Heiko Schlichting said that I could/should forward this to the list.
Seems interesting. I've not yet looked at Configure, or what it's up to
in the CPP tests, but it seems that we have enough information to work
round the problem. (without needing to assign blame either way]

Nicholas Clark

----- Forwarded message from Heiko Schlichting <heiko@FU-Berlin.DE> -----
Thanks for this nice diagnosis:
The IRIX compiler behaves in a different way for input
from stdin and for input from a file:

-----------------------------------------------
[heiko@Punkt] 107 (/tmp): cat cpp_stuff.c
#define RCAT(a,b)a/**/b
#define ACAT(a,b)a ## b
RCAT(Rei,ser)
ACAT(Cir,cus)
-----------------------------------------------
[heiko@Punkt] 108 (/tmp): cc -E - < cpp_stuff.c
# 1 ""


Reiser
Cir ## cus
-----------------------------------------------
[heiko@Punkt] 109 (/tmp): cc -E cpp_stuff.c
#line 1 "cpp_stuff.c"


Rei ser
Circus
-----------------------------------------------
Yup, Configure's cpp tests did not anticipate this possibility. Is there a
flag one could give to the compiler to make it always use ANSI
preprocessing mode?

If not, then cppstind for IRIX should probably be changed to use the
wrapper script. One way to do that might be to have Configure compare
two tests (as above). If they differ, use the wrapper script.

In any case, could you let us know the exact compiler and OS in question
so that we can at least have accurate comments in the relevant Configure
sections?

Thanks,

Andy Dougherty doughera@lafayette.edu

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl5-build @
categoriesperl
postedNov 18, '03 at 4:06p
activeNov 18, '03 at 4:06p
posts1
users1
websiteperl.org

1 user in discussion

Andy Dougherty: 1 post

People

Translate

site design / logo © 2019 Grokbase