summaryrefslogtreecommitdiff
path: root/mail/ja-mh/patches/patch-ac
blob: 65f5883881f62d551bc628da944e6b0250bf2167 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
$NetBSD: patch-ac,v 1.5 2012/09/24 16:12:15 taca Exp $

* Add Dragonfly sport.
* Care for ELF shared library.
* Check terminfo for NetBSD 6.0 and later.

--- configure.orig	2001-06-14 16:41:51.000000000 +0000
+++ configure
@@ -1393,18 +1393,10 @@ case "$host_os" in
     SOLARIS=`echo "$host_os" | $AWK -F. '{printf "SOLARIS=2%02d%02d",$2,$3}'`
     SETEUID=`echo "$host_os" | $AWK -F. '$2>=3{printf "SETEUID"}'`
     ;;
-  freebsd* | netbsd*)
+  freebsd* | netbsd* | dragonfly*)
     if test "$use_sharedlib" != no
     then
       sharedlib=fbsd
-      if test -x /usr/bin/objformat
-      then
-	if test x`/usr/bin/objformat` = xelf
-	then
-	  sharedlib=gnuelf
-	  make_mhconfig='CFLAGS="-O -DMHSLIB_NOMINVER"'
-	fi
-      fi
       echo __ELF__ | $CC -E - | grep -q __ELF__ || sharedlib=gnuelf
       slflags="-fpic"
       slibdir=$libdir
@@ -3797,6 +3789,12 @@ then
   fi
 fi
 
+TERMINFO=
+if test -f /usr/share/misc/terminfo.db -o -f /usr/share/misc/terminfo.cdb
+then
+  TERMINFO=TERMINFO
+fi
+
 if test "$ac_cv_func_lockf" = yes -a x"$BSD44" = x
 then
   LOCKF=LOCKF
@@ -4410,6 +4408,7 @@ s%@mailspool@%$mailspool%g
 s%@mailgroup@%$mailgroup%g
 s%@DBMPWD@%$DBMPWD%g
 s%@SETMG@%$SETMG%g
+s%@TERMINFO@%$TERMINFO%g
 s%@JAPAN@%$JAPAN%g
 
 CEOF