1 | dnl# -*- sh -*- |
1 | dnl# -*- sh -*- |
2 | dnl# |
2 | dnl# |
3 | dnl# Process this file with autoconf to produce a configure script. |
3 | dnl# Process this file with autoconf to produce a configure script. |
4 | dnl# |
4 | dnl# |
|
|
5 | AC_PREREQ(2.50) |
5 | orig_CXXFLAGS="$CXXFLAGS" |
6 | orig_CXXFLAGS="$CXXFLAGS" |
6 | |
7 | |
7 | AC_INIT |
8 | AC_INIT |
8 | AC_CONFIG_SRCDIR([src/feature.h]) |
9 | AC_CONFIG_SRCDIR([src/feature.h]) |
9 | AC_CONFIG_AUX_DIR(autoconf) |
10 | AC_CONFIG_AUX_DIR(autoconf) |
… | |
… | |
103 | support_inheritpixmap=yes |
104 | support_inheritpixmap=yes |
104 | support_tinting=yes |
105 | support_tinting=yes |
105 | support_fading=yes |
106 | support_fading=yes |
106 | support_keepscrolling=yes |
107 | support_keepscrolling=yes |
107 | support_selectionscrolling=yes |
108 | support_selectionscrolling=yes |
108 | support_menubar=no |
|
|
109 | support_mousewheel=yes |
109 | support_mousewheel=yes |
110 | support_mouseslipwheel=yes |
110 | support_mouseslipwheel=yes |
111 | support_utmp=yes |
111 | support_utmp=yes |
112 | support_wtmp=yes |
112 | support_wtmp=yes |
113 | support_lastlog=yes |
113 | support_lastlog=yes |
… | |
… | |
150 | support_tinting=no |
150 | support_tinting=no |
151 | support_fading=no |
151 | support_fading=no |
152 | support_keepscrolling=no |
152 | support_keepscrolling=no |
153 | support_selectionscrolling=no |
153 | support_selectionscrolling=no |
154 | support_lastlog=no |
154 | support_lastlog=no |
155 | support_menubar=no |
|
|
156 | support_mousewheel=no |
155 | support_mousewheel=no |
157 | support_mouseslipwheel=no |
156 | support_mouseslipwheel=no |
158 | support_text_blink=no |
157 | support_text_blink=no |
159 | support_pointer_blank=no |
158 | support_pointer_blank=no |
160 | support_scroll_rxvt=no |
159 | support_scroll_rxvt=no |
… | |
… | |
181 | support_tinting=yes |
180 | support_tinting=yes |
182 | support_fading=yes |
181 | support_fading=yes |
183 | support_keepscrolling=yes |
182 | support_keepscrolling=yes |
184 | support_selectionscrolling=yes |
183 | support_selectionscrolling=yes |
185 | support_lastlog=yes |
184 | support_lastlog=yes |
186 | support_menubar=yes |
|
|
187 | support_mousewheel=yes |
185 | support_mousewheel=yes |
188 | support_mouseslipwheel=yes |
186 | support_mouseslipwheel=yes |
189 | support_text_blink=yes |
187 | support_text_blink=yes |
190 | support_pointer_blank=yes |
188 | support_pointer_blank=yes |
191 | support_scroll_rxvt=yes |
189 | support_scroll_rxvt=yes |
… | |
… | |
271 | [ --enable-fading enable colors fading when off focus], |
269 | [ --enable-fading enable colors fading when off focus], |
272 | [if test x$enableval = xyes -o x$enableval = xno; then |
270 | [if test x$enableval = xyes -o x$enableval = xno; then |
273 | support_fading=$enableval |
271 | support_fading=$enableval |
274 | fi]) |
272 | fi]) |
275 | |
273 | |
276 | AC_ARG_ENABLE(menubar, |
|
|
277 | [ --enable-menubar enable menubar], |
|
|
278 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
279 | support_menubar=$enableval |
|
|
280 | fi]) |
|
|
281 | |
|
|
282 | AC_ARG_ENABLE(rxvt-scroll, |
274 | AC_ARG_ENABLE(rxvt-scroll, |
283 | [ --enable-rxvt-scroll enable rxvt style scrollbar], |
275 | [ --enable-rxvt-scroll enable rxvt style scrollbar], |
284 | [if test x$enableval = xyes -o x$enableval = xno; then |
276 | [if test x$enableval = xyes -o x$enableval = xno; then |
285 | support_scroll_rxvt=$enableval |
277 | support_scroll_rxvt=$enableval |
286 | fi]) |
278 | fi]) |
… | |
… | |
307 | [ --enable-plain-scroll enable plain style scrollbar], |
299 | [ --enable-plain-scroll enable plain style scrollbar], |
308 | [if test x$enableval = xyes -o x$enableval = xno; then |
300 | [if test x$enableval = xyes -o x$enableval = xno; then |
309 | support_scroll_plain=$enableval |
301 | support_scroll_plain=$enableval |
310 | fi]) |
302 | fi]) |
311 | |
303 | |
312 | AC_ARG_ENABLE(half-shadow, |
304 | dnl AC_ARG_ENABLE(half-shadow, |
313 | [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], |
305 | dnl [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], |
314 | [if test x$enableval = xyes; then |
306 | dnl [if test x$enableval = xyes; then |
315 | AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
307 | dnl AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
316 | fi]) |
308 | dnl fi]) |
317 | |
309 | |
318 | AC_ARG_WITH(codesets, |
310 | AC_ARG_WITH(codesets, |
319 | [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
311 | [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
320 | [codesets="$withval"]) |
312 | [codesets="$withval"]) |
321 | |
313 | |
… | |
… | |
1172 | |
1164 | |
1173 | if test x$rxvt_broken_ximcb = xyes; then |
1165 | if test x$rxvt_broken_ximcb = xyes; then |
1174 | AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) |
1166 | AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) |
1175 | fi |
1167 | fi |
1176 | |
1168 | |
1177 | if test x$rxvt_cv_func_posix_openpt = xno; then |
1169 | if test x$ac_cv_func_posix_openpt = xno; then |
1178 | AC_CHECK_FUNC(openpty, [], [AC_CHECK_LIB(util, openpty, [LIBS="$LIBS -lutil"])]) |
1170 | AC_CHECK_FUNC(openpty, [], [AC_CHECK_LIB(util, openpty, [LIBS="$LIBS -lutil"])]) |
1179 | fi |
1171 | fi |
1180 | |
1172 | |
1181 | dnl# if we don't guess right then it's up to the user |
1173 | dnl# if we don't guess right then it's up to the user |
1182 | AC_CACHE_CHECK(for pty/tty type, rxvt_cv_ptys, |
1174 | AC_CACHE_CHECK(for pty/tty type, rxvt_cv_ptys, |
… | |
… | |
1285 | AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed) |
1277 | AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed) |
1286 | fi |
1278 | fi |
1287 | if test x$support_selectionscrolling = xyes; then |
1279 | if test x$support_selectionscrolling = xyes; then |
1288 | AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen) |
1280 | AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen) |
1289 | fi |
1281 | fi |
1290 | if test x$support_menubar = xyes; then |
|
|
1291 | AC_DEFINE(MENUBAR, 1, Define if you want Menubar support) |
|
|
1292 | fi |
|
|
1293 | if test x$support_frills = xyes; then |
1282 | if test x$support_frills = xyes; then |
1294 | AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) |
1283 | AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) |
1295 | fi |
1284 | fi |
1296 | if test x$support_24bit = xyes; then |
1285 | if test x$support_24bit = xyes; then |
1297 | AC_DEFINE(PREFER_24BIT, 1, Define to use a 24 bit visual if the screen has 24 bit mode, even if the default is 8 bit) |
1286 | AC_DEFINE(PREFER_24BIT, 1, Define to use a 24 bit visual if the screen has 24 bit mode, even if the default is 8 bit) |