--- src/configure.orig 2004-01-05 15:37:17.000000000 +0900
+++ src/configure 2007-02-23 20:58:09.000000000 +0900
-echo $ac_n "checking for tgetstr in -lterminfo""... $ac_c" 1>&6
-echo "configure:1068: checking for tgetstr in -lterminfo" >&5
-ac_lib_var=`echo terminfo'_'tgetstr | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-cat > conftest.$ac_ext <<EOF
-/* 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. */
-if { (eval echo configure:1087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- eval "ac_cv_lib_$ac_lib_var=yes"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- eval "ac_cv_lib_$ac_lib_var=no"
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- ac_tr_lib=HAVE_LIB`echo terminfo | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- LIBS="-lterminfo $LIBS"
-echo $ac_n "checking for tgetstr in -ltermcap""... $ac_c" 1>&6
-echo "configure:1113: checking for tgetstr in -ltermcap" >&5
-ac_lib_var=`echo termcap'_'tgetstr | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-cat > conftest.$ac_ext <<EOF
-/* 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. */
-if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- eval "ac_cv_lib_$ac_lib_var=yes"
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- eval "ac_cv_lib_$ac_lib_var=no"
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
- ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF