Link Here
|
1 |
--- configure.orig Tue Sep 7 01:19:45 1999 |
|
|
2 |
+++ configure Fri Sep 10 13:26:38 1999 |
3 |
@@ -890,6 +890,73 @@ |
4 |
rmdir ./test/test2 2>/dev/null |
5 |
rmdir ./test 2>/dev/null |
6 |
|
7 |
+Terminfo_Dirs="/usr/lib/terminfo \ |
8 |
+ /usr/share/lib/terminfo \ |
9 |
+ /usr/local/lib/terminfo" |
10 |
+TERMCAP=yes |
11 |
+echo $ac_n "checking for terminfo""... $ac_c" 1>&6 |
12 |
+echo "configure:840: checking for terminfo" >&5 |
13 |
+for terminfo_dir in $Terminfo_Dirs |
14 |
+do |
15 |
+ if test -d $terminfo_dir; then |
16 |
+ echo "$ac_t""found" 1>&6 |
17 |
+ TERMCAP="" |
18 |
+ break |
19 |
+ fi |
20 |
+done |
21 |
+if test "$TERMCAP"; then |
22 |
+ echo "$ac_t""not found" 1>&6 |
23 |
+ echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 |
24 |
+echo "configure:852: checking for tgetent in -ltermcap" >&5 |
25 |
+ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` |
26 |
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
27 |
+ echo $ac_n "(cached) $ac_c" 1>&6 |
28 |
+else |
29 |
+ ac_save_LIBS="$LIBS" |
30 |
+LIBS="-ltermcap $LIBS" |
31 |
+cat > conftest.$ac_ext <<EOF |
32 |
+#line 860 "configure" |
33 |
+#include "confdefs.h" |
34 |
+/* Override any gcc2 internal prototype to avoid an error. */ |
35 |
+/* We use char because int might match the return type of a gcc2 |
36 |
+ builtin and then its argument prototype would still apply. */ |
37 |
+char tgetent(); |
38 |
+ |
39 |
+int main() { |
40 |
+tgetent() |
41 |
+; return 0; } |
42 |
+EOF |
43 |
+if { (eval echo configure:871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
44 |
+ rm -rf conftest* |
45 |
+ eval "ac_cv_lib_$ac_lib_var=yes" |
46 |
+else |
47 |
+ echo "configure: failed program was:" >&5 |
48 |
+ cat conftest.$ac_ext >&5 |
49 |
+ rm -rf conftest* |
50 |
+ eval "ac_cv_lib_$ac_lib_var=no" |
51 |
+fi |
52 |
+rm -f conftest* |
53 |
+LIBS="$ac_save_LIBS" |
54 |
+ |
55 |
+fi |
56 |
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
57 |
+ echo "$ac_t""yes" 1>&6 |
58 |
+ ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
59 |
+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
60 |
+ cat >> confdefs.h <<EOF |
61 |
+#define $ac_tr_lib 1 |
62 |
+EOF |
63 |
+ |
64 |
+ LIBS="-ltermcap $LIBS" |
65 |
+ |
66 |
+else |
67 |
+ echo "$ac_t""no" 1>&6 |
68 |
+fi |
69 |
+ |
70 |
+ # Note that if this fails, we continue and make probably dies with |
71 |
+ # an error. Unless terminfo is hiding somewhere else.. |
72 |
+fi |
73 |
+ |
74 |
if test "$SLANG_LIB_LOC" != "" ; then |
75 |
CFLAGS="-L$SLANG_LIB_LOC $CFLAGS" |
76 |
fi |
77 |
@@ -1756,73 +1823,6 @@ |
78 |
fi |
79 |
else |
80 |
echo "configure: warning: pdmenu will be built without GPM mouse support." 1>&2 |
81 |
-fi |
82 |
- |
83 |
-Terminfo_Dirs="/usr/lib/terminfo \ |
84 |
- /usr/share/lib/terminfo \ |
85 |
- /usr/local/lib/terminfo" |
86 |
-TERMCAP=yes |
87 |
-echo $ac_n "checking for terminfo""... $ac_c" 1>&6 |
88 |
-echo "configure:1767: checking for terminfo" >&5 |
89 |
-for terminfo_dir in $Terminfo_Dirs |
90 |
-do |
91 |
- if test -d $terminfo_dir; then |
92 |
- echo "$ac_t""found" 1>&6 |
93 |
- TERMCAP="" |
94 |
- break |
95 |
- fi |
96 |
-done |
97 |
-if test "$TERMCAP"; then |
98 |
- echo "$ac_t""not found" 1>&6 |
99 |
- echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 |
100 |
-echo "configure:1779: checking for tgetent in -ltermcap" >&5 |
101 |
-ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` |
102 |
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
103 |
- echo $ac_n "(cached) $ac_c" 1>&6 |
104 |
-else |
105 |
- ac_save_LIBS="$LIBS" |
106 |
-LIBS="-ltermcap $LIBS" |
107 |
-cat > conftest.$ac_ext <<EOF |
108 |
-#line 1787 "configure" |
109 |
-#include "confdefs.h" |
110 |
-/* Override any gcc2 internal prototype to avoid an error. */ |
111 |
-/* We use char because int might match the return type of a gcc2 |
112 |
- builtin and then its argument prototype would still apply. */ |
113 |
-char tgetent(); |
114 |
- |
115 |
-int main() { |
116 |
-tgetent() |
117 |
-; return 0; } |
118 |
-EOF |
119 |
-if { (eval echo configure:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
120 |
- rm -rf conftest* |
121 |
- eval "ac_cv_lib_$ac_lib_var=yes" |
122 |
-else |
123 |
- echo "configure: failed program was:" >&5 |
124 |
- cat conftest.$ac_ext >&5 |
125 |
- rm -rf conftest* |
126 |
- eval "ac_cv_lib_$ac_lib_var=no" |
127 |
-fi |
128 |
-rm -f conftest* |
129 |
-LIBS="$ac_save_LIBS" |
130 |
- |
131 |
-fi |
132 |
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
133 |
- echo "$ac_t""yes" 1>&6 |
134 |
- ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
135 |
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
136 |
- cat >> confdefs.h <<EOF |
137 |
-#define $ac_tr_lib 1 |
138 |
-EOF |
139 |
- |
140 |
- LIBS="-ltermcap $LIBS" |
141 |
- |
142 |
-else |
143 |
- echo "$ac_t""no" 1>&6 |
144 |
-fi |
145 |
- |
146 |
- # Note that if this fails, we continue and make probably dies with |
147 |
- # an error. Unless terminfo is hiding somewhere else.. |
148 |
fi |
149 |
|
150 |
# Extract the first word of "date", so it can be a program name with args. |