… | |
… | |
27 | AC_PROG_CC |
27 | AC_PROG_CC |
28 | AC_PROG_CXX |
28 | AC_PROG_CXX |
29 | AC_PROG_CPP |
29 | AC_PROG_CPP |
30 | AC_PROG_INSTALL |
30 | AC_PROG_INSTALL |
31 | AC_PROG_AWK |
31 | AC_PROG_AWK |
|
|
32 | |
|
|
33 | AC_LANG(C) |
|
|
34 | |
|
|
35 | LINKER="$CXX" |
|
|
36 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
37 | AC_CHECK_LIB(supc++, main, [ |
|
|
38 | LINKER="$CC" |
|
|
39 | LIBS="$LIBS -lsupc++" |
|
|
40 | ]) |
|
|
41 | fi |
|
|
42 | AC_SUBST(LINKER,[$LINKER]) |
|
|
43 | |
|
|
44 | CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE" |
|
|
45 | |
|
|
46 | if test x$GXX = xyes; then |
|
|
47 | CXXFLAGS="$CXXFLAGS -fno-exceptions" |
|
|
48 | fi |
|
|
49 | |
|
|
50 | AC_LANG(C++) |
32 | |
51 | |
33 | dnl# system hacks |
52 | dnl# system hacks |
34 | AC_AIX |
53 | AC_AIX |
35 | AC_ISC_POSIX |
54 | AC_ISC_POSIX |
36 | |
55 | |
… | |
… | |
56 | support_text_blink=no |
75 | support_text_blink=no |
57 | support_pointer_blank=no |
76 | support_pointer_blank=no |
58 | support_scroll_rxvt=no |
77 | support_scroll_rxvt=no |
59 | support_scroll_next=no |
78 | support_scroll_next=no |
60 | support_scroll_xterm=no |
79 | support_scroll_xterm=no |
|
|
80 | support_scroll_plain=no |
61 | support_xim=no |
81 | support_xim=no |
62 | support_xpm=no |
82 | support_xpm=no |
63 | support_xft=no |
83 | support_xft=no |
64 | support_unicode3=no |
84 | support_unicode3=no |
65 | codesets= |
85 | codesets= |
… | |
… | |
73 | INSTALL_LIBRXVT=yes |
93 | INSTALL_LIBRXVT=yes |
74 | fi |
94 | fi |
75 | AC_SUBST(INSTALL_LIBRXVT) |
95 | AC_SUBST(INSTALL_LIBRXVT) |
76 | |
96 | |
77 | AC_ARG_ENABLE(everything, |
97 | AC_ARG_ENABLE(everything, |
78 | [ --enable-everything enable standard non-multichoice features: marked * |
98 | [ --enable-everything enable standard non-multichoice features |
79 | NOTE: this option is order dependent |
99 | NOTE: this option is order dependent |
80 | NOTE: automatically enabled with --enable-shared], |
100 | NOTE: automatically enabled with --enable-shared], |
81 | [if test x$enableval = xyes; then |
101 | [if test x$enableval = xyes; then |
82 | support_24bit=yes |
102 | support_24bit=yes |
83 | support_frills=yes |
103 | support_frills=yes |
… | |
… | |
94 | support_text_blink=yes |
114 | support_text_blink=yes |
95 | support_pointer_blank=yes |
115 | support_pointer_blank=yes |
96 | support_scroll_rxvt=yes |
116 | support_scroll_rxvt=yes |
97 | support_scroll_next=yes |
117 | support_scroll_next=yes |
98 | support_scroll_xterm=yes |
118 | support_scroll_xterm=yes |
|
|
119 | support_scroll_plain=yes |
99 | support_utmp=yes |
120 | support_utmp=yes |
100 | support_wtmp=yes |
121 | support_wtmp=yes |
101 | support_xim=yes |
122 | support_xim=yes |
102 | support_xpm=yes |
123 | support_xpm=yes |
103 | support_xft=yes |
124 | support_xft=yes |
104 | support_unicode3=yes |
125 | support_unicode3=yes |
105 | codesets=all |
126 | codesets=all |
106 | fi]) |
127 | fi]) |
107 | |
128 | |
108 | echo |
|
|
109 | if test x$support_inheritpixmap = xyes; then |
|
|
110 | support_inheritpixmap=no |
|
|
111 | echo "******* transparency support disabled, does not work" |
|
|
112 | fi |
|
|
113 | if test x$support_xpm = xyes; then |
|
|
114 | support_xpm=no |
|
|
115 | echo "******* pixmap support disabled, does not work" |
|
|
116 | fi |
|
|
117 | if test x$support_menubar = xyes; then |
|
|
118 | support_menubar=no |
|
|
119 | echo "******* menubar support disabled, does not work" |
|
|
120 | fi |
|
|
121 | echo |
|
|
122 | |
|
|
123 | AC_ARG_ENABLE(unicode3, |
129 | AC_ARG_ENABLE(unicode3, |
124 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
130 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
125 | [if test x$enableval = xyes; then |
131 | [if test x$enableval = xyes -o x$enableval = xno; then |
126 | support_unicode3=yes |
132 | support_unicode3=yes |
127 | fi]) |
133 | fi]) |
128 | |
134 | |
129 | AC_ARG_ENABLE(xft, |
135 | AC_ARG_ENABLE(xft, |
130 | [ --enable-xft enable xft support on systems that have it], |
136 | [ --enable-xft enable xft support on systems that have it], |
131 | [if test x$enableval = xyes; then |
137 | [if test x$enableval = xyes -o x$enableval = xno; then |
132 | support_xft=yes |
138 | support_xft=yes |
133 | fi]) |
|
|
134 | |
|
|
135 | AC_ARG_WITH(codesets, |
|
|
136 | [ --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,vn,all)], |
|
|
137 | [if test x$enableval = xyes; then |
|
|
138 | codesets="$withval" |
|
|
139 | fi]) |
|
|
140 | |
|
|
141 | AC_ARG_WITH(encoding, |
|
|
142 | [ --with-encoding=NAME set language default encoding to NAME (default: sjis) |
|
|
143 | (eucj|sjis|big5|gb|kr|noenc)], |
|
|
144 | [if test x$enableval = xyes; then |
|
|
145 | withval=`echo $withval | tr '[a-z]' '[A-Z]'` |
|
|
146 | AC_DEFINE_UNQUOTED(MULTICHAR_ENCODING, $withval, Define default multichar glyph encoding) |
|
|
147 | fi]) |
139 | fi]) |
148 | |
140 | |
149 | AC_ARG_ENABLE(utmp, |
141 | AC_ARG_ENABLE(utmp, |
150 | [ --enable-utmp enable utmp (utmpx) support], |
142 | [ --enable-utmp enable utmp (utmpx) support], |
151 | [if test x$enableval = xyes -o x$enableval = xno; then |
143 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
196 | |
188 | |
197 | AC_ARG_ENABLE(xterm-scroll, |
189 | AC_ARG_ENABLE(xterm-scroll, |
198 | [ --enable-xterm-scroll enable Xterm style scrollbar], |
190 | [ --enable-xterm-scroll enable Xterm style scrollbar], |
199 | [if test x$enableval = xyes -o x$enableval = xno; then |
191 | [if test x$enableval = xyes -o x$enableval = xno; then |
200 | support_scroll_xterm=$enableval |
192 | support_scroll_xterm=$enableval |
|
|
193 | fi]) |
|
|
194 | |
|
|
195 | AC_ARG_ENABLE(plain-scroll, |
|
|
196 | [ --enable-plain-scroll enable plain style scrollbar], |
|
|
197 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
198 | support_scroll_plain=$enableval |
201 | fi]) |
199 | fi]) |
202 | |
200 | |
203 | AC_ARG_ENABLE(half-shadow, |
201 | AC_ARG_ENABLE(half-shadow, |
204 | [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], |
202 | [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], |
205 | [if test x$enableval = xyes; then |
203 | [if test x$enableval = xyes; then |
206 | AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
204 | AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
207 | fi]) |
205 | fi]) |
208 | |
206 | |
|
|
207 | AC_ARG_WITH(codesets, |
|
|
208 | [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)], |
|
|
209 | [codesets="$withval"]) |
|
|
210 | |
209 | AC_ARG_ENABLE(xim, |
211 | AC_ARG_ENABLE(xim, |
210 | [ --enable-xim XIM (X Input Method) protocol support], |
212 | [ --enable-xim XIM (X Input Method) protocol support], |
211 | [if test x$enableval = xyes -o x$enableval = xno; then |
213 | [if test x$enableval = xyes -o x$enableval = xno; then |
212 | support_xim=$enableval |
214 | support_xim=$enableval |
213 | fi]) |
|
|
214 | |
|
|
215 | AC_ARG_ENABLE(greek, |
|
|
216 | [ --enable-greek enable greek keyboard support], |
|
|
217 | [if test x$enableval = xyes; then |
|
|
218 | AC_DEFINE(GREEK_SUPPORT, 1, Define if you want support for Greek Elot-928 & IBM-437 keyboard) |
|
|
219 | fi]) |
215 | fi]) |
220 | |
216 | |
221 | AC_ARG_ENABLE(ttygid, |
217 | AC_ARG_ENABLE(ttygid, |
222 | [ --enable-ttygid enable tty setting to group named "tty"], |
218 | [ --enable-ttygid enable tty setting to group named "tty"], |
223 | [if test x$enableval = xyes; then |
219 | [if test x$enableval = xyes; then |
… | |
… | |
245 | AC_ARG_ENABLE(xgetdefault, |
241 | AC_ARG_ENABLE(xgetdefault, |
246 | [ --enable-xgetdefault enable resources via X instead of our small version], |
242 | [ --enable-xgetdefault enable resources via X instead of our small version], |
247 | [if test x$enableval = xyes; then |
243 | [if test x$enableval = xyes; then |
248 | AC_DEFINE(USE_XGETDEFAULT, 1, Define if you want to use XGetDefault instead of our internal version) |
244 | AC_DEFINE(USE_XGETDEFAULT, 1, Define if you want to use XGetDefault instead of our internal version) |
249 | fi]) |
245 | fi]) |
|
|
246 | |
|
|
247 | RESFALLBACK=Rxvt |
|
|
248 | AC_ARG_ENABLE(fallback, |
|
|
249 | [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)], |
|
|
250 | [ |
|
|
251 | test x$enableval = xyes && enableval=Rxvt |
|
|
252 | test x$enableval = xno && enableval= |
|
|
253 | RESFALLBACK="$enableval" |
|
|
254 | ]) |
|
|
255 | |
|
|
256 | if test x$RESFALLBACK != x; then |
|
|
257 | AC_DEFINE_UNQUOTED(RESFALLBACK, "$RESFALLBACK", [Fallback resource class]) |
|
|
258 | fi |
|
|
259 | |
|
|
260 | RESNAME=urxvt |
|
|
261 | AC_ARG_WITH(res-name, |
|
|
262 | [ --with-res-name=NAME use this as default resource name (default: urxvt)], |
|
|
263 | [RESNAME="$withval"]) |
|
|
264 | AC_DEFINE_UNQUOTED(RESNAME,"$RESNAME", [Default resource name]) |
|
|
265 | |
|
|
266 | RESCLASS=URxvt |
|
|
267 | AC_ARG_WITH(res-class, |
|
|
268 | [ --with-res-class=CLASS use this as the resource class (default: URxvt)], |
|
|
269 | [RESCLASS="$withval"]) |
|
|
270 | AC_DEFINE_UNQUOTED(RESCLASS,"$RESCLASS", [Resource class]) |
|
|
271 | |
|
|
272 | RXVTNAME=urxvt |
|
|
273 | AC_ARG_WITH(name, |
|
|
274 | [ --with-name=NAME set the basename for the installed binaries (default: urxvt)], |
|
|
275 | [RXVTNAME="$withval"]) |
|
|
276 | |
|
|
277 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
|
|
278 | AC_SUBST(RXVTNAME) |
250 | |
279 | |
251 | AC_ARG_ENABLE(strings, |
280 | AC_ARG_ENABLE(strings, |
252 | [ --enable-strings enable some replacement system functions], |
281 | [ --enable-strings enable some replacement system functions], |
253 | [if test x$enableval = xyes -o x$enableval = xno; then |
282 | [if test x$enableval = xyes -o x$enableval = xno; then |
254 | support_addstrings=$enableval |
283 | support_addstrings=$enableval |
… | |
… | |
362 | [if test x$enableval = xyes -o x$enableval = xno; then |
391 | [if test x$enableval = xyes -o x$enableval = xno; then |
363 | support_pointer_blank=$enableval |
392 | support_pointer_blank=$enableval |
364 | fi]) |
393 | fi]) |
365 | |
394 | |
366 | AC_ARG_WITH(term, |
395 | AC_ARG_WITH(term, |
367 | [ --with-term=NAME set the terminal to NAME (default \"xterm\")], |
396 | [ --with-term=NAME set the terminal to NAME (default: rxvt)], |
368 | [if test x$withval != x; then |
397 | [if test x$withval != x; then |
369 | AC_DEFINE_UNQUOTED(TERMENV, "$withval",Set TERM to the value given by configure) term="$withval" |
398 | AC_DEFINE_UNQUOTED(TERMENV, "$withval",Set TERM to the value given by configure) term="$withval" |
370 | fi]) |
399 | fi]) |
371 | |
400 | |
372 | AC_ARG_WITH(terminfo, |
401 | AC_ARG_WITH(terminfo, |
… | |
… | |
1186 | fi |
1215 | fi |
1187 | if test x$support_scroll_xterm = xyes; then |
1216 | if test x$support_scroll_xterm = xyes; then |
1188 | AC_DEFINE(XTERM_SCROLLBAR, 1, Support Xterm style scrollbars) |
1217 | AC_DEFINE(XTERM_SCROLLBAR, 1, Support Xterm style scrollbars) |
1189 | scrolltypes="$scrolltypes xterm" |
1218 | scrolltypes="$scrolltypes xterm" |
1190 | fi |
1219 | fi |
|
|
1220 | if test x$support_scroll_plain = xyes; then |
|
|
1221 | AC_DEFINE(PLAIN_SCROLLBAR, 1, Support plain style scrollbars) |
|
|
1222 | scrolltypes="$scrolltypes plain" |
|
|
1223 | fi |
1191 | if test x$support_pointer_blank = xyes; then |
1224 | if test x$support_pointer_blank = xyes; then |
1192 | AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing) |
1225 | AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing) |
1193 | fi |
1226 | fi |
1194 | if test x$support_cursor_blink = xyes; then |
1227 | if test x$support_cursor_blink = xyes; then |
1195 | AC_DEFINE(CURSOR_BLINK, 1, Define if you want blinking cursor support) |
1228 | AC_DEFINE(CURSOR_BLINK, 1, Define if you want blinking cursor support) |
… | |
… | |
1202 | fi |
1235 | fi |
1203 | if test x$codesets = xall; then |
1236 | if test x$codesets = xall; then |
1204 | codesets=jp,jp-ext,kr,cn,cn-ext,vn |
1237 | codesets=jp,jp-ext,kr,cn,cn-ext,vn |
1205 | fi |
1238 | fi |
1206 | for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do |
1239 | for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do |
1207 | AC_DEFINE(ENCODING_EU, 1, Define if you want europeean extended codesets) |
1240 | AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) |
|
|
1241 | AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) |
1208 | case "$codeset" in |
1242 | case "$codeset" in |
1209 | VN ) AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) ;; |
|
|
1210 | JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; |
1243 | JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; |
1211 | JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; |
1244 | JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; |
1212 | KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; |
1245 | KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; |
1213 | CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;; |
1246 | CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;; |
1214 | CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;; |
1247 | CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;; |
… | |
… | |
1248 | dnl# common parts of the Makefile |
1281 | dnl# common parts of the Makefile |
1249 | MCOMMON=./autoconf/Make.common |
1282 | MCOMMON=./autoconf/Make.common |
1250 | AC_SUBST_FILE(MCOMMON) |
1283 | AC_SUBST_FILE(MCOMMON) |
1251 | |
1284 | |
1252 | AC_ARG_PROGRAM |
1285 | AC_ARG_PROGRAM |
1253 | |
|
|
1254 | RXVTNAME=`echo rxvt|sed "$program_transform_name"` |
|
|
1255 | AC_SUBST(RXVTNAME) |
|
|
1256 | |
1286 | |
1257 | dnl# test for "sun" or "__sun__" before include sys_ioctl |
1287 | dnl# test for "sun" or "__sun__" before include sys_ioctl |
1258 | |
1288 | |
1259 | dnl# revert HAVE_BLAH_H into a "#include <blah.h>" |
1289 | dnl# revert HAVE_BLAH_H into a "#include <blah.h>" |
1260 | AC_DEFUN(RXVT_DEFINE_TO_INCLUDE, dnl |
1290 | AC_DEFUN(RXVT_DEFINE_TO_INCLUDE, dnl |
… | |
… | |
1304 | echo "Configuration: |
1334 | echo "Configuration: |
1305 | |
1335 | |
1306 | Rxvt version: $VERSION : $DATE |
1336 | Rxvt version: $VERSION : $DATE |
1307 | Source code location: $srcdir |
1337 | Source code location: $srcdir |
1308 | Install path: ${prefix}/bin |
1338 | Install path: ${prefix}/bin |
1309 | Compiler: $CC |
1339 | Compiler: $CXX |
1310 | Compiler flags: $CFLAGS" |
1340 | Compiler flags: $CFLAGS |
|
|
1341 | Linker: $LINKER" |
1311 | |
1342 | |
1312 | if test "$MALLOC_TYPE" = S; then |
1343 | if test "$MALLOC_TYPE" = S; then |
1313 | echo " malloc support: system default" |
1344 | echo " malloc support: system default" |
1314 | fi |
1345 | fi |
1315 | if test "$MALLOC_TYPE" = G; then |
1346 | if test "$MALLOC_TYPE" = G; then |