The cfcitsio library is widely used for working with FITS files.  It may already
be on your system, so you might check first for these files

libcfitsio.a
fitsio.h
fitsio2.h
longnam.h

which are required to compile XmCCD.  If they are not present, all that 
should be needed in most cases is to run the script

./install_cfitsio

which copies the library to /usr/local/lib and the header files to
/usr/local/include.  

These files are from cfitsio3240.tar.gz downloaded from 
http://heasarc.gsfc.nasa.gov/fitsio/ on March 20, 2010. Note that the header
files here are not compatible with some of the previous versions of cfitsio.

The library cfitsio.a was compiled with OpenSuse 11.1.  To re-compile,

cd src
./configure
make
cp libcfitsio.a ../
cd ..

When a new version of cfitsio is needed, you may replace the source code 
in src with that version, then

cd src
./configure
make
cp fits*h ../
cp longnam.h ../
cp libcfitsio.a ../
cd ..
 
prior to running the install_cfitsio script, or simply to insure that the new
version's library and header files are globally available.



