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 |
… | |
… | |
269 | |
267 | |
270 | AC_ARG_ENABLE(fading, |
268 | AC_ARG_ENABLE(fading, |
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]) |
|
|
275 | |
|
|
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]) |
272 | fi]) |
281 | |
273 | |
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 |
… | |
… | |
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, |
… | |
… | |
1228 | AC_DEFINE(PTYS_ARE_PTC, 1, Define for this pty type) |
1220 | AC_DEFINE(PTYS_ARE_PTC, 1, Define for this pty type) |
1229 | fi |
1221 | fi |
1230 | if test x$rxvt_cv_ptys = xSGI4; then |
1222 | if test x$rxvt_cv_ptys = xSGI4; then |
1231 | AC_DEFINE(PTYS_ARE__GETPTY, 1, Define for this pty type) |
1223 | AC_DEFINE(PTYS_ARE__GETPTY, 1, Define for this pty type) |
1232 | fi |
1224 | fi |
1233 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
1234 | AC_DEFINE(PTYS_ARE_GETPT, 1, Define for this pty type) |
|
|
1235 | fi |
|
|
1236 | if test x$rxvt_cv_ptys = xHPUX; then |
1225 | if test x$rxvt_cv_ptys = xHPUX; then |
1237 | AC_DEFINE(PTYS_ARE_CLONE, 1, Define for this pty type) |
1226 | AC_DEFINE(PTYS_ARE_CLONE, 1, Define for this pty type) |
1238 | fi |
1227 | fi |
1239 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then |
1228 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then |
1240 | AC_DEFINE(PTYS_ARE_SEARCHED, 1, Define for this pty type) |
1229 | AC_DEFINE(PTYS_ARE_SEARCHED, 1, Define for this pty type) |
1241 | fi |
1230 | fi |
1242 | |
1231 | |
1243 | |
1232 | |
1244 | AS_MESSAGE(checking for pty ranges...) |
1233 | AS_MESSAGE(checking for pty ranges...) |
… | |
… | |
1287 | if test x$support_keepscrolling = xno; then |
1276 | if test x$support_keepscrolling = xno; then |
1288 | 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) |
1289 | fi |
1278 | fi |
1290 | if test x$support_selectionscrolling = xyes; then |
1279 | if test x$support_selectionscrolling = xyes; then |
1291 | 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) |
1292 | fi |
|
|
1293 | if test x$support_menubar = xyes; then |
|
|
1294 | AC_DEFINE(MENUBAR, 1, Define if you want Menubar support) |
|
|
1295 | fi |
1281 | fi |
1296 | if test x$support_frills = xyes; then |
1282 | if test x$support_frills = xyes; then |
1297 | 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) |
1298 | fi |
1284 | fi |
1299 | if test x$support_24bit = xyes; then |
1285 | if test x$support_24bit = xyes; then |