… | |
… | |
4 | dnl# |
4 | dnl# |
5 | AC_INIT |
5 | AC_INIT |
6 | AC_CONFIG_SRCDIR([src/feature.h]) |
6 | AC_CONFIG_SRCDIR([src/feature.h]) |
7 | AC_CONFIG_AUX_DIR(autoconf) |
7 | AC_CONFIG_AUX_DIR(autoconf) |
8 | AC_CONFIG_HEADER(config.h:autoconf/config.h.in) |
8 | AC_CONFIG_HEADER(config.h:autoconf/config.h.in) |
|
|
9 | |
|
|
10 | AC_CANONICAL_HOST |
9 | |
11 | |
10 | dnl RXVT version |
12 | dnl RXVT version |
11 | changequote(, )dnl |
13 | changequote(, )dnl |
12 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
14 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
13 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
15 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
… | |
… | |
40 | LIBS="$LIBS -lsupc++" |
42 | LIBS="$LIBS -lsupc++" |
41 | ]) |
43 | ]) |
42 | fi |
44 | fi |
43 | AC_SUBST(LINKER,[$LINKER]) |
45 | AC_SUBST(LINKER,[$LINKER]) |
44 | |
46 | |
45 | CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE" |
47 | AC_DEFINE(_GNU_SOURCE, 1, Use all glibc features.) |
|
|
48 | |
|
|
49 | case $host in |
|
|
50 | *-*-solaris* ) |
|
|
51 | AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Needed to get declarations for msg_control and msg_controllen on Solaris) |
|
|
52 | AC_DEFINE(_XOPEN_SOURCE, 2, Needed to get declarations for msg_control and msg_controllen on Solaris) |
|
|
53 | AC_DEFINE(__EXTENSIONS__, 1, Needed to get declarations for msg_control and msg_controllen on Solaris) |
|
|
54 | ;; |
|
|
55 | esac |
46 | |
56 | |
47 | dnl if test x$GXX = xyes; then |
57 | dnl if test x$GXX = xyes; then |
48 | dnl CXXFLAGS="$CXXFLAGS" dnl I once had -fno-exceptions, but I am using them now... |
58 | dnl CXXFLAGS="$CXXFLAGS" dnl I once had -fno-exceptions, but I am using them now... |
49 | dnl fi |
59 | dnl fi |
50 | |
60 | |
… | |
… | |
66 | AC_PROG_LIBTOOL()dnl# libtool |
76 | AC_PROG_LIBTOOL()dnl# libtool |
67 | |
77 | |
68 | MALLOC_TYPE=S |
78 | MALLOC_TYPE=S |
69 | support_addstrings=no |
79 | support_addstrings=no |
70 | support_frills=no |
80 | support_frills=no |
71 | support_linespace=no |
|
|
72 | support_inheritpixmap=no |
81 | support_inheritpixmap=no |
73 | support_tinting=no |
82 | support_tinting=no |
74 | support_fading=no |
83 | support_fading=no |
75 | support_keepscrolling=no |
84 | support_keepscrolling=no |
76 | support_selectionscrolling=no |
85 | support_selectionscrolling=no |
… | |
… | |
112 | NOTE: this option is order dependent |
121 | NOTE: this option is order dependent |
113 | NOTE: automatically enabled with --enable-shared], |
122 | NOTE: automatically enabled with --enable-shared], |
114 | [if test x$enableval = xyes; then |
123 | [if test x$enableval = xyes; then |
115 | support_24bit=yes |
124 | support_24bit=yes |
116 | support_frills=yes |
125 | support_frills=yes |
117 | support_linespace=yes |
|
|
118 | support_inheritpixmap=yes |
126 | support_inheritpixmap=yes |
119 | support_tinting=yes |
127 | support_tinting=yes |
120 | support_fading=yes |
128 | support_fading=yes |
121 | support_keepscrolling=yes |
129 | support_keepscrolling=yes |
122 | support_selectionscrolling=yes |
130 | support_selectionscrolling=yes |
… | |
… | |
245 | [if test x$enableval = xyes; then |
253 | [if test x$enableval = xyes; then |
246 | AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
254 | AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
247 | fi]) |
255 | fi]) |
248 | |
256 | |
249 | AC_ARG_WITH(codesets, |
257 | AC_ARG_WITH(codesets, |
250 | [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)], |
258 | [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
251 | [codesets="$withval"]) |
259 | [codesets="$withval"]) |
252 | |
260 | |
253 | AC_ARG_ENABLE(xim, |
261 | AC_ARG_ENABLE(xim, |
254 | [ --enable-xim XIM (X Input Method) protocol support], |
262 | [ --enable-xim XIM (X Input Method) protocol support], |
255 | [if test x$enableval = xyes -o x$enableval = xno; then |
263 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
319 | |
327 | |
320 | RXVTNAME=urxvt |
328 | RXVTNAME=urxvt |
321 | AC_ARG_WITH(name, |
329 | AC_ARG_WITH(name, |
322 | [ --with-name=NAME set the basename for the installed binaries (default: urxvt)], |
330 | [ --with-name=NAME set the basename for the installed binaries (default: urxvt)], |
323 | [RXVTNAME="$withval"]) |
331 | [RXVTNAME="$withval"]) |
|
|
332 | AC_DEFINE_UNQUOTED(RXVTNAME,"$RXVTNAME", [Binary base name]) |
324 | |
333 | |
325 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
334 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
326 | AC_SUBST(RXVTNAME) |
335 | AC_SUBST(RXVTNAME) |
327 | |
336 | |
328 | AC_ARG_ENABLE(strings, |
337 | AC_ARG_ENABLE(strings, |
… | |
… | |
345 | |
354 | |
346 | AC_ARG_ENABLE(frills, |
355 | AC_ARG_ENABLE(frills, |
347 | [ --enable-frills enable support for rarely used features], |
356 | [ --enable-frills enable support for rarely used features], |
348 | [if test x$enableval = xyes -o x$enableval = xno; then |
357 | [if test x$enableval = xyes -o x$enableval = xno; then |
349 | support_frills=$enableval |
358 | support_frills=$enableval |
350 | fi]) |
|
|
351 | |
|
|
352 | AC_ARG_ENABLE(linespace, |
|
|
353 | [ --enable-linespace enable support for linespace], |
|
|
354 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
355 | support_linespace=$enableval |
|
|
356 | fi]) |
359 | fi]) |
357 | |
360 | |
358 | AC_ARG_ENABLE(24bit, |
361 | AC_ARG_ENABLE(24bit, |
359 | [ --enable-24bit enable support for using 24bit visuals if available], |
362 | [ --enable-24bit enable support for using 24bit visuals if available], |
360 | [if test x$enableval = xyes -o x$enableval = xno; then |
363 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
594 | dnl> AC_CHECK_TYPE(umode_t, int) |
597 | dnl> AC_CHECK_TYPE(umode_t, int) |
595 | dnl> AC_CHECK_TYPE(off_t, long) |
598 | dnl> AC_CHECK_TYPE(off_t, long) |
596 | AC_TYPE_PID_T |
599 | AC_TYPE_PID_T |
597 | AC_TYPE_UID_T |
600 | AC_TYPE_UID_T |
598 | |
601 | |
599 | AC_CHECK_SIZEOF(char, 1) |
|
|
600 | AC_CHECK_SIZEOF(short, 2) |
602 | AC_CHECK_SIZEOF(short, 2) |
601 | AC_CHECK_SIZEOF(int, 4) |
603 | AC_CHECK_SIZEOF(int, 4) |
602 | AC_CHECK_SIZEOF(long, 4) |
604 | dnl AC_CHECK_SIZEOF(long, 4) |
603 | AC_CHECK_SIZEOF(long long, 8) |
605 | AC_CHECK_SIZEOF(long long, 8) |
604 | AC_CHECK_SIZEOF(int *, 4) |
606 | AC_CHECK_SIZEOF(int *, 4) |
605 | |
607 | |
606 | dnl# see usage below |
608 | dnl# see usage below |
607 | AC_DEFUN(RXVT_CHECK_SIZE, |
609 | AC_DEFUN(RXVT_CHECK_SIZE, |
… | |
… | |
1223 | AC_DEFINE(MENUBAR, 1, Define if you want Menubar support) |
1225 | AC_DEFINE(MENUBAR, 1, Define if you want Menubar support) |
1224 | fi |
1226 | fi |
1225 | if test x$support_frills = xyes; then |
1227 | if test x$support_frills = xyes; then |
1226 | AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) |
1228 | AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) |
1227 | fi |
1229 | fi |
1228 | if test x$support_linespace = xno; then |
|
|
1229 | AC_DEFINE(NO_LINESPACE, 1, Define if you don't want support linespace) |
|
|
1230 | fi |
|
|
1231 | if test x$support_24bit = xyes; then |
1230 | if test x$support_24bit = xyes; then |
1232 | 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) |
1231 | 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) |
1233 | fi |
1232 | fi |
1234 | if test x$support_mousewheel = xyes; then |
1233 | if test x$support_mousewheel = xyes; then |
1235 | AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |
1234 | AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |
… | |
… | |
1284 | fi |
1283 | fi |
1285 | if test x$support_combining = xyes; then |
1284 | if test x$support_combining = xyes; then |
1286 | AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters) |
1285 | AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters) |
1287 | fi |
1286 | fi |
1288 | if test x$codesets = xall; then |
1287 | if test x$codesets = xall; then |
1289 | codesets=jp,jp-ext,kr,cn,cn-ext |
1288 | codesets=jp,jp-ext,kr,zh,zh-ext |
1290 | fi |
1289 | fi |
1291 | AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) |
1290 | AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) |
1292 | AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) |
1291 | AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) |
1293 | for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do |
1292 | for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do |
1294 | case "$codeset" in |
1293 | case "$codeset" in |
1295 | JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; |
1294 | JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; |
1296 | JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; |
1295 | JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; |
1297 | KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; |
1296 | KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; |
1298 | CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;; |
1297 | ZH ) AC_DEFINE(ENCODING_ZH, 1, Define if you want chinese codesets) ;; |
1299 | CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;; |
1298 | ZH_EXT ) AC_DEFINE(ENCODING_ZH_EXT, 1, Define if you want extended chinese codesets) ;; |
1300 | esac |
1299 | esac |
1301 | done |
1300 | done |
1302 | |
1301 | |
1303 | dnl> AC_CHECK_FUNCS(gettimeofday putenv select socket) |
1302 | dnl> AC_CHECK_FUNCS(gettimeofday putenv select socket) |
1304 | |
1303 | |