blob: 0dd85b076f15592291d74105542df5ba033785de (
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
$NetBSD: patch-aa,v 1.4 2001/03/27 02:58:41 fredb Exp $
--- configure.orig Mon Feb 26 20:41:57 2001
+++ configure
@@ -5717,7 +5717,7 @@
fi
;;
esac
-LIBS="$LIBS -lsocks"
+LIBS="$LIBS -lsocks4"
cat >> confdefs.h <<\EOF
#define SOCKS 1
EOF
@@ -6833,7 +6833,10 @@
echo "$ac_t""$cf_cv_screen" 1>&6
case $cf_cv_screen in
-ncurses|slang)
+ncurses)
+ cf_cv_ncurses_header=ncurses.h
+ ;;
+slang)
;;
pdcurses)
cf_cv_ncurses_header=xcurses.h
@@ -7484,6 +7487,12 @@
EOF
;;
+ncurses.h)
+ cat >> confdefs.h <<\EOF
+#define HAVE_NCURSES_H 1
+EOF
+
+ ;;
esac
case $cf_cv_ncurses_header in # (vi
@@ -8655,32 +8664,32 @@
cf_slang_LIBS3="$LIBS"
echo $ac_n "checking if we can link slang without termcap""... $ac_c" 1>&6
echo "configure:8658: checking if we can link slang without termcap" >&5
-if test -n "`echo $cf_slang_LIBS1 | sed -e 's/ //g'`" ; then
- cf_exclude=`echo ".$cf_slang_LIBS2" | sed -e "s@$cf_slang_LIBS1@@" -e 's@^.@@'`
-else
- cf_exclude="$cf_slang_LIBS2"
-fi
-LIBS=`echo ".$cf_slang_LIBS3" | sed -e "s@$cf_exclude@@" -e 's@^.@@'`
-cat > conftest.$ac_ext <<EOF
+#if test -n "`echo $cf_slang_LIBS1 | sed -e 's/ //g'`" ; then
+# cf_exclude=`echo ".$cf_slang_LIBS2" | sed -e "s@$cf_slang_LIBS1@@" -e 's@^.@@'`
+#else
+# cf_exclude="$cf_slang_LIBS2"
+#fi
+#LIBS=`echo ".$cf_slang_LIBS3" | sed -e "s@$cf_exclude@@" -e 's@^.@@'`
+#cat > conftest.$ac_ext <<EOF
#line 8666 "configure"
#include "confdefs.h"
#include <slang.h>
-int main() {
-SLtt_get_screen_size()
-; return 0; }
-EOF
-if { (eval echo configure:8673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- cf_result=yes
-else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
+#int main() {
+#SLtt_get_screen_size()
+#; return 0; }
+#EOF
+#if { (eval echo configure:8673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+# rm -rf conftest*
+# cf_result=yes
+#else
+# echo "configure: failed program was:" >&5
+# cat conftest.$ac_ext >&5
+# rm -rf conftest*
cf_result=no
-fi
-rm -f conftest*
+#fi
+#rm -f conftest*
echo "$ac_t""$cf_result" 1>&6
-test $cf_result = no && LIBS="$cf_slang_LIBS3"
+test $cf_result = no && LIBS="$cf_slang_LIBS3 -lm -ltermcap"
|