On 12-Apr-1999, Alexandru Harsanyi <[EMAIL PROTECTED]> wrote:
>
>
> 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.
Note that this isn't (IMHO) the best way to do things.
The autoconf approach is to generally check for features, not
to check for version numbers and assume that version numbers
correspond with particular features.
If you check for version numbers you end up with maintenance problems.
Someone has to keep track of which versions have which features.
This gets difficult in the long run.
Probably better to generate a small program that uses _Xme* or whatever,
and see whether it works (links) or not -- then you don't have to worry
about all possible versions.
--
The quantum sort:
while (!sorted) { do_nothing(); }
Tyson Dowd <[EMAIL PROTECTED]> http://tyse.net/
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body