Joined: 11 Oct 2008
|Posted: Sat Oct 11, 2008 2:57 pm Post subject: Source Code: termcap?
|This isn't really a bug but I wasn't sure where to put this post.
tintin looks for termcap when 'configure'ing. configure checks for the tgetent function from termcap but I couldn't find it used in the source code.
So I removed termcap from the configure.in file, ran autoconf, ./configure, make, etc. and it seems to work fine.
The simple patch is below:
--- tt/src/configure.in 2007-11-18 07:14:58.000000000 -0800
+++ tt-patched/src/configure.in 2008-10-11 12:35:34.000000000 -0700
@@ -66,7 +66,7 @@
# Checks for header files.
-AC_CHECK_HEADERS([arpa/inet.h ctype.h fcntl.h net/errno.h netdb.h netinet/in.h param.h pthread.h socks.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/ptem.h sys/socket.h sys/termio.h sys/time.h termcap.h time.h unistd.h zlib.h util.h pty.h])
+AC_CHECK_HEADERS([arpa/inet.h ctype.h fcntl.h net/errno.h netdb.h netinet/in.h param.h pthread.h socks.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/ptem.h sys/socket.h sys/termio.h sys/time.h time.h unistd.h zlib.h util.h pty.h])
# Checks for typedefs, structures, and compiler characteristics.
@@ -90,7 +90,6 @@
# Checks libraries
To use patch:
tar zxf tintin-1.98.5.tar.gz
(copy/paste patch above to tt.patch file in tt directory)
patch -p1 < tt.patch
./configure && make
Perhaps termcap is just a throwback to tintin++'s old code, it was removed, and forgotten about. Or perhaps I broke something doing this. I'll keep using my patched version and see if it breaks.