Index: kit/README.fonts
diff -u kit/README.fonts:1.20 kit/README.fonts:1.21
--- kit/README.fonts:1.20	Fri Apr 23 17:35:52 1999
+++ kit/README.fonts	Mon May 24 00:28:59 1999
@@ -1,6 +1,6 @@
 	    Configuring fonts for MagicPoint presentation
 
-$Id: README.fonts,v 1.20 1999/04/23 08:35:52 itojun Exp $
+$Id: README.fonts,v 1.21 1999/05/23 15:28:59 nishida Exp $
 
 For better presentation with "MagicPoint" presentation tool, it is
 necessary to configure your MagicPoint, and maybe your X11 server to
@@ -69,12 +69,17 @@
 Japanese font files.  Japanese font file includes several thousand of
 letters and will occupies several megabytes on your disk.
 
-Combination of FreeType and VFlib
+Scalable Japanese fonts, with FreeType
 ---------------------------------
-MagicPoint uses FreeType only for rendering English fonts, and uses
-VFlib only for rendering Japanese fonts, at this moment.  Therefore,
-it would be the best for Japanese people to link BOTH FreeType and
-VFlib into MagicPoint binary.
+Recent MagicPoint can use FreeType library for rendering Japanese fonts.
+You can use this function to execute configure script, as below:
+
+	./configure --enable-freetype-charset16
+
+If you have already installed VFlib library and you want to use FreeType 
+library to render Japanese fonts, you have to disable vflib, as below:
+
+	./configure --disable-vflib --enable-freetype-charset16
 
 
 Advanced/complex methods
Index: kit/README.fonts.jp
diff -u kit/README.fonts.jp:1.10 kit/README.fonts.jp:1.11
--- kit/README.fonts.jp:1.10	Fri Apr 23 17:35:54 1999
+++ kit/README.fonts.jp	Mon May 24 00:29:01 1999
@@ -1,6 +1,6 @@
 	 MagicPoint$B%W%l%<%s%F!<%7%g%sMQ$N%U%)%s%H@_Dj$K$D$$$F(B
 
-$Id: README.fonts.jp,v 1.10 1999/04/23 08:35:54 itojun Exp $
+$Id: README.fonts.jp,v 1.11 1999/05/23 15:29:01 nishida Exp $
 
 	-----$BF|K\8lHG(B(README.fonts.jp)$B$K4X$9$kCm0U(B-----
 	$B1Q8lHG(B(README.fonts)$B$NJ}$,@5<0$G$9!#(B
@@ -33,9 +33,6 @@
 $B$N$h$&$K!"(Bconfigure$B%9%/%j%W%H$N0z?t$K(B--disable-freetype$B$r$D$1$F<B9T$7(B
 $B$F$/$@$5$$!#(B
 
-$BCm0U!'8=:_(B FreeType $B%i%$%V%i%j$rD>@\MxMQ$9$kJ}K!$G$O!"1QJ8;z%U%)%s%H$7(B
-$B$+MxMQ$G$-$^$;$s!#6aF|Cf$K$O!"F|K\8l%U%)%s%H$b%5%]!<%H$9$kM=Dj$G$9!#(B
-
 TrueType $B%U%)%s%H(B($B%U%j!<(B/$B>&MQ(B)$B$N<hF@J}K!$O!"!X(BTrueType $B%U%)%s%H$N<hF@(B
 $BJ}K!!Y$r;2>H$7$F$/$@$5$$!#(B
 
@@ -94,11 +91,24 @@
 $BF|K\8l$N%9%1!<%i%V%k!&%U%)%s%H$rMxMQ$7$F$b1QJ8;z$rH~$7$/=PNO$G$-$^$9$,!"(B
 $BF|K\8l$N%U%)%s%H$O?t@iJ8;z$N%U%)%s%H$r4^$s$G$$$k4X78>e$H$F$bBg$-$$$N$G!"(B
 $B1Q8l$7$+MxMQ$7$J$$%f!<%6$K$H$C$F$O$A$g$C$HL5BL$+$b$7$l$^$;$s!#(B
