I’m trying to get tex4ht to work with the kpathsea libraries. 
Unfortunately, it seems to be having problems finding tfm files, even 
when the relevant tex environment variables appear to have been set 
and the file exists: 
 
mclellan:~/test% kpsewhich -progname=tex4ht cmsy10.tfm 
/usr/local/tex/texmf/fonts/tfm/public/cm/cmsy10.tfm 
mclellan:~/test% ls -l ‘kpsewhich -progname=tex4ht cmsy10.tfm‘ 
-rw-r--r--   1 tetex    local       1124 Aug 14  1995 /usr/local/tex/texmf/fonts/tfm/public/cm/cmsy10.tfm 
 
The OS is solaris 7, and I compiled tex4ht as follows: 
gcc -O2 -DKPATHSEA -I/usr/local/teTeX/include -L/usr/local/teTeX/lib -o tex4ht tex4ht.c  -DHAVE_DIRENT_H -lkpathsea 
% 
tex4ht: fatal: tfm file ‘cmtt10.tfm’ not found. 
%