--- kiklib/configure.orig	2006-10-20 18:04:01.000000000 +0900
+++ kiklib/configure	2009-01-25 17:55:52.000000000 +0900
@@ -7132,52 +7132,6 @@
 	UTMP_NAME=none
 	UTMP_LIBS=
 fi
-#  libutempter
-if test -z "$UTMP_NAME" ; then
-	echo $ac_n "checking for addToUtmp in -lutempter""... $ac_c" 1>&6
-echo "configure:7139: checking for addToUtmp in -lutempter" >&5
-ac_lib_var=`echo utempter'_'addToUtmp | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  ac_save_LIBS="$LIBS"
-LIBS="-lutempter  $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 7147 "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
-    builtin and then its argument prototype would still apply.  */
-char addToUtmp();
-
-int main() {
-addToUtmp()
-; return 0; }
-EOF
-if { (eval echo configure:7158: \"$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
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_lib_$ac_lib_var=no"
-fi
-rm -f conftest*
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-  
-		UTMP_NAME=utmper
-		UTMP_LIBS="-lutempter -lutil"
-		
-else
-  echo "$ac_t""no" 1>&6
-fi
-
-fi
 #  setutent()  (SysV)
 if test -z "$UTMP_NAME" ; then
 	echo $ac_n "checking for setutent""... $ac_c" 1>&6
@@ -7299,66 +7253,7 @@
 	if test "$kik_cv_mingw32" = yes ; then
 		kik_cv_pty=win32
 	else
-		echo $ac_n "checking for posix_openpt""... $ac_c" 1>&6
-echo "configure:7304: checking for posix_openpt" >&5
-if eval "test \"`echo '$''{'ac_cv_func_posix_openpt'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  cat > conftest.$ac_ext <<EOF
-#line 7309 "configure"
-#include "confdefs.h"
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char posix_openpt(); below.  */
-#include <assert.h>
-/* Override any gcc2 internal prototype to avoid an error.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char posix_openpt();
-
-int main() {
-
-/* The GNU C library defines this for functions which it implements
-    to always fail with ENOSYS.  Some functions are actually named
-    something starting with __ and the normal name is an alias.  */
-#if defined (__stub_posix_openpt) || defined (__stub___posix_openpt)
-choke me
-#else
-posix_openpt();
-#endif
-
-; return 0; }
-EOF
-if { (eval echo configure:7332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
-  rm -rf conftest*
-  eval "ac_cv_func_posix_openpt=yes"
-else
-  echo "configure: failed program was:" >&5
-  cat conftest.$ac_ext >&5
-  rm -rf conftest*
-  eval "ac_cv_func_posix_openpt=no"
-fi
-rm -f conftest*
-fi
-
-if eval "test \"`echo '$ac_cv_func_'posix_openpt`\" = yes"; then
-  echo "$ac_t""yes" 1>&6
-  
-			cat >> confdefs.h <<\EOF
-#define HAVE_POSIX_OPENPT 
-EOF
-
-			kik_cv_pty=streams
-			
-else
-  echo "$ac_t""no" 1>&6
-
-			if test -c /dev/ptmx ; then
-				kik_cv_pty=streams
-			else
-				kik_cv_pty=bsd
-			fi
-fi
-
+		kik_cv_pty=bsd
 	fi
 fi
 
@@ -7625,11 +7520,6 @@
     top_srcdir="$ac_dots$ac_given_srcdir" ;;
   esac
 
-  case "$ac_given_INSTALL" in
-  [/$]*) INSTALL="$ac_given_INSTALL" ;;
-  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
-  esac
-
   echo creating "$ac_file"
   rm -f "$ac_file"
   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
