ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/autoconf/configure.in
(Generate patch)

Comparing rxvt-unicode/autoconf/configure.in (file contents):
Revision 1.5 by pcg, Fri Jan 16 18:49:33 2004 UTC vs.
Revision 1.9 by pcg, Sat Jan 31 00:20:21 2004 UTC

1dnl# -*- sh -*- 1dnl# -*- sh -*-
2dnl#
3dnl# $Id: configure.in,v 1.5 2004/01/16 18:49:33 pcg Exp $
4dnl# 2dnl#
5dnl# Process this file with autoconf to produce a configure script. 3dnl# Process this file with autoconf to produce a configure script.
6dnl# 4dnl#
7AC_INIT(src/feature.h) 5AC_INIT(src/feature.h)
8AC_CONFIG_AUX_DIR(autoconf) 6AC_CONFIG_AUX_DIR(autoconf)
42 40
43MALLOC_TYPE=S 41MALLOC_TYPE=S
44support_addstrings=no 42support_addstrings=no
45support_frills=no 43support_frills=no
46support_linespace=no 44support_linespace=no
47support_graphics=no
48support_inheritpixmap=no 45support_inheritpixmap=no
49support_keepscrolling=no 46support_keepscrolling=no
50support_selectionscrolling=no 47support_selectionscrolling=no
51support_menubar=no 48support_menubar=no
52support_mousewheel=no 49support_mousewheel=no
54support_oldselection=no 51support_oldselection=no
55support_utmp=no 52support_utmp=no
56support_wtmp=no 53support_wtmp=no
57support_lastlog=no 54support_lastlog=no
58support_cursor_blink=no 55support_cursor_blink=no
56support_text_blink=no
59support_pointer_blank=no 57support_pointer_blank=no
60support_scroll_rxvt=no 58support_scroll_rxvt=no
61support_scroll_next=no 59support_scroll_next=no
62support_scroll_xterm=no 60support_scroll_xterm=no
63support_xim=no 61support_xim=no
82 NOTE: automatically enabled with --enable-shared], 80 NOTE: automatically enabled with --enable-shared],
83 [if test x$enableval = xyes; then 81 [if test x$enableval = xyes; then
84 support_24bit=yes 82 support_24bit=yes
85 support_frills=yes 83 support_frills=yes
86 support_linespace=yes 84 support_linespace=yes
87 support_graphics=yes
88 support_inheritpixmap=yes 85 support_inheritpixmap=yes
89 support_keepscrolling=yes 86 support_keepscrolling=yes
90 support_selectionscrolling=yes 87 support_selectionscrolling=yes
91 support_lastlog=yes 88 support_lastlog=yes
92 support_menubar=yes 89 support_menubar=yes
93 support_mousewheel=yes 90 support_mousewheel=yes
94 support_mouseslipwheel=yes 91 support_mouseslipwheel=yes
95 support_oldselection=yes 92 support_oldselection=yes
96 support_cursor_blink=yes 93 support_cursor_blink=yes
94 support_text_blink=yes
97 support_pointer_blank=yes 95 support_pointer_blank=yes
98 support_scroll_rxvt=yes 96 support_scroll_rxvt=yes
99 support_scroll_next=yes 97 support_scroll_next=yes
100 support_scroll_xterm=yes 98 support_scroll_xterm=yes
101 support_utmp=yes 99 support_utmp=yes
114fi 112fi
115if test x$support_xpm = xyes; then 113if test x$support_xpm = xyes; then
116 support_xpm=no 114 support_xpm=no
117 echo "******* pixmap support disabled, does not work" 115 echo "******* pixmap support disabled, does not work"
118fi 116fi
119if test x$support_graphics = xyes; then
120 support_graphics=no
121 echo "******* graphics support disabled, does not work"
122fi
123if test x$support_menubar = xyes; then 117if test x$support_menubar = xyes; then
124 support_menubar=no 118 support_menubar=no
125 echo "******* menubar support disabled, does not work" 119 echo "******* menubar support disabled, does not work"
126fi 120fi
127echo 121echo
151 withval=`echo $withval | tr '[a-z]' '[A-Z]'` 145 withval=`echo $withval | tr '[a-z]' '[A-Z]'`
152 AC_DEFINE_UNQUOTED(MULTICHAR_ENCODING, $withval, Define default multichar glyph encoding) 146 AC_DEFINE_UNQUOTED(MULTICHAR_ENCODING, $withval, Define default multichar glyph encoding)
153 fi]) 147 fi])
154 148
155AC_ARG_ENABLE(utmp, 149AC_ARG_ENABLE(utmp,
156 [ --enable-utmp enable utmp (utmpx) support *], 150 [ --enable-utmp enable utmp (utmpx) support],
157 [if test x$enableval = xyes -o x$enableval = xno; then 151 [if test x$enableval = xyes -o x$enableval = xno; then
158 support_utmp=$enableval 152 support_utmp=$enableval
159 fi]) 153 fi])
160 154
161AC_ARG_ENABLE(wtmp, 155AC_ARG_ENABLE(wtmp,
162 [ --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)*], 156 [ --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)],
163 [if test x$enableval = xyes -o x$enableval = xno; then 157 [if test x$enableval = xyes -o x$enableval = xno; then
164 support_wtmp=$enableval 158 support_wtmp=$enableval
165 fi]) 159 fi])
166 160
167AC_ARG_ENABLE(lastlog, 161AC_ARG_ENABLE(lastlog,
168 [ --enable-lastlog enable lastlog support (requires --enable-utmp) *], 162 [ --enable-lastlog enable lastlog support (requires --enable-utmp)],
169 [if test x$enableval = xyes -o x$enableval = xno; then 163 [if test x$enableval = xyes -o x$enableval = xno; then
170 support_lastlog=$enableval 164 support_lastlog=$enableval
171 fi]) 165 fi])
172 166
173AC_ARG_ENABLE(xpm-background, 167AC_ARG_ENABLE(xpm-background,
174 [ --enable-xpm-background enable XPM background pixmaps *], 168 [ --enable-xpm-background enable XPM background pixmaps],
175 [if test x$enableval = xyes -o x$enableval = xno; then 169 [if test x$enableval = xyes -o x$enableval = xno; then
176 support_xpm=$enableval 170 support_xpm=$enableval
177 fi]) 171 fi])
178 172
179AC_ARG_ENABLE(transparency, 173AC_ARG_ENABLE(transparency,
180 [ --enable-transparency enable transparent backgrounds *], 174 [ --enable-transparency enable transparent backgrounds],
181 [if test x$enableval = xyes -o x$enableval = xno; then 175 [if test x$enableval = xyes -o x$enableval = xno; then
182 support_inheritpixmap=$enableval 176 support_inheritpixmap=$enableval
183 fi]) 177 fi])
184 178
185AC_ARG_ENABLE(menubar, 179AC_ARG_ENABLE(menubar,
186 [ --enable-menubar enable menubar *], 180 [ --enable-menubar enable menubar],
187 [if test x$enableval = xyes -o x$enableval = xno; then 181 [if test x$enableval = xyes -o x$enableval = xno; then
188 support_menubar=$enableval 182 support_menubar=$enableval
189 fi]) 183 fi])
190 184
191AC_ARG_ENABLE(graphics,
192 [ --enable-graphics enable rxvt own graphics mode (see src/graphics) *],
193 [if test x$enableval = xyes -o x$enableval = xno; then
194 support_graphics=$enableval
195 fi])
196
197AC_ARG_ENABLE(rxvt-scroll, 185AC_ARG_ENABLE(rxvt-scroll,
198 [ --enable-rxvt-scroll enable rxvt style scrollbar *], 186 [ --enable-rxvt-scroll enable rxvt style scrollbar],
199 [if test x$enableval = xyes -o x$enableval = xno; then 187 [if test x$enableval = xyes -o x$enableval = xno; then
200 support_scroll_rxvt=$enableval 188 support_scroll_rxvt=$enableval
201 fi]) 189 fi])
202 190
203AC_ARG_ENABLE(next-scroll, 191AC_ARG_ENABLE(next-scroll,
204 [ --enable-next-scroll enable NeXT style scrollbar *], 192 [ --enable-next-scroll enable NeXT style scrollbar],
205 [if test x$enableval = xyes -o x$enableval = xno; then 193 [if test x$enableval = xyes -o x$enableval = xno; then
206 support_scroll_next=$enableval 194 support_scroll_next=$enableval
207 fi]) 195 fi])
208 196
209AC_ARG_ENABLE(xterm-scroll, 197AC_ARG_ENABLE(xterm-scroll,
210 [ --enable-xterm-scroll enable Xterm style scrollbar *], 198 [ --enable-xterm-scroll enable Xterm style scrollbar],
211 [if test x$enableval = xyes -o x$enableval = xno; then 199 [if test x$enableval = xyes -o x$enableval = xno; then
212 support_scroll_xterm=$enableval 200 support_scroll_xterm=$enableval
213 fi]) 201 fi])
214 202
215AC_ARG_ENABLE(half-shadow, 203AC_ARG_ENABLE(half-shadow,
217 [if test x$enableval = xyes; then 205 [if test x$enableval = xyes; then
218 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) 206 AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less)
219 fi]) 207 fi])
220 208
221AC_ARG_ENABLE(xim, 209AC_ARG_ENABLE(xim,
222 [ --enable-xim XIM (X Input Method) protocol support *], 210 [ --enable-xim XIM (X Input Method) protocol support],
223 [if test x$enableval = xyes -o x$enableval = xno; then 211 [if test x$enableval = xyes -o x$enableval = xno; then
224 support_xim=$enableval 212 support_xim=$enableval
225 fi]) 213 fi])
226 214
227AC_ARG_ENABLE(greek, 215AC_ARG_ENABLE(greek,
271 [if test x$enableval = xno; then 259 [if test x$enableval = xno; then
272 AC_DEFINE(NO_SECONDARY_SCREEN, 1, Disable the secondary screen. Many programs use the secondary screen as their workplace) 260 AC_DEFINE(NO_SECONDARY_SCREEN, 1, Disable the secondary screen. Many programs use the secondary screen as their workplace)
273 fi]) 261 fi])
274 262
275AC_ARG_ENABLE(frills, 263AC_ARG_ENABLE(frills,
276 [ --enable-frills enable support for rarely used features *], 264 [ --enable-frills enable support for rarely used features],
277 [if test x$enableval = xyes -o x$enableval = xno; then 265 [if test x$enableval = xyes -o x$enableval = xno; then
278 support_frills=$enableval 266 support_frills=$enableval
279 fi]) 267 fi])
280 268
281AC_ARG_ENABLE(linespace, 269AC_ARG_ENABLE(linespace,
282 [ --enable-linespace enable support for linespace *], 270 [ --enable-linespace enable support for linespace],
283 [if test x$enableval = xyes -o x$enableval = xno; then 271 [if test x$enableval = xyes -o x$enableval = xno; then
284 support_linespace=$enableval 272 support_linespace=$enableval
285 fi]) 273 fi])
286 274
287AC_ARG_ENABLE(24bit, 275AC_ARG_ENABLE(24bit,
288 [ --enable-24bit enable support for using 24bit visuals if available *], 276 [ --enable-24bit enable support for using 24bit visuals if available],
289 [if test x$enableval = xyes -o x$enableval = xno; then 277 [if test x$enableval = xyes -o x$enableval = xno; then
290 support_24bit=$enableval 278 support_24bit=$enableval
291 fi]) 279 fi])
292 280
293AC_ARG_ENABLE(keepscrolling, 281AC_ARG_ENABLE(keepscrolling,
294 [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press *], 282 [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press],
295 [if test x$enableval = xyes -o x$enableval = xno; then 283 [if test x$enableval = xyes -o x$enableval = xno; then
296 support_keepscrolling=$enableval 284 support_keepscrolling=$enableval
297 fi]) 285 fi])
298 286
299AC_ARG_ENABLE(selectionscrolling, 287AC_ARG_ENABLE(selectionscrolling,
300 [ --enable-selectionscrolling enable scrolling during selections *], 288 [ --enable-selectionscrolling enable scrolling during selections],
301 [if test x$enableval = xyes -o x$enableval = xno; then 289 [if test x$enableval = xyes -o x$enableval = xno; then
302 support_selectionscrolling=$enableval 290 support_selectionscrolling=$enableval
303 fi]) 291 fi])
304 292
305AC_ARG_ENABLE(mousewheel, 293AC_ARG_ENABLE(mousewheel,
306 [ --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 *], 294 [ --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5],
307 [if test x$enableval = xyes -o x$enableval = xno; then 295 [if test x$enableval = xyes -o x$enableval = xno; then
308 support_mousewheel=$enableval 296 support_mousewheel=$enableval
309 fi]) 297 fi])
310 298
311AC_ARG_ENABLE(slipwheeling, 299AC_ARG_ENABLE(slipwheeling,
312 [ --enable-slipwheeling enable slip wheel scrolling (requires previous) *], 300 [ --enable-slipwheeling enable slip wheel scrolling (requires previous)],
313 [if test x$enableval = xyes -o x$enableval = xno; then 301 [if test x$enableval = xyes -o x$enableval = xno; then
314 support_mouseslipwheel=$enableval 302 support_mouseslipwheel=$enableval
315 fi]) 303 fi])
316 304
317AC_ARG_ENABLE(old-selection, 305AC_ARG_ENABLE(old-selection,
318 [ --enable-old-selection enable v2.20 (& prior) mouse selection style support*], 306 [ --enable-old-selection enable v2.20 (& prior) mouse selection style support],
319 [if test x$enableval = xyes -o x$enableval = xno; then 307 [if test x$enableval = xyes -o x$enableval = xno; then
320 support_oldselection=$enableval 308 support_oldselection=$enableval
321 fi]) 309 fi])
322 310
323AC_ARG_ENABLE(new-selection, 311AC_ARG_ENABLE(new-selection,
356 [if test x$enableval = xyes; then 344 [if test x$enableval = xyes; then
357 AC_DEFINE(TTY_256COLOR, 1, Define if you want 256 colour support) 345 AC_DEFINE(TTY_256COLOR, 1, Define if you want 256 colour support)
358 fi]) 346 fi])
359 347
360AC_ARG_ENABLE(cursor-blink, 348AC_ARG_ENABLE(cursor-blink,
361 [ --enable-cursor-blink enable blinking cursor *], 349 [ --enable-cursor-blink enable blinking cursor],
362 [if test x$enableval = xyes -o x$enableval = xno; then 350 [if test x$enableval = xyes -o x$enableval = xno; then
363 support_cursor_blink=$enableval 351 support_cursor_blink=$enableval
364 fi]) 352 fi])
365 353
354AC_ARG_ENABLE(text-blink,
355 [ --enable-text-blink enable blinking text],
356 [if test x$enableval = xyes -o x$enableval = xno; then
357 support_text_blink=$enableval
358 fi])
359
366AC_ARG_ENABLE(pointer-blank, 360AC_ARG_ENABLE(pointer-blank,
367 [ --enable-pointer-blank enable pointer blank when typing or inactive pointer*], 361 [ --enable-pointer-blank enable pointer blank when typing or inactive pointer],
368 [if test x$enableval = xyes -o x$enableval = xno; then 362 [if test x$enableval = xyes -o x$enableval = xno; then
369 support_pointer_blank=$enableval 363 support_pointer_blank=$enableval
370 fi]) 364 fi])
371 365
372AC_ARG_WITH(term, 366AC_ARG_WITH(term,
1133AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"]) 1127AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])
1134 1128
1135dnl# -------------------------------------------------------------------------- 1129dnl# --------------------------------------------------------------------------
1136dnl# now add and remove other stuff 1130dnl# now add and remove other stuff
1137dnl# -------------------------------------------------------------------------- 1131dnl# --------------------------------------------------------------------------
1138if test x$support_graphics = xyes; then
1139 AC_DEFINE(RXVT_GRAPHICS, 1, Define if you want Rob Nation's own graphic mode)
1140fi
1141if test x$support_inheritpixmap = xyes; then 1132if test x$support_inheritpixmap = xyes; then
1142 AC_DEFINE(TRANSPARENT, 1, Define if you want your background to use the parent window background) 1133 AC_DEFINE(TRANSPARENT, 1, Define if you want your background to use the parent window background)
1143fi 1134fi
1144if test x$support_keepscrolling = xno; then 1135if test x$support_keepscrolling = xno; then
1145 AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed) 1136 AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed)
1201 AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing) 1192 AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing)
1202fi 1193fi
1203if test x$support_cursor_blink = xyes; then 1194if test x$support_cursor_blink = xyes; then
1204 AC_DEFINE(CURSOR_BLINK, 1, Define if you want blinking cursor support) 1195 AC_DEFINE(CURSOR_BLINK, 1, Define if you want blinking cursor support)
1205fi 1196fi
1197if test x$support_text_blink = xyes; then
1198 AC_DEFINE(TEXT_BLINK, 1, Define if you want blinking text support)
1199fi
1206if test x$support_unicode3 = xyes; then 1200if test x$support_unicode3 = xyes; then
1207 AC_DEFINE(UNICODE_3, 1, Define if you want to represent unicode characters outside plane 0) 1201 AC_DEFINE(UNICODE_3, 1, Define if you want to represent unicode characters outside plane 0)
1208fi 1202fi
1209if test x$codesets = xall; then 1203if test x$codesets = xall; then
1210 codesets=jp,jp-ext,kr,cn,cn-ext,vn 1204 codesets=jp,jp-ext,kr,cn,cn-ext,vn
1211fi 1205fi
1212for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do 1206for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do
1213 AC_DEFINE(ENCODING_EU, 1, Define if you want europeean extended codesets) 1207 AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets)
1214 case "$codeset" in 1208 case "$codeset" in
1215 VN ) AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) ;; 1209 VN ) AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) ;;
1216 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; 1210 JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;;
1217 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; 1211 JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;;
1218 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; 1212 KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;;
1300 1294
1301AC_OUTPUT(autoconf/Make.common \ 1295AC_OUTPUT(autoconf/Make.common \
1302Makefile \ 1296Makefile \
1303doc/Makefile \ 1297doc/Makefile \
1304src/Makefile \ 1298src/Makefile \
1305src/graphics/Makefile \
1306src/test/Makefile \ 1299src/test/Makefile \
1307src/rxvtlib.h \ 1300src/rxvtlib.h \
1308W11/Makefile \ 1301W11/Makefile \
1309) 1302)
1310 1303

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines