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) |
… | |
… | |
106 | support_unicode3=yes |
104 | support_unicode3=yes |
107 | codesets=all |
105 | codesets=all |
108 | fi]) |
106 | fi]) |
109 | |
107 | |
110 | echo |
108 | 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 |
109 | if test x$support_menubar = xyes; then |
120 | support_menubar=no |
110 | support_menubar=no |
121 | echo "******* menubar support disabled, does not work" |
111 | echo "******* menubar support disabled, does not work" |
122 | fi |
112 | fi |
123 | echo |
113 | echo |
… | |
… | |
147 | withval=`echo $withval | tr '[a-z]' '[A-Z]'` |
137 | withval=`echo $withval | tr '[a-z]' '[A-Z]'` |
148 | AC_DEFINE_UNQUOTED(MULTICHAR_ENCODING, $withval, Define default multichar glyph encoding) |
138 | AC_DEFINE_UNQUOTED(MULTICHAR_ENCODING, $withval, Define default multichar glyph encoding) |
149 | fi]) |
139 | fi]) |
150 | |
140 | |
151 | AC_ARG_ENABLE(utmp, |
141 | AC_ARG_ENABLE(utmp, |
152 | [ --enable-utmp enable utmp (utmpx) support *], |
142 | [ --enable-utmp enable utmp (utmpx) support], |
153 | [if test x$enableval = xyes -o x$enableval = xno; then |
143 | [if test x$enableval = xyes -o x$enableval = xno; then |
154 | support_utmp=$enableval |
144 | support_utmp=$enableval |
155 | fi]) |
145 | fi]) |
156 | |
146 | |
157 | AC_ARG_ENABLE(wtmp, |
147 | AC_ARG_ENABLE(wtmp, |
158 | [ --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)*], |
148 | [ --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)], |
159 | [if test x$enableval = xyes -o x$enableval = xno; then |
149 | [if test x$enableval = xyes -o x$enableval = xno; then |
160 | support_wtmp=$enableval |
150 | support_wtmp=$enableval |
161 | fi]) |
151 | fi]) |
162 | |
152 | |
163 | AC_ARG_ENABLE(lastlog, |
153 | AC_ARG_ENABLE(lastlog, |
164 | [ --enable-lastlog enable lastlog support (requires --enable-utmp) *], |
154 | [ --enable-lastlog enable lastlog support (requires --enable-utmp)], |
165 | [if test x$enableval = xyes -o x$enableval = xno; then |
155 | [if test x$enableval = xyes -o x$enableval = xno; then |
166 | support_lastlog=$enableval |
156 | support_lastlog=$enableval |
167 | fi]) |
157 | fi]) |
168 | |
158 | |
169 | AC_ARG_ENABLE(xpm-background, |
159 | AC_ARG_ENABLE(xpm-background, |
170 | [ --enable-xpm-background enable XPM background pixmaps *], |
160 | [ --enable-xpm-background enable XPM background pixmaps], |
171 | [if test x$enableval = xyes -o x$enableval = xno; then |
161 | [if test x$enableval = xyes -o x$enableval = xno; then |
172 | support_xpm=$enableval |
162 | support_xpm=$enableval |
173 | fi]) |
163 | fi]) |
174 | |
164 | |
175 | AC_ARG_ENABLE(transparency, |
165 | AC_ARG_ENABLE(transparency, |
176 | [ --enable-transparency enable transparent backgrounds *], |
166 | [ --enable-transparency enable transparent backgrounds], |
177 | [if test x$enableval = xyes -o x$enableval = xno; then |
167 | [if test x$enableval = xyes -o x$enableval = xno; then |
178 | support_inheritpixmap=$enableval |
168 | support_inheritpixmap=$enableval |
179 | fi]) |
169 | fi]) |
180 | |
170 | |
181 | AC_ARG_ENABLE(menubar, |
171 | AC_ARG_ENABLE(menubar, |
182 | [ --enable-menubar enable menubar *], |
172 | [ --enable-menubar enable menubar], |
183 | [if test x$enableval = xyes -o x$enableval = xno; then |
173 | [if test x$enableval = xyes -o x$enableval = xno; then |
184 | support_menubar=$enableval |
174 | support_menubar=$enableval |
185 | fi]) |
175 | fi]) |
186 | |
176 | |
187 | AC_ARG_ENABLE(rxvt-scroll, |
177 | AC_ARG_ENABLE(rxvt-scroll, |
188 | [ --enable-rxvt-scroll enable rxvt style scrollbar *], |
178 | [ --enable-rxvt-scroll enable rxvt style scrollbar], |
189 | [if test x$enableval = xyes -o x$enableval = xno; then |
179 | [if test x$enableval = xyes -o x$enableval = xno; then |
190 | support_scroll_rxvt=$enableval |
180 | support_scroll_rxvt=$enableval |
191 | fi]) |
181 | fi]) |
192 | |
182 | |
193 | AC_ARG_ENABLE(next-scroll, |
183 | AC_ARG_ENABLE(next-scroll, |
194 | [ --enable-next-scroll enable NeXT style scrollbar *], |
184 | [ --enable-next-scroll enable NeXT style scrollbar], |
195 | [if test x$enableval = xyes -o x$enableval = xno; then |
185 | [if test x$enableval = xyes -o x$enableval = xno; then |
196 | support_scroll_next=$enableval |
186 | support_scroll_next=$enableval |
197 | fi]) |
187 | fi]) |
198 | |
188 | |
199 | AC_ARG_ENABLE(xterm-scroll, |
189 | AC_ARG_ENABLE(xterm-scroll, |
200 | [ --enable-xterm-scroll enable Xterm style scrollbar *], |
190 | [ --enable-xterm-scroll enable Xterm style scrollbar], |
201 | [if test x$enableval = xyes -o x$enableval = xno; then |
191 | [if test x$enableval = xyes -o x$enableval = xno; then |
202 | support_scroll_xterm=$enableval |
192 | support_scroll_xterm=$enableval |
203 | fi]) |
193 | fi]) |
204 | |
194 | |
205 | AC_ARG_ENABLE(half-shadow, |
195 | AC_ARG_ENABLE(half-shadow, |
… | |
… | |
207 | [if test x$enableval = xyes; then |
197 | [if test x$enableval = xyes; then |
208 | AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
198 | AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
209 | fi]) |
199 | fi]) |
210 | |
200 | |
211 | AC_ARG_ENABLE(xim, |
201 | AC_ARG_ENABLE(xim, |
212 | [ --enable-xim XIM (X Input Method) protocol support *], |
202 | [ --enable-xim XIM (X Input Method) protocol support], |
213 | [if test x$enableval = xyes -o x$enableval = xno; then |
203 | [if test x$enableval = xyes -o x$enableval = xno; then |
214 | support_xim=$enableval |
204 | support_xim=$enableval |
215 | fi]) |
205 | fi]) |
216 | |
206 | |
217 | AC_ARG_ENABLE(greek, |
207 | AC_ARG_ENABLE(greek, |
… | |
… | |
261 | [if test x$enableval = xno; then |
251 | [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) |
252 | AC_DEFINE(NO_SECONDARY_SCREEN, 1, Disable the secondary screen. Many programs use the secondary screen as their workplace) |
263 | fi]) |
253 | fi]) |
264 | |
254 | |
265 | AC_ARG_ENABLE(frills, |
255 | AC_ARG_ENABLE(frills, |
266 | [ --enable-frills enable support for rarely used features *], |
256 | [ --enable-frills enable support for rarely used features], |
267 | [if test x$enableval = xyes -o x$enableval = xno; then |
257 | [if test x$enableval = xyes -o x$enableval = xno; then |
268 | support_frills=$enableval |
258 | support_frills=$enableval |
269 | fi]) |
259 | fi]) |
270 | |
260 | |
271 | AC_ARG_ENABLE(linespace, |
261 | AC_ARG_ENABLE(linespace, |
272 | [ --enable-linespace enable support for linespace *], |
262 | [ --enable-linespace enable support for linespace], |
273 | [if test x$enableval = xyes -o x$enableval = xno; then |
263 | [if test x$enableval = xyes -o x$enableval = xno; then |
274 | support_linespace=$enableval |
264 | support_linespace=$enableval |
275 | fi]) |
265 | fi]) |
276 | |
266 | |
277 | AC_ARG_ENABLE(24bit, |
267 | AC_ARG_ENABLE(24bit, |
278 | [ --enable-24bit enable support for using 24bit visuals if available *], |
268 | [ --enable-24bit enable support for using 24bit visuals if available], |
279 | [if test x$enableval = xyes -o x$enableval = xno; then |
269 | [if test x$enableval = xyes -o x$enableval = xno; then |
280 | support_24bit=$enableval |
270 | support_24bit=$enableval |
281 | fi]) |
271 | fi]) |
282 | |
272 | |
283 | AC_ARG_ENABLE(keepscrolling, |
273 | AC_ARG_ENABLE(keepscrolling, |
284 | [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press *], |
274 | [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press], |
285 | [if test x$enableval = xyes -o x$enableval = xno; then |
275 | [if test x$enableval = xyes -o x$enableval = xno; then |
286 | support_keepscrolling=$enableval |
276 | support_keepscrolling=$enableval |
287 | fi]) |
277 | fi]) |
288 | |
278 | |
289 | AC_ARG_ENABLE(selectionscrolling, |
279 | AC_ARG_ENABLE(selectionscrolling, |
290 | [ --enable-selectionscrolling enable scrolling during selections *], |
280 | [ --enable-selectionscrolling enable scrolling during selections], |
291 | [if test x$enableval = xyes -o x$enableval = xno; then |
281 | [if test x$enableval = xyes -o x$enableval = xno; then |
292 | support_selectionscrolling=$enableval |
282 | support_selectionscrolling=$enableval |
293 | fi]) |
283 | fi]) |
294 | |
284 | |
295 | AC_ARG_ENABLE(mousewheel, |
285 | AC_ARG_ENABLE(mousewheel, |
296 | [ --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 *], |
286 | [ --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5], |
297 | [if test x$enableval = xyes -o x$enableval = xno; then |
287 | [if test x$enableval = xyes -o x$enableval = xno; then |
298 | support_mousewheel=$enableval |
288 | support_mousewheel=$enableval |
299 | fi]) |
289 | fi]) |
300 | |
290 | |
301 | AC_ARG_ENABLE(slipwheeling, |
291 | AC_ARG_ENABLE(slipwheeling, |
302 | [ --enable-slipwheeling enable slip wheel scrolling (requires previous) *], |
292 | [ --enable-slipwheeling enable slip wheel scrolling (requires previous)], |
303 | [if test x$enableval = xyes -o x$enableval = xno; then |
293 | [if test x$enableval = xyes -o x$enableval = xno; then |
304 | support_mouseslipwheel=$enableval |
294 | support_mouseslipwheel=$enableval |
305 | fi]) |
295 | fi]) |
306 | |
296 | |
307 | AC_ARG_ENABLE(old-selection, |
297 | AC_ARG_ENABLE(old-selection, |
308 | [ --enable-old-selection enable v2.20 (& prior) mouse selection style support*], |
298 | [ --enable-old-selection enable v2.20 (& prior) mouse selection style support], |
309 | [if test x$enableval = xyes -o x$enableval = xno; then |
299 | [if test x$enableval = xyes -o x$enableval = xno; then |
310 | support_oldselection=$enableval |
300 | support_oldselection=$enableval |
311 | fi]) |
301 | fi]) |
312 | |
302 | |
313 | AC_ARG_ENABLE(new-selection, |
303 | AC_ARG_ENABLE(new-selection, |
… | |
… | |
1204 | fi |
1194 | fi |
1205 | if test x$codesets = xall; then |
1195 | if test x$codesets = xall; then |
1206 | codesets=jp,jp-ext,kr,cn,cn-ext,vn |
1196 | codesets=jp,jp-ext,kr,cn,cn-ext,vn |
1207 | fi |
1197 | fi |
1208 | for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do |
1198 | for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do |
1209 | AC_DEFINE(ENCODING_EU, 1, Define if you want europeean extended codesets) |
1199 | AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) |
1210 | case "$codeset" in |
1200 | case "$codeset" in |
1211 | VN ) AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) ;; |
1201 | 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) ;; |
1202 | 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) ;; |
1203 | 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) ;; |
1204 | KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; |