I just checked in a new Makefile.am for Xlt/tests/BubbleButton. This seems to
work for me, both inside the LessTif tree and out. I get the following for
test1 when configured along with LessTif

rwscott@raid ~/source/lesstif/lib/Xlt/tests/BubbleButton$ touch test1.c
rwscott@raid ~/source/lesstif/lib/Xlt/tests/BubbleButton$ make
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./../../lib
-I../../../../include/Motif-2.0           -I../../../../include/Motif-2.0      
  -I../../../../include/Motif-1.2         -I../../../../include/Motif-1.2 
-I/usr/X11R6/include     -g -O2 -Wall -c test1.c
/bin/sh ../../libtool --mode=link gcc  -g -O2 -Wall  -o test1  test1.o
../../lib/libXlt.la 
gcc -g -O2 -Wall -o .libs/test1 test1.o  ../../lib/.libs/libXlt.so
/home/rwscott/source/lesstif/lib/Xm-2.0/.libs/libXm.so -L/usr/X11R6/lib -lm
-lXt -lSM -lICE -lXpm -lX11 -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath
-Wl,/usr/local/LessTif/Motif2.0/lib
creating test1
rwscott@raid ~/source/lesstif/lib/Xlt/tests/BubbleButton$ 

This looks good to me. Headers are searched
1 - local directory
2 - in the src root (for config.h)
3 - in the Xlt lib src dir
4 - in the LessTif srcdir and builddir (current version and 1.2)
5 - then off to the installed X includes

So this is giving priority to whatever is in the tree. If Motif is installed
the headers will be getting picked up from the LessTif tree, not
/usr/X11R6/include/Xm

The final link is getting Xlt out of the build tree, Xm out of the build tree,
and searching for the rest.


In the case of a separate configuration I get

rwscott@raid ~/source/Xlt/tests/BubbleButton$ touch test1.c
rwscott@raid ~/source/Xlt/tests/BubbleButton$ make
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./../../lib -I/usr/X11R6/include 
-I/usr/X11R6/include     -g -O2 -Wall -c test1.c
/bin/sh ../../libtool --mode=link gcc  -g -O2 -Wall  -o test1  test1.o
../../lib/libXlt.la 
gcc -g -O2 -Wall -o .libs/test1 test1.o  ../../lib/.libs/libXlt.so
-L/usr/X11R6/lib /usr/X11R6/lib/libXm.so -lXmu -lXt -lSM -lICE -lXext -lXp
-lX11 -lXt -lSM -lICE -lX11 -lXt -lSM -lICE -lX11 -Wl,--rpath
-Wl,/usr/X11R6/lib
creating test1
rwscott@raid ~/source/Xlt/tests/BubbleButton$ 

Which also looks fine, although I'm not sure yet why the X libs are repeated. I
don't see a problem with this though. It's saying "search here for un-resolved
symbols, now search it again".

Reply via email to