1 | dnl# -*- sh -*- |
1 | dnl# -*- sh -*- |
2 | dnl# |
|
|
3 | dnl# $Id: configure.in,v 1.7 2004/01/29 23:26:01 pcg Exp $ |
|
|
4 | dnl# |
2 | dnl# |
5 | dnl# Process this file with autoconf to produce a configure script. |
3 | dnl# Process this file with autoconf to produce a configure script. |
6 | dnl# |
4 | dnl# |
7 | AC_INIT(src/feature.h) |
5 | AC_INIT(src/feature.h) |
8 | AC_CONFIG_AUX_DIR(autoconf) |
6 | AC_CONFIG_AUX_DIR(autoconf) |
… | |
… | |
58 | support_text_blink=no |
56 | support_text_blink=no |
59 | support_pointer_blank=no |
57 | support_pointer_blank=no |
60 | support_scroll_rxvt=no |
58 | support_scroll_rxvt=no |
61 | support_scroll_next=no |
59 | support_scroll_next=no |
62 | support_scroll_xterm=no |
60 | support_scroll_xterm=no |
|
|
61 | support_scroll_plain=no |
63 | support_xim=no |
62 | support_xim=no |
64 | support_xpm=no |
63 | support_xpm=no |
65 | support_xft=no |
64 | support_xft=no |
66 | support_unicode3=no |
65 | support_unicode3=no |
67 | codesets= |
66 | codesets= |
… | |
… | |
75 | INSTALL_LIBRXVT=yes |
74 | INSTALL_LIBRXVT=yes |
76 | fi |
75 | fi |
77 | AC_SUBST(INSTALL_LIBRXVT) |
76 | AC_SUBST(INSTALL_LIBRXVT) |
78 | |
77 | |
79 | AC_ARG_ENABLE(everything, |
78 | AC_ARG_ENABLE(everything, |
80 | [ --enable-everything enable standard non-multichoice features: marked * |
79 | [ --enable-everything enable standard non-multichoice features |
81 | NOTE: this option is order dependent |
80 | NOTE: this option is order dependent |
82 | NOTE: automatically enabled with --enable-shared], |
81 | NOTE: automatically enabled with --enable-shared], |
83 | [if test x$enableval = xyes; then |
82 | [if test x$enableval = xyes; then |
84 | support_24bit=yes |
83 | support_24bit=yes |
85 | support_frills=yes |
84 | support_frills=yes |
… | |
… | |
96 | support_text_blink=yes |
95 | support_text_blink=yes |
97 | support_pointer_blank=yes |
96 | support_pointer_blank=yes |
98 | support_scroll_rxvt=yes |
97 | support_scroll_rxvt=yes |
99 | support_scroll_next=yes |
98 | support_scroll_next=yes |
100 | support_scroll_xterm=yes |
99 | support_scroll_xterm=yes |
|
|
100 | support_scroll_plain=yes |
101 | support_utmp=yes |
101 | support_utmp=yes |
102 | support_wtmp=yes |
102 | support_wtmp=yes |
103 | support_xim=yes |
103 | support_xim=yes |
104 | support_xpm=yes |
104 | support_xpm=yes |
105 | support_xft=yes |
105 | support_xft=yes |
106 | support_unicode3=yes |
106 | support_unicode3=yes |
107 | codesets=all |
107 | codesets=all |
108 | fi]) |
108 | fi]) |
109 | |
109 | |
110 | echo |
|
|
111 | if test x$support_inheritpixmap = xyes; then |
|
|
112 | support_inheritpixmap=no |
|
|
113 | echo "******* transparency support disabled, does not work" |
|
|
114 | fi |
|
|
115 | if test x$support_xpm = xyes; then |
|
|
116 | support_xpm=no |
|
|
117 | echo "******* pixmap support disabled, does not work" |
|
|
118 | fi |
|
|
119 | if test x$support_menubar = xyes; then |
|
|
120 | support_menubar=no |
|
|
121 | echo "******* menubar support disabled, does not work" |
|
|
122 | fi |
|
|
123 | echo |
|
|
124 | |
|
|
125 | AC_ARG_ENABLE(unicode3, |
110 | AC_ARG_ENABLE(unicode3, |
126 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
111 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
127 | [if test x$enableval = xyes; then |
112 | [if test x$enableval = xyes -o x$enableval = xno; then |
128 | support_unicode3=yes |
113 | support_unicode3=yes |
129 | fi]) |
114 | fi]) |
130 | |
115 | |
131 | AC_ARG_ENABLE(xft, |
116 | AC_ARG_ENABLE(xft, |
132 | [ --enable-xft enable xft support on systems that have it], |
117 | [ --enable-xft enable xft support on systems that have it], |
133 | [if test x$enableval = xyes; then |
118 | [if test x$enableval = xyes -o x$enableval = xno; then |
134 | support_xft=yes |
119 | support_xft=yes |
135 | fi]) |
120 | fi]) |
136 | |
121 | |
137 | AC_ARG_WITH(codesets, |
122 | AC_ARG_WITH(codesets, |
138 | [ --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all)], |
123 | [ --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all)], |
139 | [if test x$enableval = xyes; then |
|
|
140 | codesets="$withval" |
124 | [codesets="$withval"]) |
141 | fi]) |
|
|
142 | |
|
|
143 | AC_ARG_WITH(encoding, |
|
|
144 | [ --with-encoding=NAME set language default encoding to NAME (default: sjis) |
|
|
145 | (eucj|sjis|big5|gb|kr|noenc)], |
|
|
146 | [if test x$enableval = xyes; then |
|
|
147 | withval=`echo $withval | tr '[a-z]' '[A-Z]'` |
|
|
148 | AC_DEFINE_UNQUOTED(MULTICHAR_ENCODING, $withval, Define default multichar glyph encoding) |
|
|
149 | fi]) |
|
|
150 | |
125 | |
151 | AC_ARG_ENABLE(utmp, |
126 | AC_ARG_ENABLE(utmp, |
152 | [ --enable-utmp enable utmp (utmpx) support *], |
127 | [ --enable-utmp enable utmp (utmpx) support], |
153 | [if test x$enableval = xyes -o x$enableval = xno; then |
128 | [if test x$enableval = xyes -o x$enableval = xno; then |
154 | support_utmp=$enableval |
129 | support_utmp=$enableval |
155 | fi]) |
130 | fi]) |
156 | |
131 | |
157 | AC_ARG_ENABLE(wtmp, |
132 | AC_ARG_ENABLE(wtmp, |
158 | [ --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)*], |
133 | [ --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)], |
159 | [if test x$enableval = xyes -o x$enableval = xno; then |
134 | [if test x$enableval = xyes -o x$enableval = xno; then |
160 | support_wtmp=$enableval |
135 | support_wtmp=$enableval |
161 | fi]) |
136 | fi]) |
162 | |
137 | |
163 | AC_ARG_ENABLE(lastlog, |
138 | AC_ARG_ENABLE(lastlog, |
164 | [ --enable-lastlog enable lastlog support (requires --enable-utmp) *], |
139 | [ --enable-lastlog enable lastlog support (requires --enable-utmp)], |
165 | [if test x$enableval = xyes -o x$enableval = xno; then |
140 | [if test x$enableval = xyes -o x$enableval = xno; then |
166 | support_lastlog=$enableval |
141 | support_lastlog=$enableval |
167 | fi]) |
142 | fi]) |
168 | |
143 | |
169 | AC_ARG_ENABLE(xpm-background, |
144 | AC_ARG_ENABLE(xpm-background, |
170 | [ --enable-xpm-background enable XPM background pixmaps *], |
145 | [ --enable-xpm-background enable XPM background pixmaps], |
171 | [if test x$enableval = xyes -o x$enableval = xno; then |
146 | [if test x$enableval = xyes -o x$enableval = xno; then |
172 | support_xpm=$enableval |
147 | support_xpm=$enableval |
173 | fi]) |
148 | fi]) |
174 | |
149 | |
175 | AC_ARG_ENABLE(transparency, |
150 | AC_ARG_ENABLE(transparency, |
176 | [ --enable-transparency enable transparent backgrounds *], |
151 | [ --enable-transparency enable transparent backgrounds], |
177 | [if test x$enableval = xyes -o x$enableval = xno; then |
152 | [if test x$enableval = xyes -o x$enableval = xno; then |
178 | support_inheritpixmap=$enableval |
153 | support_inheritpixmap=$enableval |
179 | fi]) |
154 | fi]) |
180 | |
155 | |
181 | AC_ARG_ENABLE(menubar, |
156 | AC_ARG_ENABLE(menubar, |
182 | [ --enable-menubar enable menubar *], |
157 | [ --enable-menubar enable menubar], |
183 | [if test x$enableval = xyes -o x$enableval = xno; then |
158 | [if test x$enableval = xyes -o x$enableval = xno; then |
184 | support_menubar=$enableval |
159 | support_menubar=$enableval |
185 | fi]) |
160 | fi]) |
186 | |
161 | |
187 | AC_ARG_ENABLE(rxvt-scroll, |
162 | AC_ARG_ENABLE(rxvt-scroll, |
188 | [ --enable-rxvt-scroll enable rxvt style scrollbar *], |
163 | [ --enable-rxvt-scroll enable rxvt style scrollbar], |
189 | [if test x$enableval = xyes -o x$enableval = xno; then |
164 | [if test x$enableval = xyes -o x$enableval = xno; then |
190 | support_scroll_rxvt=$enableval |
165 | support_scroll_rxvt=$enableval |
191 | fi]) |
166 | fi]) |
192 | |
167 | |
193 | AC_ARG_ENABLE(next-scroll, |
168 | AC_ARG_ENABLE(next-scroll, |
194 | [ --enable-next-scroll enable NeXT style scrollbar *], |
169 | [ --enable-next-scroll enable NeXT style scrollbar], |
195 | [if test x$enableval = xyes -o x$enableval = xno; then |
170 | [if test x$enableval = xyes -o x$enableval = xno; then |
196 | support_scroll_next=$enableval |
171 | support_scroll_next=$enableval |
197 | fi]) |
172 | fi]) |
198 | |
173 | |
199 | AC_ARG_ENABLE(xterm-scroll, |
174 | AC_ARG_ENABLE(xterm-scroll, |
200 | [ --enable-xterm-scroll enable Xterm style scrollbar *], |
175 | [ --enable-xterm-scroll enable Xterm style scrollbar], |
201 | [if test x$enableval = xyes -o x$enableval = xno; then |
176 | [if test x$enableval = xyes -o x$enableval = xno; then |
202 | support_scroll_xterm=$enableval |
177 | support_scroll_xterm=$enableval |
|
|
178 | fi]) |
|
|
179 | |
|
|
180 | AC_ARG_ENABLE(plain-scroll, |
|
|
181 | [ --enable-plain-scroll enable plain style scrollbar], |
|
|
182 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
183 | support_scroll_plain=$enableval |
203 | fi]) |
184 | fi]) |
204 | |
185 | |
205 | AC_ARG_ENABLE(half-shadow, |
186 | AC_ARG_ENABLE(half-shadow, |
206 | [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], |
187 | [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], |
207 | [if test x$enableval = xyes; then |
188 | [if test x$enableval = xyes; then |
208 | AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
189 | AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
209 | fi]) |
190 | fi]) |
210 | |
191 | |
211 | AC_ARG_ENABLE(xim, |
192 | AC_ARG_ENABLE(xim, |
212 | [ --enable-xim XIM (X Input Method) protocol support *], |
193 | [ --enable-xim XIM (X Input Method) protocol support], |
213 | [if test x$enableval = xyes -o x$enableval = xno; then |
194 | [if test x$enableval = xyes -o x$enableval = xno; then |
214 | support_xim=$enableval |
195 | support_xim=$enableval |
215 | fi]) |
|
|
216 | |
|
|
217 | AC_ARG_ENABLE(greek, |
|
|
218 | [ --enable-greek enable greek keyboard support], |
|
|
219 | [if test x$enableval = xyes; then |
|
|
220 | AC_DEFINE(GREEK_SUPPORT, 1, Define if you want support for Greek Elot-928 & IBM-437 keyboard) |
|
|
221 | fi]) |
196 | fi]) |
222 | |
197 | |
223 | AC_ARG_ENABLE(ttygid, |
198 | AC_ARG_ENABLE(ttygid, |
224 | [ --enable-ttygid enable tty setting to group named "tty"], |
199 | [ --enable-ttygid enable tty setting to group named "tty"], |
225 | [if test x$enableval = xyes; then |
200 | [if test x$enableval = xyes; then |
… | |
… | |
261 | [if test x$enableval = xno; then |
236 | [if test x$enableval = xno; then |
262 | AC_DEFINE(NO_SECONDARY_SCREEN, 1, Disable the secondary screen. Many programs use the secondary screen as their workplace) |
237 | AC_DEFINE(NO_SECONDARY_SCREEN, 1, Disable the secondary screen. Many programs use the secondary screen as their workplace) |
263 | fi]) |
238 | fi]) |
264 | |
239 | |
265 | AC_ARG_ENABLE(frills, |
240 | AC_ARG_ENABLE(frills, |
266 | [ --enable-frills enable support for rarely used features *], |
241 | [ --enable-frills enable support for rarely used features], |
267 | [if test x$enableval = xyes -o x$enableval = xno; then |
242 | [if test x$enableval = xyes -o x$enableval = xno; then |
268 | support_frills=$enableval |
243 | support_frills=$enableval |
269 | fi]) |
244 | fi]) |
270 | |
245 | |
271 | AC_ARG_ENABLE(linespace, |
246 | AC_ARG_ENABLE(linespace, |
272 | [ --enable-linespace enable support for linespace *], |
247 | [ --enable-linespace enable support for linespace], |
273 | [if test x$enableval = xyes -o x$enableval = xno; then |
248 | [if test x$enableval = xyes -o x$enableval = xno; then |
274 | support_linespace=$enableval |
249 | support_linespace=$enableval |
275 | fi]) |
250 | fi]) |
276 | |
251 | |
277 | AC_ARG_ENABLE(24bit, |
252 | AC_ARG_ENABLE(24bit, |
278 | [ --enable-24bit enable support for using 24bit visuals if available *], |
253 | [ --enable-24bit enable support for using 24bit visuals if available], |
279 | [if test x$enableval = xyes -o x$enableval = xno; then |
254 | [if test x$enableval = xyes -o x$enableval = xno; then |
280 | support_24bit=$enableval |
255 | support_24bit=$enableval |
281 | fi]) |
256 | fi]) |
282 | |
257 | |
283 | AC_ARG_ENABLE(keepscrolling, |
258 | AC_ARG_ENABLE(keepscrolling, |
284 | [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press *], |
259 | [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press], |
285 | [if test x$enableval = xyes -o x$enableval = xno; then |
260 | [if test x$enableval = xyes -o x$enableval = xno; then |
286 | support_keepscrolling=$enableval |
261 | support_keepscrolling=$enableval |
287 | fi]) |
262 | fi]) |
288 | |
263 | |
289 | AC_ARG_ENABLE(selectionscrolling, |
264 | AC_ARG_ENABLE(selectionscrolling, |
290 | [ --enable-selectionscrolling enable scrolling during selections *], |
265 | [ --enable-selectionscrolling enable scrolling during selections], |
291 | [if test x$enableval = xyes -o x$enableval = xno; then |
266 | [if test x$enableval = xyes -o x$enableval = xno; then |
292 | support_selectionscrolling=$enableval |
267 | support_selectionscrolling=$enableval |
293 | fi]) |
268 | fi]) |
294 | |
269 | |
295 | AC_ARG_ENABLE(mousewheel, |
270 | AC_ARG_ENABLE(mousewheel, |
296 | [ --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 *], |
271 | [ --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5], |
297 | [if test x$enableval = xyes -o x$enableval = xno; then |
272 | [if test x$enableval = xyes -o x$enableval = xno; then |
298 | support_mousewheel=$enableval |
273 | support_mousewheel=$enableval |
299 | fi]) |
274 | fi]) |
300 | |
275 | |
301 | AC_ARG_ENABLE(slipwheeling, |
276 | AC_ARG_ENABLE(slipwheeling, |
302 | [ --enable-slipwheeling enable slip wheel scrolling (requires previous) *], |
277 | [ --enable-slipwheeling enable slip wheel scrolling (requires previous)], |
303 | [if test x$enableval = xyes -o x$enableval = xno; then |
278 | [if test x$enableval = xyes -o x$enableval = xno; then |
304 | support_mouseslipwheel=$enableval |
279 | support_mouseslipwheel=$enableval |
305 | fi]) |
280 | fi]) |
306 | |
281 | |
307 | AC_ARG_ENABLE(old-selection, |
282 | AC_ARG_ENABLE(old-selection, |
308 | [ --enable-old-selection enable v2.20 (& prior) mouse selection style support*], |
283 | [ --enable-old-selection enable v2.20 (& prior) mouse selection style support], |
309 | [if test x$enableval = xyes -o x$enableval = xno; then |
284 | [if test x$enableval = xyes -o x$enableval = xno; then |
310 | support_oldselection=$enableval |
285 | support_oldselection=$enableval |
311 | fi]) |
286 | fi]) |
312 | |
287 | |
313 | AC_ARG_ENABLE(new-selection, |
288 | AC_ARG_ENABLE(new-selection, |
… | |
… | |
364 | [if test x$enableval = xyes -o x$enableval = xno; then |
339 | [if test x$enableval = xyes -o x$enableval = xno; then |
365 | support_pointer_blank=$enableval |
340 | support_pointer_blank=$enableval |
366 | fi]) |
341 | fi]) |
367 | |
342 | |
368 | AC_ARG_WITH(term, |
343 | AC_ARG_WITH(term, |
369 | [ --with-term=NAME set the terminal to NAME (default \"xterm\")], |
344 | [ --with-term=NAME set the terminal to NAME (default \"rxvt\")], |
370 | [if test x$withval != x; then |
345 | [if test x$withval != x; then |
371 | AC_DEFINE_UNQUOTED(TERMENV, "$withval",Set TERM to the value given by configure) term="$withval" |
346 | AC_DEFINE_UNQUOTED(TERMENV, "$withval",Set TERM to the value given by configure) term="$withval" |
372 | fi]) |
347 | fi]) |
373 | |
348 | |
374 | AC_ARG_WITH(terminfo, |
349 | AC_ARG_WITH(terminfo, |
… | |
… | |
1188 | fi |
1163 | fi |
1189 | if test x$support_scroll_xterm = xyes; then |
1164 | if test x$support_scroll_xterm = xyes; then |
1190 | AC_DEFINE(XTERM_SCROLLBAR, 1, Support Xterm style scrollbars) |
1165 | AC_DEFINE(XTERM_SCROLLBAR, 1, Support Xterm style scrollbars) |
1191 | scrolltypes="$scrolltypes xterm" |
1166 | scrolltypes="$scrolltypes xterm" |
1192 | fi |
1167 | fi |
|
|
1168 | if test x$support_scroll_plain = xyes; then |
|
|
1169 | AC_DEFINE(PLAIN_SCROLLBAR, 1, Support plain style scrollbars) |
|
|
1170 | scrolltypes="$scrolltypes plain" |
|
|
1171 | fi |
1193 | if test x$support_pointer_blank = xyes; then |
1172 | if test x$support_pointer_blank = xyes; then |
1194 | AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing) |
1173 | AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing) |
1195 | fi |
1174 | fi |
1196 | if test x$support_cursor_blink = xyes; then |
1175 | if test x$support_cursor_blink = xyes; then |
1197 | AC_DEFINE(CURSOR_BLINK, 1, Define if you want blinking cursor support) |
1176 | AC_DEFINE(CURSOR_BLINK, 1, Define if you want blinking cursor support) |
… | |
… | |
1204 | fi |
1183 | fi |
1205 | if test x$codesets = xall; then |
1184 | if test x$codesets = xall; then |
1206 | codesets=jp,jp-ext,kr,cn,cn-ext,vn |
1185 | codesets=jp,jp-ext,kr,cn,cn-ext,vn |
1207 | fi |
1186 | fi |
1208 | for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do |
1187 | for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do |
1209 | AC_DEFINE(ENCODING_EU, 1, Define if you want europeean extended codesets) |
1188 | AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) |
1210 | case "$codeset" in |
1189 | case "$codeset" in |
1211 | VN ) AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) ;; |
1190 | VN ) AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) ;; |
1212 | JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; |
1191 | JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; |
1213 | JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; |
1192 | JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; |
1214 | KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; |
1193 | KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; |