summaryrefslogtreecommitdiff
path: root/news/newsx/patches/patch-aa
blob: a81f357578dd708a634b0418a7b6c5a75bd71548 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
$NetBSD: patch-aa,v 1.3 2014/09/12 07:58:12 spz Exp $

--- configure.orig	2003-05-18 17:25:34.000000000 +0000
+++ configure
@@ -861,6 +861,8 @@ Optional Packages:
   --without-history       do not perform history database lookup
   --with-history=FILE     use FILE as history database
 \
+  --with-history-mode={indexed|tagged}    set history hash mode
+\
   --with-errlog=LOG_XX    do syslog in category LOG_XX
 \
   --with-inhosts=DIR      use DIR as in.hosts directory
@@ -1743,6 +1745,12 @@ _ACEOF
 
 	    fi
 
+# Check whether --with-history-mode or --without-history-mode was given.
+if test "${with_history_mode+set}" = set; then
+  withval="$with_history_mode"
+
+fi;
+
 # Check whether --with-errlog or --without-errlog was given.
 if test "${with_errlog+set}" = set; then
   withval="$with_errlog"
@@ -1890,9 +1898,12 @@ echo $ECHO_N "checking and found INN... 
 	    # it has been reported that some INN 2.1 had its own VERSION
 	    VERSION_save="$VERSION"
 	    VERSION=
+	    # innshellvars sets TMPDIR
+	    TMPDIR_save="$TMPDIR"
 	    . $NEWSCONFIG
 	    INN_VERSION="$VERSION"
 	    VERSION="$VERSION_save"
+	    TMPDIR="$TMPDIR_save"
 	    INN_NEWSUMASK=`umask`
 	    if test x$NEWSBIN = x ; then
 	      echo "$as_me:$LINENO: result: ERROR: $NEWSCONFIG is probably in wrong format" >&5
@@ -1964,6 +1975,28 @@ echo $ECHO_N "checking history... $ECHO_
 		    HISTORY="$with_history"
 		fi
 	    fi
+	    if test x$with_history_mode != x; then
+		case x$with_history_mode in
+		xindexed )
+		    echo "$as_me:$LINENO: result: $HISTORY" >&5
+echo "${ECHO_T}$HISTORY" >&6
+		    ;;
+		xtagged )
+		    echo "$as_me:$LINENO: result: $HISTORY" >&5
+echo "${ECHO_T}$HISTORY" >&6
+
+cat >>confdefs.h <<_ACEOF
+#define DO_TAGGED_HASH 1
+_ACEOF
+
+		    ;;
+		* )
+		    echo "$as_me:$LINENO: result: ERROR: unknown hash mode $with_history_mode" >&5
+echo "${ECHO_T}ERROR: unknown hash mode $with_history_mode" >&6
+		    exit 1
+		    ;;
+		esac
+	    else
 	    if test -f $HISTORY; then
 		if test -f $HISTORY.index; then
 		    echo "$as_me:$LINENO: result: $HISTORY" >&5
@@ -1999,6 +2032,7 @@ echo "${ECHO_T}Try running makehistory f
 echo "${ECHO_T}ERROR: cannot find database $HISTORY" >&6
 		exit 1
 	    fi
+	    fi
 	fi
 
 			echo "$as_me:$LINENO: checking locks" >&5