[gnu.emacs.bug] X11 makefile problem

mlittman@WIND.BELLCORE.COM (Michael S. Littman) (04/19/89)

Hello,

I am installing 18.53 on Suns with X11.  I ran across the following
problem which you should be aware of:

In order to get X11 support, X11 has to be defined (in cpp).  This
means, it has the value of null.  However, in ymakefile, I needed to
add -I/usr/local/pkg/X11/include to CFLAGS and
-L/usr/local/pkg/X11/lib to LDFLAGS.  In making xmakefile, the X11s
get replaced with nulls (by cpp).  Therefore, the correct files cannot
be found by cc and ld.

I patched this by using X/**/11 instead of X11 in the pathnames since
our version of cpp doesn't macro replace strings broken by comments
but it does remove comments.

A better fix would probably be to use ``#define USE_X11'' instead of
``#define X11'' as the flag for X11 support.

-Michael