+
+[FreeType$B$NMxMQ(B]
+
+$B8=:_$N(BMagicPoint$B$G$O(BFreeType(http://www.freetype.org/)$B$rMxMQ$7$F(B TrueType
+$B$NF|K\8l$rI=<($9$k$3$H$,$G$-$^$9!#(BFreeType$B$,%$%s%9%H!<%k$5$l$F$$$k(B
+$B4D6-$G!"(B
+
+	./configure --enable-freetype-charset16
+
+$B$N$h$&$K%*%W%7%g%s$r;XDj$7$F(Bconfigure$B$r<B9T$7$F$/$@$5$$!#(B
+
+(*$BCm(B) VFlib$B$,%$%s%9%H!<%k$5$l$F$$$k4D6-$G!"(BFreeType$B$rMxMQ$7$FF|K\8l%U%)%s%H(B
+$B$rI=<($7$?$$>l9g$O!"(Bconfigure $B%9%/%j%W%H$N<B9T;~$K(B
 
-[VFlib$B$H(BFreeType$B$NJ#9gMxMQ(B]
+	./configure --disable-vflib --enable-freetype-charset16
 
-$B8=;~E@$G$O!"(BMagicPoint $B$G$O(B FreeType $B$O1QJ8;z%U%)%s%H$N$_$K!"(BVFlib $B$O(B
-$BF|K\8l%U%)%s%H$N$_$KMxMQ$9$k$h$&$K$J$C$F$$$^$9!#(B
+$B$N$h$&$K%*%W%7%g%s$G(B--disable-vflib$B$r;XDj$7$F!"(BVFlib$B$r%j%s%/$7$J$$$h$&$K(B
+$B$7$F2<$5$$!#(B
 
 
 $B9g$o$;5;(B
Index: kit/configure
diff -u kit/configure:1.57 kit/configure:1.59
--- kit/configure:1.57	Sun May 16 01:15:56 1999
+++ kit/configure	Mon May 24 00:56:27 1999
@@ -1022,9 +1022,13 @@
  	for dir in /usr/local/freetype /usr/local /opt/freetype /usr/pkg /usr; do
  		ac_cv_ft_lib=no
  		ac_cv_ft_include=no
- 		if test -d $dir/lib -a -f "$dir/lib/libttf.so*"; then
+		shlib1=`echo $dir/lib/libttf.so* | head -1 | sed -e 's/.*\///'`
+		if test x$shlib1 = x; then
+			$shlib1=no
+		fi
+ 		if test -d $dir/lib -a -f $dir/lib/$shlib1; then
  			ac_cv_ft_lib="$dir/lib"
- 			ac_cv_ft_libpath=`ls $dir/lib/libttf.so* | head -1 | sed -e 's/.*\///'`
+ 			ac_cv_ft_libpath=`ls $dir/lib/$shlib1`
  		elif test -d $dir/lib -a -f $dir/lib/libttf.a; then
  			ac_cv_ft_lib="$dir/lib"
  			ac_cv_ft_libpath="libttf.a"
@@ -1050,7 +1054,7 @@
 	OPTFLAGS="-I$ac_cv_ft_include $OPTFLAGS"
 	DEPLIBS="$ac_cv_ft_lib/$ac_cv_ft_libpath $DEPLIBS"
  	echo $ac_n "checking for TT_Init_FreeType in -lttf""... $ac_c" 1>&6
-echo "configure:1054: checking for TT_Init_FreeType in -lttf" >&5
+echo "configure:1058: checking for TT_Init_FreeType in -lttf" >&5
 ac_lib_var=`echo ttf'_'TT_Init_FreeType | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -1058,7 +1062,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-lttf  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1062 "configure"
+#line 1066 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -1069,7 +1073,7 @@
 TT_Init_FreeType()
 ; return 0; }
 EOF
-if { (eval echo configure:1073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -1099,14 +1103,14 @@
 fi
 
  	cat > conftest.$ac_ext <<EOF
-#line 1103 "configure"
+#line 1107 "configure"
 #include "confdefs.h"
 #include <freetype.h>
 int main() {
 
 ; return 0; }
 EOF
-if { (eval echo configure:1110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   :
 else
   echo "configure: failed program was:" >&5
@@ -1121,16 +1125,16 @@
 EOF
 
 	echo $ac_n "checking for num_CharMaps field in TT_Face_Properties""... $ac_c" 1>&6
-echo "configure:1125: checking for num_CharMaps field in TT_Face_Properties" >&5
+echo "configure:1129: checking for num_CharMaps field in TT_Face_Properties" >&5
  	cat > conftest.$ac_ext <<EOF
-#line 1127 "configure"
+#line 1131 "configure"
 #include "confdefs.h"
 #include <freetype.h>
 int main() {
 TT_Face_Properties x; return x.num_CharMaps;
 ; return 0; }
 EOF
-if { (eval echo configure:1134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   result=yes; cat >> confdefs.h <<\EOF
 #define HAVE_TT_FACE_PROPERTIES_CHARMAPS 1
@@ -1147,7 +1151,7 @@
 fi
 
 echo $ac_n "checking if --disable-vflib option specified""... $ac_c" 1>&6
-echo "configure:1151: checking if --disable-vflib option specified" >&5
+echo "configure:1155: checking if --disable-vflib option specified" >&5
 # Check whether --enable-vflib or --disable-vflib was given.
 if test "${enable_vflib+set}" = set; then
   enableval="$enable_vflib"
@@ -1160,21 +1164,29 @@
 
 if test "$mgp_use_vflib" = "yes"; then
 	echo $ac_n "checking for VFlib library/header""... $ac_c" 1>&6
-echo "configure:1164: checking for VFlib library/header" >&5
+echo "configure:1168: checking for VFlib library/header" >&5
 	for dir in /usr/local/VFlib /usr/local/vflib /usr/local /usr/pkg; do
 		ac_cv_vf_libname=VFlib
 		ac_cv_vf_libdir=no
 		ac_cv_vf_hdrdir=no
-		if test -d $dir/lib -a -f $dir/lib/libVFlib.so; then
+		shlib1=`echo $dir/lib/libVFlib.so* | head -1 | sed -e 's/.*\///'`
+		shlib2=`echo $dir/lib/libVFlib2.so* | head -1 | sed -e 's/.*\///'`
+		if test x$shlib1 = x; then
+			$shlib1=no
+		fi
+		if test x$shlib2 = x; then
+			$shlib2=no
+		fi
+		if test -d $dir/lib -a -f $dir/lib/$shlib1; then
 			ac_cv_vf_libdir="$dir/lib"
-			ac_cv_vf_libpath="libVFlib.so"
+ 			ac_cv_vf_libpath=$shlib1
 		elif test -d $dir/lib -a -f $dir/lib/libVFlib.a; then
 			ac_cv_vf_libdir="$dir/lib"
 			ac_cv_vf_libpath="libVFlib.a"
-		elif test -d $dir/lib -a -f $dir/lib/libVFlib2.so; then
+		elif test -d $dir/lib -a -f $dir/lib/$shlib2; then
 			ac_cv_vf_libname=VFlib2
 			ac_cv_vf_libdir="$dir/lib"
-			ac_cv_vf_libpath="libVFlib2.so"
+ 			ac_cv_vf_libpath=$shlib2
 		elif test -d $dir/lib -a -f $dir/lib/libVFlib2.a; then
 			ac_cv_vf_libname=VFlib2
 			ac_cv_vf_libdir="$dir/lib"
@@ -1201,7 +1213,7 @@
 	OPTFLAGS="-I$ac_cv_vf_hdrdir $OPTFLAGS"
 	DEPLIBS="$ac_cv_vf_libdir/$ac_cv_vf_libpath $DEPLIBS"
 	echo $ac_n "checking for VF_Init in -l$ac_cv_vf_libname""... $ac_c" 1>&6
-echo "configure:1205: checking for VF_Init in -l$ac_cv_vf_libname" >&5
+echo "configure:1217: checking for VF_Init in -l$ac_cv_vf_libname" >&5
 ac_lib_var=`echo $ac_cv_vf_libname'_'VF_Init | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -1209,7 +1221,7 @@
   ac_save_LIBS="$LIBS"
 LIBS="-l$ac_cv_vf_libname  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1213 "configure"
+#line 1225 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -1220,7 +1232,7 @@
 VF_Init()
 ; return 0; }
 EOF
-if { (eval echo configure:1224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -1243,14 +1255,14 @@
 fi
 
 	cat > conftest.$ac_ext <<EOF
-#line 1247 "configure"
+#line 1259 "configure"
 #include "confdefs.h"
 #include <VF.h>
 int main() {
 
 ; return 0; }
 EOF
-if { (eval echo configure:1254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   :
 else
   echo "configure: failed program was:" >&5
@@ -1266,7 +1278,7 @@
 
 
 	echo $ac_n "checking for VFlib configuration file""... $ac_c" 1>&6
-echo "configure:1270: checking for VFlib configuration file" >&5
+echo "configure:1282: checking for VFlib configuration file" >&5
 	# Check whether --with-vfontcap or --without-vfontcap was given.
 if test "${with_vfontcap+set}" = set; then
   withval="$with_vfontcap"
@@ -1304,7 +1316,7 @@
 
 if test "$mgp_use_freetype" = "yes"; then
 	echo $ac_n "checking if --enable-freetype-charset16 option specified""... $ac_c" 1>&6
-echo "configure:1308: checking if --enable-freetype-charset16 option specified" >&5
+echo "configure:1320: checking if --enable-freetype-charset16 option specified" >&5
 	# Check whether --enable-freetype-charset16 or --disable-freetype-charset16 was given.
 if test "${enable_freetype_charset16+set}" = set; then
   enableval="$enable_freetype_charset16"
@@ -1324,7 +1336,7 @@
 fi
 
 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:1328: checking how to run the C preprocessor" >&5
+echo "configure:1340: checking how to run the C preprocessor" >&5
 # On Suns, sometimes $CPP names a directory.
 if test -n "$CPP" && test -d "$CPP"; then
   CPP=
@@ -1339,13 +1351,13 @@
   # On the NeXT, cc -E runs the code through the compiler's parser,
   # not just through cpp.
   cat > conftest.$ac_ext <<EOF
-#line 1343 "configure"
+#line 1355 "configure"
 #include "confdefs.h"
 #include <assert.h>
 Syntax Error
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   :
@@ -1356,13 +1368,13 @@
   rm -rf conftest*
   CPP="${CC-cc} -E -traditional-cpp"
   cat > conftest.$ac_ext <<EOF
-#line 1360 "configure"
+#line 1372 "configure"
 #include "confdefs.h"
 #include <assert.h>
 Syntax Error
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   :
@@ -1373,13 +1385,13 @@
   rm -rf conftest*
   CPP="${CC-cc} -nologo -E"
   cat > conftest.$ac_ext <<EOF
-#line 1377 "configure"
+#line 1389 "configure"
 #include "confdefs.h"
 #include <assert.h>
 Syntax Error
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   :
@@ -1408,7 +1420,7 @@
 # Uses ac_ vars as temps to allow command line to override cache and checks.
 # --without-x overrides everything else, but does not touch the cache.
 echo $ac_n "checking for X""... $ac_c" 1>&6
-echo "configure:1412: checking for X" >&5
+echo "configure:1424: checking for X" >&5
 
 # Check whether --with-x or --without-x was given.
 if test "${with_x+set}" = set; then
@@ -1470,12 +1482,12 @@
 
   # First, try using that file with no special directory specified.
 cat > conftest.$ac_ext <<EOF
-#line 1474 "configure"
+#line 1486 "configure"
 #include "confdefs.h"
 #include <$x_direct_test_include>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -1544,14 +1556,14 @@
   ac_save_LIBS="$LIBS"
   LIBS="-l$x_direct_test_library $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 1548 "configure"
+#line 1560 "configure"
 #include "confdefs.h"
 
 int main() {
 ${x_direct_test_function}()
 ; return 0; }
 EOF
-if { (eval echo configure:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   LIBS="$ac_save_LIBS"
 # We can link X programs with no special library path.
@@ -1638,12 +1650,12 @@
 fi
 
 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
-echo "configure:1642: checking for ANSI C header files" >&5
+echo "configure:1654: checking for ANSI C header files" >&5
 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1647 "configure"
+#line 1659 "configure"
 #include "confdefs.h"
 #include <stdlib.h>
 #include <stdarg.h>
@@ -1651,7 +1663,7 @@
 #include <float.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -1668,7 +1680,7 @@
 if test $ac_cv_header_stdc = yes; then
   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 cat > conftest.$ac_ext <<EOF
-#line 1672 "configure"
+#line 1684 "configure"
 #include "confdefs.h"
 #include <string.h>
 EOF
@@ -1686,7 +1698,7 @@
 if test $ac_cv_header_stdc = yes; then
   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 cat > conftest.$ac_ext <<EOF
-#line 1690 "configure"
+#line 1702 "configure"
 #include "confdefs.h"
 #include <stdlib.h>
 EOF
@@ -1707,7 +1719,7 @@
   :
 else
   cat > conftest.$ac_ext <<EOF
-#line 1711 "configure"
+#line 1723 "configure"
 #include "confdefs.h"
 #include <ctype.h>
 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
@@ -1718,7 +1730,7 @@
 exit (0); }
 
 EOF
-if { (eval echo configure:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   :
 else
@@ -1742,12 +1754,12 @@
 fi
 
 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
-echo "configure:1746: checking for sys/wait.h that is POSIX.1 compatible" >&5
+echo "configure:1758: checking for sys/wait.h that is POSIX.1 compatible" >&5
 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1751 "configure"
+#line 1763 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/wait.h>
@@ -1763,7 +1775,7 @@
 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 ; return 0; }
 EOF
-if { (eval echo configure:1767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_header_sys_wait_h=yes
 else
@@ -1787,17 +1799,17 @@
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:1791: checking for $ac_hdr" >&5
+echo "configure:1803: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1796 "configure"
+#line 1808 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -1825,12 +1837,12 @@
 
 
 echo $ac_n "checking for working const""... $ac_c" 1>&6
-echo "configure:1829: checking for working const" >&5
+echo "configure:1841: checking for working const" >&5
 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1834 "configure"
+#line 1846 "configure"
 #include "confdefs.h"
 
 int main() {
@@ -1879,7 +1891,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:1883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_c_const=yes
 else
@@ -1900,21 +1912,21 @@
 fi
 
 echo $ac_n "checking for inline""... $ac_c" 1>&6
-echo "configure:1904: checking for inline" >&5
+echo "configure:1916: checking for inline" >&5
 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_cv_c_inline=no
 for ac_kw in inline __inline__ __inline; do
   cat > conftest.$ac_ext <<EOF
-#line 1911 "configure"
+#line 1923 "configure"
 #include "confdefs.h"
 
 int main() {
 } $ac_kw foo() {
 ; return 0; }
 EOF
-if { (eval echo configure:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_c_inline=$ac_kw; break
 else
@@ -1940,12 +1952,12 @@
 esac
 
 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
-echo "configure:1944: checking for pid_t" >&5
+echo "configure:1956: checking for pid_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1949 "configure"
+#line 1961 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -1973,12 +1985,12 @@
 fi
 
 echo $ac_n "checking for size_t""... $ac_c" 1>&6
-echo "configure:1977: checking for size_t" >&5
+echo "configure:1989: checking for size_t" >&5
 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 1982 "configure"
+#line 1994 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -2006,12 +2018,12 @@
 fi
 
 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
-echo "configure:2010: checking whether time.h and sys/time.h may both be included" >&5
+echo "configure:2022: checking whether time.h and sys/time.h may both be included" >&5
 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2015 "configure"
+#line 2027 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <sys/time.h>
@@ -2020,7 +2032,7 @@
 struct tm *tp;
 ; return 0; }
 EOF
-if { (eval echo configure:2024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_header_time=yes
 else
@@ -2041,12 +2053,12 @@
 fi
 
 echo $ac_n "checking for u_int""... $ac_c" 1>&6
-echo "configure:2045: checking for u_int" >&5
+echo "configure:2057: checking for u_int" >&5
 if eval "test \"`echo '$''{'ac_cv_type_u_int'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2050 "configure"
+#line 2062 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -2074,12 +2086,12 @@
 fi
 
 echo $ac_n "checking for u_char""... $ac_c" 1>&6
-echo "configure:2078: checking for u_char" >&5
+echo "configure:2090: checking for u_char" >&5
 if eval "test \"`echo '$''{'ac_cv_type_u_char'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2083 "configure"
+#line 2095 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #if STDC_HEADERS
@@ -2108,7 +2120,7 @@
 
 
 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
-echo "configure:2112: checking for 8-bit clean memcmp" >&5
+echo "configure:2124: checking for 8-bit clean memcmp" >&5
 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2116,7 +2128,7 @@
   ac_cv_func_memcmp_clean=no
 else
   cat > conftest.$ac_ext <<EOF
-#line 2120 "configure"
+#line 2132 "configure"
 #include "confdefs.h"
 
 main()
@@ -2126,7 +2138,7 @@
 }
 
 EOF
-if { (eval echo configure:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 then
   ac_cv_func_memcmp_clean=yes
 else
@@ -2144,12 +2156,12 @@
 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
 
 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
-echo "configure:2148: checking return type of signal handlers" >&5
+echo "configure:2160: checking return type of signal handlers" >&5
 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2153 "configure"
+#line 2165 "configure"
 #include "confdefs.h"
 #include <sys/types.h>
 #include <signal.h>
@@ -2166,7 +2178,7 @@
 int i;
 ; return 0; }
 EOF
-if { (eval echo configure:2170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_type_signal=void
 else
@@ -2187,12 +2199,12 @@
 for ac_func in poll strstr _setbufend
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2191: checking for $ac_func" >&5
+echo "configure:2203: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2196 "configure"
+#line 2208 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -2215,7 +2227,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -2242,12 +2254,12 @@
 for ac_func in usleep strsep strdup mkstemp snprintf memcmp
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2246: checking for $ac_func" >&5
+echo "configure:2258: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2251 "configure"
+#line 2263 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -2270,7 +2282,7 @@
 
 ; return 0; }
 EOF
-if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
Index: kit/configure.in
diff -u kit/configure.in:1.54 kit/configure.in:1.56
--- kit/configure.in:1.54	Sun May 16 01:15:58 1999
+++ kit/configure.in	Mon May 24 00:56:29 1999
@@ -3,7 +3,7 @@
 dnl independent (using srcdir), however, xmkmf and Imake.tmpl do not
 dnl allow us to switch compilation directory.
 dnl
-dnl $Id: configure.in,v 1.54 1999/05/15 16:15:58 nishida Exp $
+dnl $Id: configure.in,v 1.56 1999/05/23 15:56:29 nishida Exp $
 AC_INIT(image/imagetypes.c)
 
 dnl Checks for programs.
@@ -68,9 +68,13 @@
  	for dir in /usr/local/freetype /usr/local /opt/freetype /usr/pkg /usr; do
  		ac_cv_ft_lib=no
  		ac_cv_ft_include=no
- 		if test -d $dir/lib -a -f "$dir/lib/libttf.so*"; then
+		shlib1=`echo $dir/lib/libttf.so* | head -1 | sed -e 's/.*\///'`
+		if test x$shlib1 = x; then
+			$shlib1=no
+		fi
+ 		if test -d $dir/lib -a -f $dir/lib/$shlib1; then
  			ac_cv_ft_lib="$dir/lib"
- 			ac_cv_ft_libpath=`ls $dir/lib/libttf.so* | head -1 | sed -e 's/.*\///'`
+ 			ac_cv_ft_libpath=`ls $dir/lib/$shlib1`
  		elif test -d $dir/lib -a -f $dir/lib/libttf.a; then
  			ac_cv_ft_lib="$dir/lib"
  			ac_cv_ft_libpath="libttf.a"
@@ -123,16 +127,24 @@
 		ac_cv_vf_libname=VFlib
 		ac_cv_vf_libdir=no
 		ac_cv_vf_hdrdir=no
-		if test -d $dir/lib -a -f $dir/lib/libVFlib.so; then
+		shlib1=`echo $dir/lib/libVFlib.so* | head -1 | sed -e 's/.*\///'`
+		shlib2=`echo $dir/lib/libVFlib2.so* | head -1 | sed -e 's/.*\///'`
+		if test x$shlib1 = x; then
+			$shlib1=no
+		fi
+		if test x$shlib2 = x; then
+			$shlib2=no
+		fi
+		if test -d $dir/lib -a -f $dir/lib/$shlib1; then
 			ac_cv_vf_libdir="$dir/lib"
-			ac_cv_vf_libpath="libVFlib.so"
+ 			ac_cv_vf_libpath=$shlib1
 		elif test -d $dir/lib -a -f $dir/lib/libVFlib.a; then
 			ac_cv_vf_libdir="$dir/lib"
 			ac_cv_vf_libpath="libVFlib.a"
-		elif test -d $dir/lib -a -f $dir/lib/libVFlib2.so; then
+		elif test -d $dir/lib -a -f $dir/lib/$shlib2; then
 			ac_cv_vf_libname=VFlib2
 			ac_cv_vf_libdir="$dir/lib"
-			ac_cv_vf_libpath="libVFlib2.so"
+ 			ac_cv_vf_libpath=$shlib2
 		elif test -d $dir/lib -a -f $dir/lib/libVFlib2.a; then
 			ac_cv_vf_libname=VFlib2
 			ac_cv_vf_libdir="$dir/lib"
Index: kit/ctlwords.pl
diff -u kit/ctlwords.pl:1.2 kit/ctlwords.pl:removed
--- kit/ctlwords.pl:1.2	Sat Sep  5 06:05:08 1998
+++ kit/ctlwords.pl	Mon May 24 05:10:09 1999
@@ -1,12 +0,0 @@
-#! /usr/bin/perl
-$counter = 0;	# 0 origin
-print "/* generated by ctlwords.awk. do not edit by hand. */\n";
-
-while (<>) {
-	next if (!/^\/\*CTL\*\//);
-	next if ($_ !~ /(CTL_[A-Z0-9]+)/);
-
-	$word = $1;
-	print "#define $word\t$counter\n";
-	$counter++;
-}
Index: kit/keywords.pl
diff -u kit/keywords.pl:1.1 kit/keywords.pl:removed
--- kit/keywords.pl:1.1	Tue Nov 11 15:07:40 1997
+++ kit/keywords.pl	Mon May 24 05:10:10 1999
@@ -1,14 +0,0 @@
-@keywords = ();
-
-die if (@ARGV != 1);
-open(IN, "< $ARGV[0]") || die;
-while (<IN>) {
-	next if (! /^\/\*CTL\*\//);
-	next if (! /CTL_([A-Z0-9]+),/);
-	$t = $1;
-	$t =~ tr/A-Z/a-z/;
-	push(@keywords, $t);
-}
-close(IN);
-
-print join(' ', @keywords) . "\n";
