This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: The rxvt.1 manpage of the rxvt-2.7.10-4 package.


> -----Original Message-----
> From: cygwin-owner On Behalf Of Gerrit P. Haase
> Sent: 12 May 2004 08:58

> > Anyway, the original configure script was expecting the 
> OSTYPE to be cygwin32.
> > That was why it was not possible to build yodl out of the 
> box.  After applying
> > the above patch, follow the instructions in INSTALL.txt to 
> build and install
> > the yodl software.
> 
> This is wrong,  the OSTYPE name should be cygwin.

  It's also wrong in that it's completely back to front: look closely at the
diff, and you'll see that the original configure script was looking for
"cygwin",  and it is the patch that makes it look for "cygwin32".

> > -    if test "x$OSTYPE" = "xcygwin" || test "x$OSTYPE" = 
> "xWindows_NT"; then
> > -       LN=ln
> > -       LN_S='ln -s'
> > +    if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = 
> "xWindows_NT"; then
> > +       LN=cp # hard link does not work under cygnus-nt
> > +       LN_S='cp -r' # symbolic link does not work for native nt

  Fung needs to go back and double check how things came to be this way
round.  In particular, bear in mind that "uname -o" outputs "Cygwin" - note
the capitalisation; shell string comparisons are case sensitive...

dk@mace /> if test "x`uname -o`" = "xCygwin" ; then echo ok ; else echo nope
; fi
ok
dk@mace /> if test "x`uname -o`" = "xcygwin" ; then echo ok ; else echo nope
; fi
nope

> > Note that there are other references to cygwin32, 
> particularly #ifdef CYGWIN32
> > in source files.  Therefore, a complete fix is to do a 
> global search and
> > replace.

  According to the output from "gcc -dM -E - </dev/null | grep CYG", cygwin
gcc defines both __CYGWIN__ and __CYGWIN32__, but no form of it without the
underscores.  It may be the case that the configure/makefile is meant to
detect a cygwin build and define CYGWIN32 itself by adding -DCYGWIN32 to the
CFLAGS.  Or it may be that this is indeed a typo.


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]