On Fri, Apr 14, 2006 at 05:07:47PM +0200, Abdelrazak Younes wrote:

> Enrico Forestieri a écrit :
> > On Fri, Apr 14, 2006 at 10:38:08AM +0200, Abdelrazak Younes wrote:
> > 
> >> Georg Baum a écrit :
> >>> Am Freitag, 14. April 2006 10:09 schrieb Abdelrazak Younes:
> >>>> Lars Gullik Bjønnes a écrit :
> >>>>> Why isn't the two first lines deleted?
> >>>> Because I know sxxt about M4 :-)
> >>>> I suppose I can delete that but then what's the use of cygwin.m4? Could 
> >>>> we just delete the file and let it rest in peace?
> >>> Yes, if this check is not needed anymore then you should delete cygwin.m4.
> >> OK, thanks.
> >> But before I do that, I need Enrico advice. Enrico, is there any option 
> >> that you set manually that could end-up in this file? I was thinking of 
> >> the -mno-cygwin option...
> > 
> > I think I am the last one who has a say on this. However, there is
> > something that could help. If possible, it would be nice to have
> > added to CXXFLAGS the define "-DQ_CYGWIN_WIN" *when* the option
> > --without-x is passed to configure *and* platform is cygwin.
> > 
> > I am no m4 expert, but could see what I can do. Anyway, this is not
> > strictly necessary as that define can be set through CPPFLAGS.
> 
> I would prefer something that is ready to compile out of the box so 
> let's try to improve the wannabe windows developer ;-)
> I am checking in my change right now and we work from there.

Ok, I'll have a look at it, then.

> > I don't think that it is wise to fiddle with the -mno-cygwin option,
> > though, as it requires that you really know what you are doing, and
> > I think you know what I mean.
> 
> How do you pass it yourself? Via CPPFLAGS? I am interested and Angus is 
> also interested in using that so I'd like to try... It would not anyone 
> except us two or three :-)

Actually, it is quite simple. You should set CC, CPP, CXX, and CXXPP
when invoking configure, like this:

cd build
../configure CC='gcc -mno-cygwin' CPP='gcc -mno-cygwin -E' \
   CXX='g++ -mno-cygwin' CXXCPP='g++ -mno-cygwin -E' ...

> Thanks Enrico and stop being so modest please ;-)

Uh? I simply try to not appear as presumptuous ;-)

-- 
Enrico

Reply via email to