Parent document is top of "Motif FAQ (Part 1 of 9)"
Previous document is "16) What versions of Motif are there?"
Next document is "18) Is there a concise features list for Motif 2.0?"

17) How can I find which version of Motif I have? Xlib or Xt

version?

[Last modified: Oct 95]

Answer:  The macro XmVERSION gives you the version number.  The macro
XmREVISION gives you the major revision number.  The macro XmVersion combines
these e.g. a value of 1002 is Motif 1.2.

To find the minor revision number is not easy. From Motif 1.1.3 onwards, try
this:

   'strings `which mwm` | grep OSF'.

to get the full version number e.g. 1.1.3.

In Motif 1.2, the macro XmUPDATE_LEVEL was added to give the minor revision
number (also known as the patch level).  In addition there was a macro string
added,  XmVERSION_STRING which has all the above info in a char string.

Also, grepping through the strings of libXm.a for OSF can also be useful.

Thanks to hops@x.co.uk Mike Hopkirk

Ken Lee, http://www.rahul.net/kenton/, adds the following for determining the
Xlib and Xt version:

X11/Xlib.h should have macros like this:
#define XlibSpecificationRelease 6
meaning X11R6.

Similarly, X11/Intrinsic.h has this in X11R6:
#define XtSpecificationRelease 6

Parent document is top of "Motif FAQ (Part 1 of 9)"
Previous document is "16) What versions of Motif are there?"
Next document is "18) Is there a concise features list for Motif 2.0?"