On 9 Apr 1999, Rob Browning wrote:

> Alexandru Harsanyi <[EMAIL PROTECTED]> writes:
> 
> > The real problem lies in the package version, not in the package name:
> > some versions of lesstif work, some dont. The same with guile, and XmHTML.
> > 
> > The only solution I see is to make the configure script smart enough to
> > look for versions of the packages. If the configure script executes
> > corectly than gnucash *MUST* compile. After all, this is what configure is
> > all about...
> 
> This is a potentially good solution.  If someone can explain how to
> detect what we need to know, I'd be more than happy to add the tests
> to the configure process.

The Xm.h include file of the lisstif package defines the following:

------ from Xm.h ---------------------------------------------
/* Version Information */

#define LESSTIF_VERSION 0
#define LESSTIF_REVISION 87

#define LesstifVersion (LESSTIF_VERSION * 1000 + LESSTIF_REVISION)
#define LesstifVERSION_STRING "GNU LessTif 0.87 0"

/* since we're replacing Motif 1.2... */
#define XmVERSION 1
#define XmREVISION 2
#define XmVersion (XmVERSION * 1000 + XmREVISION)
#define XmVERSION_STRING LesstifVERSION_STRING
#define XmUPDATE_LEVEL 0
---------------------------------------------------------------

I believe one can use the LESSTIF_VERSION(/REVISION) to check for the
version of lesstif, and XmVERSION(/REVISION) to check for Motif1.2/2.0
compatibility.

> Also, configure related things may change soon.  I'm moved now, and in
> the next few days, I'll have some time to turn my attention back to
> GnuCash...
> 
> -- 
> Rob Browning <[EMAIL PROTECTED]> PGP=E80E0D04F521A094 532B97F5D64E3930
> 

----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body

Reply via email to