It seems to me that your linker (ld) cannot find the X11 library file
on your system. In the Scotty Makefile file, generated automatically
from Makefile.in by configure, you can find the following lines:
# Linker switch(es) to use to link with the X11 library archive (the
# configure script will try to set this value automatically, but you
# can override it).
X11_LIBS = -L/usr/openwin/lib -lX11
So, find the directory which contains the X11 library file on your
system and set the above -L option accordingly. If you are not
familiar with the ld linker, have a look at the meaning of -L and -l
options in the ld(1) man page.
Hope this helps.
v
-- rpr. : Robert B. Premuz
Internet: rpremuz@malik.srce.hr * Voice at home: +385 (0)1 687564