Looking at what you tried is incorrect as well. You need to do something like CFLAGS="-I/usr/local/lesstif/include/Xm" and CPPFLAGS="-I/usr/local/lesstif/include/Xm"

David

Ahh, living with autoconf.  Put the custom include paths in both CFLAGS
and CPPFLAGS.  Some tests are made with the c preprocessor.  Also, when
configure chooses cpp vs cc -E, some platform-specific defines that are
automatic with c need to go into CPPFLAGS because cpp doesn't set them.
Pete

Rob Lahaye wrote:

 Hello,

 Can I pass an unusual "lesstif/include" path to the ./configure ?

 With other software I can do something like:
    ./configure --with-extra-incpath=/usr/local/lesstif/include
 but I can't get this right with OpenDX.
 I've tried the "--includedir=" and "--oldincludedir=" options,
 to no avail. Checks for "Xm/*.h" get all "(cached) no".

 In the README is written:
     If you are using Lesstif, check include/dxconfig.h after you
     configure to make sure USING_LESSTIF is set to 1

 Can't find that one, though I found  #define OLD_LESSTIF 1

 Is that essential?

 I've also tried "CFLAGS=/usr/local/lesstif/include",
 and "CFLAGS=/usr/local/lesstif/include/Xm", but all that fails.

 What should I do?

 Thanks,

 Rob.

--
.............................................................................
David L. Thompson                          The University of Montana
mailto:[EMAIL PROTECTED]                 Computer Science Department
http://www.cs.umt.edu/u/dthompsn           Missoula, MT  59812
                                           Work Phone : (406)257-8530

Reply via email to