brat with cygwin

From: Hironori Ito (hito@rcf.rhic.bnl.gov)
Date: Mon Jul 28 2003 - 22:05:12 EDT

  • Next message: Christian Holm Christensen: "Re: brat with cygwin"
    Hello.  I have a question about compiling brat under cygwin.  Now, I was 
    able to get (compile) ROOT with mysql and cernlib under cygwin in gcc. 
    Then, I tried to compile BRAT.  (Now, don't ask me why I bother with M$ 
    OS.)  It failed to compile at brat/db/abc/BrDb.h because of undefined 
    variable "xx". (Flemming already fixed it.)  But, it seemed that my 
    cygwin compilation is going to the wrong side of if-statement.(???)  I 
    think cygwin with Intel cpu is still little endian and not big endian. 
    (or which ever the same as linux in Intel cpu).  Anyhow, here is that code.
    
    #if defined(__linux) && defined(__i386__) && defined __GNUC__ && 
    __GNUC__ >= 2
    
    #else
    
    #endif
    
    Can we change it to
    
    #if (defined(__linux) || (__cygwin))  && defined(__i386__) && defined 
    __GNUC__ && __GNUC__ >= 2
    #else
    #endif
    
    or something like that??? 
    
    Also, how (where) thease variables are defined?  I suppose they are 
    obtained (or guessed) from autotool, but I don't know.  Under cygwin, I 
    use the following things
    
    gcc 3.2  
    aclocal and automake 1.7.5
    libtoolize 1.5
    ld 2.13.90
    
    
    
    Hiro
    


    This archive was generated by hypermail 2.1.5 : Mon Jul 28 2003 - 22:00:32 EDT