[PATCH] aclocal.m4: Enable configure to detect the presence of terminfo database on OpenBSD
- From: Pavel Tsekov <ptsekov gmx net>
- To: mc-devel gnome org
- Subject: [PATCH] aclocal.m4: Enable configure to detect the presence of terminfo database on OpenBSD
- Date: Wed, 29 Jan 2003 18:39:48 +0100 (CET)
Hello,
Here is another simple patch to improve configure's behaviour on OpenBSD. 
[..]
terminfo(5) on OpenBSD says:
/usr/share/terminfo.db  file containing terminal descrip-
                        tions on OpenBSD
[..]
It appears that on OpenBSD 3.2 (i386) the rigth file to look
for is /usr/share/misc/terminfo.db .
Thanks!
--- aclocal.m4	2003-01-29 18:33:51.000000000 +0100
+++ aclocal.m4.OpenBSD.patch2	2003-01-29 18:33:43.000000000 +0100
@@ -792,6 +792,19 @@ AC_DEFUN([MC_WITH_MCSLANG], [
 		use_terminfo=yes
 	    fi
 	done
+	# terminfo(5) on OpenBSD say:
+	# /usr/share/terminfo.db  file containing terminal descrip-
+	#                         tions on OpenBSD
+	#
+	# It appears that on OpenBSD 3.2 (i386) the rigth file to look
+	# for is /usr/share/misc/terminfo.db .
+	#
+	for tifile in "/usr/share/terminfo.db" \
+		      "/usr/share/misc/terminfo.db" ; do
+	    if test -f "$tifile" ; then
+		use_terminfo=yes
+	    fi
+	done
     fi
 
     # If there is no terminfo, use termcap
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]