Re: IRIX and Performer version nos. for Makefiles and compiler #ifdefs ???

New Message Reply Date view Thread view Subject view Author view

Wade Olsen (wade++at++fnord)
Tue, 8 Feb 1994 20:08:00 -0800


On Feb 4, 7:28pm, Allan Schaffer wrote:
> Subject: Re: IRIX and Performer version nos. for Makefiles and compiler
#i
> On Feb 4, 1:04pm, Lew Hitchner wrote:
> > As far as Performer versions, I've thought of a couple of hacks. One
> > is to use some #define'd value that's declared in version 1.2 but not
> > in version 1.0, e.g., PFMP_CULLoDRAW, and then test via #ifdef in
> > Imakefiles and source files. Alternately, I though of another kludge
> > such as,
> >
> > set pf_vers_date \\`grep Date /usr/include/Performer/pf.h`
> > setenv __PF_VERSION `echo $pf_vers_date[2]`
>
> In 1.2's /usr/include/Performer/pr.h there is defined:
>
> #define PF_MAJOR_VERSION 1
> #define PF_MINOR_VERSION 2
>
> That will at least distinguish 1.2 from 1.0/1.1, and I expect it to
> stick around for later releases too. Offhand I can't think of an
> easy way to distinguish 1.0 from 1.1..
>
> Allan
>
>
> --
> Allan Schaffer
> Silicon Graphics
> aschaffe++at++sgi.com
>
>-- End of excerpt from Allan Schaffer

In the makefile you can have this to tell if your on irix4.* or irix5.*
and set flags accordingly.

#if SVR4
# Its IRIX5...

#else
# Its IRIX4...

#endif

-- 
-------------------------------------------------------------------------------
Wade Olsen, wade++at++sgi.com, 415-390-1023, Silicon Graphics Computer Systems

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:10 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.