… | |
… | |
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 |
… | |
… | |
348 | [ --enable-frills enable support for rarely used features], |
356 | [ --enable-frills enable support for rarely used features], |
349 | [if test x$enableval = xyes -o x$enableval = xno; then |
357 | [if test x$enableval = xyes -o x$enableval = xno; then |
350 | support_frills=$enableval |
358 | support_frills=$enableval |
351 | fi]) |
359 | fi]) |
352 | |
360 | |
353 | AC_ARG_ENABLE(linespace, |
|
|
354 | [ --enable-linespace enable support for linespace], |
|
|
355 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
356 | support_linespace=$enableval |
|
|
357 | fi]) |
|
|
358 | |
|
|
359 | AC_ARG_ENABLE(24bit, |
361 | AC_ARG_ENABLE(24bit, |
360 | [ --enable-24bit enable support for using 24bit visuals if available], |
362 | [ --enable-24bit enable support for using 24bit visuals if available], |
361 | [if test x$enableval = xyes -o x$enableval = xno; then |
363 | [if test x$enableval = xyes -o x$enableval = xno; then |
362 | support_24bit=$enableval |
364 | support_24bit=$enableval |
363 | fi]) |
365 | fi]) |
… | |
… | |
518 | sys/stropts.h \ |
520 | sys/stropts.h \ |
519 | sys/time.h \ |
521 | sys/time.h \ |
520 | utmp.h \ |
522 | utmp.h \ |
521 | utmpx.h \ |
523 | utmpx.h \ |
522 | stdint.h \ |
524 | stdint.h \ |
|
|
525 | pty.h \ |
523 | ) |
526 | ) |
524 | |
527 | |
525 | AC_HEADER_TIME |
528 | AC_HEADER_TIME |
526 | |
529 | |
527 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
530 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
… | |
… | |
1223 | AC_DEFINE(MENUBAR, 1, Define if you want Menubar support) |
1226 | AC_DEFINE(MENUBAR, 1, Define if you want Menubar support) |
1224 | fi |
1227 | fi |
1225 | if test x$support_frills = xyes; then |
1228 | if test x$support_frills = xyes; then |
1226 | AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) |
1229 | AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) |
1227 | fi |
1230 | 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 |
1231 | 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) |
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) |
1233 | fi |
1233 | fi |
1234 | if test x$support_mousewheel = xyes; then |
1234 | if test x$support_mousewheel = xyes; then |
1235 | AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |
1235 | AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |