| 1 |
ayin |
1.1 |
dnl# |
| 2 |
|
|
dnl# Process this file with autoconf to produce a configure script. |
| 3 |
|
|
dnl# |
| 4 |
|
|
|
| 5 |
|
|
AC_INIT |
| 6 |
|
|
AC_PREREQ(2.50) |
| 7 |
|
|
AC_CONFIG_SRCDIR([src/feature.h]) |
| 8 |
|
|
AC_CONFIG_HEADER(config.h:config.h.in) |
| 9 |
|
|
|
| 10 |
|
|
AC_CANONICAL_HOST |
| 11 |
|
|
|
| 12 |
|
|
dnl RXVT version |
| 13 |
|
|
changequote(, )dnl |
| 14 |
sf-exg |
1.135 |
VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
| 15 |
|
|
DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
| 16 |
ayin |
1.1 |
changequote([, ])dnl |
| 17 |
ayin |
1.40 |
AC_SUBST(VERSION)dnl |
| 18 |
|
|
AC_SUBST(DATE)dnl |
| 19 |
root |
1.83 |
|
| 20 |
ayin |
1.1 |
echo "" |
| 21 |
|
|
echo "configuring for rxvt $VERSION" |
| 22 |
|
|
echo "" |
| 23 |
|
|
|
| 24 |
|
|
orig_CXXFLAGS="$CXXFLAGS" |
| 25 |
|
|
|
| 26 |
|
|
dnl# Checks for programs. |
| 27 |
|
|
AC_PROG_CC |
| 28 |
|
|
AC_PROG_CXX |
| 29 |
|
|
AC_PROG_CPP |
| 30 |
|
|
AC_PROG_INSTALL |
| 31 |
|
|
|
| 32 |
root |
1.9 |
AC_AIX |
| 33 |
ayin |
1.90 |
AC_GNU_SOURCE |
| 34 |
root |
1.9 |
AC_ISC_POSIX |
| 35 |
root |
1.16 |
AC_LANG(C++) |
| 36 |
root |
1.9 |
|
| 37 |
sf-exg |
1.136 |
LINKER="$CXX" |
| 38 |
sf-exg |
1.109 |
dnl check whether we can link with gcc -lsupc++ |
| 39 |
root |
1.9 |
if test x$GCC = xyes && test x$GXX = xyes; then |
| 40 |
root |
1.16 |
dnl FreeBSD (at least up to 5.3) has a broken GCC, workaround it |
| 41 |
|
|
AC_MSG_CHECKING([for working libsupc++]) |
| 42 |
|
|
save_CXX="$CXX" |
| 43 |
|
|
save_LIBS="$LIBS" |
| 44 |
|
|
CXX="$CC" |
| 45 |
|
|
LIBS="$LIBS -lsupc++" |
| 46 |
|
|
AC_LINK_IFELSE( |
| 47 |
root |
1.35 |
[AC_LANG_PROGRAM([struct test { }; void f() try { throw new test; } catch (...) { throw; }],[])], |
| 48 |
sf-exg |
1.136 |
[AC_MSG_RESULT(ok) |
| 49 |
|
|
LINKER="$CC"], |
| 50 |
root |
1.16 |
[ |
| 51 |
root |
1.17 |
AC_MSG_RESULT([no, making everything bigger and slower]) |
| 52 |
root |
1.16 |
LIBS="$save_LIBS" |
| 53 |
|
|
] |
| 54 |
|
|
) |
| 55 |
root |
1.17 |
CXX="$save_CXX" |
| 56 |
root |
1.9 |
fi |
| 57 |
|
|
AC_SUBST(LINKER,[$LINKER]) |
| 58 |
|
|
|
| 59 |
ayin |
1.1 |
dnl# -------------------------------------------------------------------------- |
| 60 |
ayin |
1.12 |
dnl# Supply default CXXFLAGS, if not specified by `CXXFLAGS=flags ./configure' |
| 61 |
ayin |
1.1 |
dnl# |
| 62 |
|
|
if test -z "$orig_CXXFLAGS"; then |
| 63 |
|
|
if test x$GCC = xyes && test "x$GXX" = xyes; then |
| 64 |
root |
1.85 |
CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
| 65 |
root |
1.35 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="-g -O3"]) |
| 66 |
ayin |
1.1 |
else |
| 67 |
|
|
CXXFLAGS="-O" |
| 68 |
|
|
fi |
| 69 |
|
|
CFLAGS="$CXXFLAGS" |
| 70 |
|
|
fi |
| 71 |
|
|
|
| 72 |
|
|
case $host in |
| 73 |
|
|
*-*-solaris* ) |
| 74 |
ayin |
1.55 |
AC_DEFINE(_XOPEN_SOURCE, 500, Needed to get declarations for msg_control and msg_controllen on Solaris) |
| 75 |
ayin |
1.1 |
;; |
| 76 |
|
|
esac |
| 77 |
|
|
|
| 78 |
|
|
dnl# FreeBSD needs to link libxpg4 |
| 79 |
sf-exg |
1.111 |
AC_SEARCH_LIBS(setlocale, xpg4) |
| 80 |
ayin |
1.1 |
|
| 81 |
|
|
dnl# solaris needs to link libnsl and socket |
| 82 |
sf-exg |
1.111 |
AC_SEARCH_LIBS(gethostbyname, nsl) |
| 83 |
|
|
AC_SEARCH_LIBS(socket, socket) |
| 84 |
ayin |
1.1 |
|
| 85 |
|
|
support_frills=yes |
| 86 |
|
|
support_inheritpixmap=yes |
| 87 |
|
|
support_fading=yes |
| 88 |
|
|
support_keepscrolling=yes |
| 89 |
|
|
support_selectionscrolling=yes |
| 90 |
|
|
support_mousewheel=yes |
| 91 |
|
|
support_mouseslipwheel=yes |
| 92 |
|
|
support_text_blink=yes |
| 93 |
|
|
support_pointer_blank=yes |
| 94 |
|
|
support_scroll_rxvt=yes |
| 95 |
|
|
support_scroll_next=yes |
| 96 |
|
|
support_scroll_xterm=yes |
| 97 |
|
|
support_xim=yes |
| 98 |
sf-exg |
1.125 |
support_pixbuf=yes |
| 99 |
mikachu |
1.130 |
support_startup_notification=yes |
| 100 |
ayin |
1.1 |
support_xft=yes |
| 101 |
|
|
support_unicode3=no |
| 102 |
|
|
support_combining=yes |
| 103 |
|
|
support_8bitctrls=no |
| 104 |
|
|
support_iso14755=yes |
| 105 |
|
|
support_styles=yes |
| 106 |
|
|
support_perl=yes |
| 107 |
|
|
codesets=all |
| 108 |
|
|
|
| 109 |
|
|
dnl# -------------------------------------------------------------------------- |
| 110 |
|
|
dnl# CHECKING COMMAND LINE OPTIONS |
| 111 |
|
|
dnl# -------------------------------------------------------------------------- |
| 112 |
|
|
|
| 113 |
|
|
AC_ARG_ENABLE(everything, |
| 114 |
|
|
[ --enable-everything enable standard non-multichoice features |
| 115 |
root |
1.104 |
NOTE: this option is order dependent], |
| 116 |
ayin |
1.1 |
[ |
| 117 |
|
|
if test x$enableval = xno; then |
| 118 |
|
|
support_frills=no |
| 119 |
|
|
support_inheritpixmap=no |
| 120 |
|
|
support_fading=no |
| 121 |
|
|
support_keepscrolling=no |
| 122 |
|
|
support_selectionscrolling=no |
| 123 |
|
|
support_lastlog=no |
| 124 |
|
|
support_mousewheel=no |
| 125 |
|
|
support_mouseslipwheel=no |
| 126 |
|
|
support_text_blink=no |
| 127 |
|
|
support_pointer_blank=no |
| 128 |
|
|
support_scroll_rxvt=no |
| 129 |
|
|
support_scroll_next=no |
| 130 |
|
|
support_scroll_xterm=no |
| 131 |
|
|
support_utmp=no |
| 132 |
|
|
support_wtmp=no |
| 133 |
|
|
support_xim=no |
| 134 |
sf-exg |
1.125 |
support_pixbuf=no |
| 135 |
mikachu |
1.130 |
support_startup_notification=no |
| 136 |
ayin |
1.1 |
support_xft=no |
| 137 |
|
|
support_unicode3=no |
| 138 |
|
|
support_combining=no |
| 139 |
|
|
support_8bitctrls=no |
| 140 |
|
|
support_iso14755=no |
| 141 |
|
|
support_styles=no |
| 142 |
|
|
support_perl=no |
| 143 |
|
|
codesets= |
| 144 |
|
|
fi |
| 145 |
|
|
if test x$enableval = xyes; then |
| 146 |
|
|
support_frills=yes |
| 147 |
|
|
support_inheritpixmap=yes |
| 148 |
|
|
support_fading=yes |
| 149 |
|
|
support_keepscrolling=yes |
| 150 |
|
|
support_selectionscrolling=yes |
| 151 |
|
|
support_lastlog=yes |
| 152 |
|
|
support_mousewheel=yes |
| 153 |
|
|
support_mouseslipwheel=yes |
| 154 |
|
|
support_text_blink=yes |
| 155 |
|
|
support_pointer_blank=yes |
| 156 |
|
|
support_scroll_rxvt=yes |
| 157 |
|
|
support_scroll_next=yes |
| 158 |
|
|
support_scroll_xterm=yes |
| 159 |
|
|
support_utmp=yes |
| 160 |
|
|
support_wtmp=yes |
| 161 |
|
|
support_xim=yes |
| 162 |
sf-exg |
1.125 |
support_pixbuf=yes |
| 163 |
mikachu |
1.130 |
support_startup_notification=yes |
| 164 |
ayin |
1.1 |
support_xft=yes |
| 165 |
|
|
support_unicode3=yes |
| 166 |
|
|
support_combining=yes |
| 167 |
|
|
#support_8bitctrls=yes |
| 168 |
|
|
support_iso14755=yes |
| 169 |
|
|
support_styles=yes |
| 170 |
|
|
support_perl=yes |
| 171 |
|
|
codesets=all |
| 172 |
|
|
fi |
| 173 |
|
|
]) |
| 174 |
|
|
|
| 175 |
sf-exg |
1.133 |
support_assertions=no |
| 176 |
root |
1.106 |
AC_ARG_ENABLE(assert, |
| 177 |
|
|
[ --enable-assert enable assertions], |
| 178 |
|
|
[if test x$enableval = xyes; then |
| 179 |
sf-exg |
1.133 |
support_assertions=yes |
| 180 |
root |
1.106 |
fi]) |
| 181 |
sf-exg |
1.133 |
if test x$support_assertions = xno; then |
| 182 |
root |
1.106 |
AC_DEFINE(NDEBUG, 1, Disable assertions (good for debugging)) |
| 183 |
|
|
fi |
| 184 |
|
|
|
| 185 |
sf-exg |
1.133 |
support_warnings=no |
| 186 |
ayin |
1.78 |
AC_ARG_ENABLE(warnings, |
| 187 |
|
|
[ --enable-warnings turn on g++ warnings], |
| 188 |
|
|
[if test x$enableval = xyes; then |
| 189 |
sf-exg |
1.133 |
support_warnings=yes |
| 190 |
ayin |
1.78 |
fi]) |
| 191 |
|
|
if test x$GXX = xyes; then |
| 192 |
sf-exg |
1.133 |
if test $support_warnings = yes; then |
| 193 |
ayin |
1.78 |
save_CXXFLAGS="$CXXFLAGS" |
| 194 |
sf-exg |
1.134 |
CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value" |
| 195 |
ayin |
1.78 |
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [], [CXXFLAGS="$save_CXXFLAGS"]) |
| 196 |
|
|
else |
| 197 |
|
|
CXXFLAGS="$CXXFLAGS -w" |
| 198 |
|
|
fi |
| 199 |
|
|
fi |
| 200 |
|
|
|
| 201 |
sf-exg |
1.110 |
support_256_color=no |
| 202 |
|
|
AC_ARG_ENABLE(256-color, |
| 203 |
|
|
[ --enable-256-color enable 256-color support], |
| 204 |
|
|
[if test x$enableval = xyes; then |
| 205 |
|
|
support_256_color=yes |
| 206 |
|
|
fi]) |
| 207 |
|
|
if test x$support_256_color = xyes; then |
| 208 |
|
|
AC_DEFINE(USE_256_COLORS, 1, Define if you want 256-color support) |
| 209 |
|
|
fi |
| 210 |
|
|
|
| 211 |
ayin |
1.1 |
AC_ARG_ENABLE(unicode3, |
| 212 |
|
|
[ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
| 213 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 214 |
|
|
support_unicode3=$enableval |
| 215 |
|
|
fi]) |
| 216 |
|
|
|
| 217 |
|
|
AC_ARG_ENABLE(combining, |
| 218 |
|
|
[ --enable-combining enable composition of base and combining characters], |
| 219 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 220 |
|
|
support_combining=$enableval |
| 221 |
|
|
fi]) |
| 222 |
|
|
|
| 223 |
|
|
AC_ARG_ENABLE(xft, |
| 224 |
|
|
[ --enable-xft enable xft support on systems that have it], |
| 225 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 226 |
|
|
support_xft=$enableval |
| 227 |
|
|
fi]) |
| 228 |
|
|
|
| 229 |
|
|
AC_ARG_ENABLE(font-styles, |
| 230 |
|
|
[ --enable-font-styles enable bold and italic support], |
| 231 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 232 |
|
|
support_styles=$enableval |
| 233 |
|
|
fi]) |
| 234 |
|
|
|
| 235 |
sasha |
1.39 |
AC_ARG_ENABLE(afterimage, |
| 236 |
sf-exg |
1.132 |
[ --enable-afterimage enable integration with libAfterImage for background images (deprecated)], |
| 237 |
sasha |
1.39 |
[if test x$enableval = xyes -o x$enableval = xno; then |
| 238 |
|
|
support_afterimage=$enableval |
| 239 |
|
|
fi]) |
| 240 |
|
|
|
| 241 |
ayin |
1.41 |
AC_ARG_WITH(afterimage_config, |
| 242 |
|
|
[ --with-afterimage-config=DIR use libAfterImage config script in DIR], |
| 243 |
ayin |
1.48 |
[if test "x$withval" != x; then |
| 244 |
|
|
afterimage_config=$withval/afterimage-config |
| 245 |
|
|
fi]) |
| 246 |
sasha |
1.39 |
|
| 247 |
sf-exg |
1.115 |
AC_ARG_ENABLE(pixbuf, |
| 248 |
|
|
[ --enable-pixbuf enable integration with gdk-pixbuf for background images], |
| 249 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 250 |
|
|
support_pixbuf=$enableval |
| 251 |
|
|
fi]) |
| 252 |
|
|
|
| 253 |
mikachu |
1.130 |
AC_ARG_ENABLE(startup-notification, |
| 254 |
|
|
[ --enable-startup-notification enable freedesktop startup notification support], |
| 255 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 256 |
|
|
support_startup_notification=$enableval |
| 257 |
|
|
fi]) |
| 258 |
|
|
|
| 259 |
ayin |
1.1 |
AC_ARG_ENABLE(transparency, |
| 260 |
|
|
[ --enable-transparency enable transparent backgrounds], |
| 261 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 262 |
|
|
support_inheritpixmap=$enableval |
| 263 |
|
|
fi]) |
| 264 |
|
|
|
| 265 |
|
|
AC_ARG_ENABLE(fading, |
| 266 |
|
|
[ --enable-fading enable colors fading when off focus], |
| 267 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 268 |
|
|
support_fading=$enableval |
| 269 |
|
|
fi]) |
| 270 |
|
|
|
| 271 |
|
|
AC_ARG_ENABLE(rxvt-scroll, |
| 272 |
|
|
[ --enable-rxvt-scroll enable rxvt style scrollbar], |
| 273 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 274 |
|
|
support_scroll_rxvt=$enableval |
| 275 |
|
|
fi]) |
| 276 |
|
|
|
| 277 |
|
|
AC_ARG_ENABLE(next-scroll, |
| 278 |
|
|
[ --enable-next-scroll enable NeXT style scrollbar], |
| 279 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 280 |
|
|
support_scroll_next=$enableval |
| 281 |
|
|
fi]) |
| 282 |
|
|
|
| 283 |
|
|
AC_ARG_ENABLE(xterm-scroll, |
| 284 |
|
|
[ --enable-xterm-scroll enable Xterm style scrollbar], |
| 285 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 286 |
|
|
support_scroll_xterm=$enableval |
| 287 |
|
|
fi]) |
| 288 |
|
|
|
| 289 |
|
|
AC_ARG_ENABLE(perl, |
| 290 |
|
|
[ --enable-perl enable embedded perl interpreter], |
| 291 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 292 |
|
|
support_perl=$enableval |
| 293 |
|
|
fi]) |
| 294 |
|
|
|
| 295 |
|
|
AC_ARG_WITH(codesets, |
| 296 |
ayin |
1.79 |
[ --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
| 297 |
ayin |
1.1 |
[codesets="$withval"]) |
| 298 |
|
|
|
| 299 |
|
|
AC_ARG_ENABLE(xim, |
| 300 |
|
|
[ --enable-xim XIM (X Input Method) protocol support], |
| 301 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 302 |
|
|
support_xim=$enableval |
| 303 |
|
|
fi]) |
| 304 |
|
|
|
| 305 |
|
|
AC_ARG_ENABLE(backspace-key, |
| 306 |
|
|
[ --disable-backspace-key disable handling of the backspace key], |
| 307 |
|
|
[if test x$enableval = xno; then |
| 308 |
|
|
AC_DEFINE(NO_BACKSPACE_KEY, 1, Define if you don't want support for the backspace key) |
| 309 |
|
|
fi]) |
| 310 |
|
|
|
| 311 |
|
|
AC_ARG_ENABLE(delete-key, |
| 312 |
|
|
[ --disable-delete-key disable handling of the delete key], |
| 313 |
|
|
[if test x$enableval = xno; then |
| 314 |
|
|
AC_DEFINE(NO_DELETE_KEY, 1, Define if you don't want support for the (non-keypad) delete key) |
| 315 |
|
|
fi]) |
| 316 |
|
|
|
| 317 |
|
|
AC_ARG_ENABLE(resources, |
| 318 |
|
|
[ --disable-resources disable all resource checking], |
| 319 |
|
|
[if test x$enableval = xno; then |
| 320 |
|
|
AC_DEFINE(NO_RESOURCES, 1, Define if you don't want any resources read) |
| 321 |
|
|
fi]) |
| 322 |
|
|
|
| 323 |
|
|
AC_ARG_ENABLE(8bitctrls, |
| 324 |
|
|
[ --enable-8bitctrls enable 8 bit control sequences (not recommended)], |
| 325 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 326 |
|
|
support_8bitctrls=$enableval |
| 327 |
|
|
fi]) |
| 328 |
|
|
|
| 329 |
|
|
RESFALLBACK=Rxvt |
| 330 |
|
|
AC_ARG_ENABLE(fallback, |
| 331 |
ayin |
1.77 |
[ --enable-fallback@<:@=CLASS@:>@ fall back on CLASS resources in addition to URxvt ones (default: Rxvt)], |
| 332 |
ayin |
1.1 |
[ |
| 333 |
|
|
test x$enableval = xyes && enableval=Rxvt |
| 334 |
|
|
test x$enableval = xno && enableval= |
| 335 |
|
|
RESFALLBACK="$enableval" |
| 336 |
|
|
]) |
| 337 |
|
|
|
| 338 |
|
|
if test x$RESFALLBACK != x; then |
| 339 |
|
|
AC_DEFINE_UNQUOTED(RESFALLBACK, "$RESFALLBACK", [Fallback resource class]) |
| 340 |
|
|
fi |
| 341 |
|
|
|
| 342 |
|
|
RESNAME=urxvt |
| 343 |
|
|
AC_ARG_WITH(res-name, |
| 344 |
|
|
[ --with-res-name=NAME use this as default resource name (default: urxvt)], |
| 345 |
|
|
[RESNAME="$withval"]) |
| 346 |
|
|
AC_DEFINE_UNQUOTED(RESNAME,"$RESNAME", [Default resource name]) |
| 347 |
|
|
|
| 348 |
|
|
RESCLASS=URxvt |
| 349 |
|
|
AC_ARG_WITH(res-class, |
| 350 |
|
|
[ --with-res-class=CLASS use this as the resource class (default: URxvt)], |
| 351 |
|
|
[RESCLASS="$withval"]) |
| 352 |
|
|
AC_DEFINE_UNQUOTED(RESCLASS,"$RESCLASS", [Resource class]) |
| 353 |
|
|
|
| 354 |
|
|
RXVTNAME=urxvt |
| 355 |
|
|
AC_ARG_WITH(name, |
| 356 |
|
|
[ --with-name=NAME set the basename for the installed binaries (default: urxvt)], |
| 357 |
|
|
[RXVTNAME="$withval"]) |
| 358 |
|
|
AC_DEFINE_UNQUOTED(RXVTNAME,"$RXVTNAME", [Binary base name]) |
| 359 |
|
|
|
| 360 |
|
|
AC_SUBST(RXVTNAME) |
| 361 |
|
|
|
| 362 |
|
|
AC_ARG_ENABLE(swapscreen, |
| 363 |
|
|
[ --disable-swapscreen disable swap screen support], |
| 364 |
|
|
[if test x$enableval = xno; then |
| 365 |
|
|
AC_DEFINE(NO_SECONDARY_SCREEN, 1, Disable the secondary screen. Many programs use the secondary screen as their workplace) |
| 366 |
|
|
fi]) |
| 367 |
|
|
|
| 368 |
|
|
AC_ARG_ENABLE(iso14755, |
| 369 |
|
|
[ --enable-iso14755 enable support for extended ISO 14755 modes], |
| 370 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 371 |
|
|
support_iso14755=$enableval |
| 372 |
|
|
fi]) |
| 373 |
|
|
|
| 374 |
|
|
AC_ARG_ENABLE(frills, |
| 375 |
|
|
[ --enable-frills enable support for rarely used features], |
| 376 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 377 |
|
|
support_frills=$enableval |
| 378 |
|
|
fi]) |
| 379 |
|
|
|
| 380 |
|
|
AC_ARG_ENABLE(keepscrolling, |
| 381 |
|
|
[ --enable-keepscrolling enable continual scrolling on scrollbar arrow press], |
| 382 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 383 |
|
|
support_keepscrolling=$enableval |
| 384 |
|
|
fi]) |
| 385 |
|
|
|
| 386 |
|
|
AC_ARG_ENABLE(selectionscrolling, |
| 387 |
|
|
[ --enable-selectionscrolling enable scrolling during selections], |
| 388 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 389 |
|
|
support_selectionscrolling=$enableval |
| 390 |
|
|
fi]) |
| 391 |
|
|
|
| 392 |
|
|
AC_ARG_ENABLE(mousewheel, |
| 393 |
|
|
[ --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5], |
| 394 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 395 |
|
|
support_mousewheel=$enableval |
| 396 |
|
|
fi]) |
| 397 |
|
|
|
| 398 |
|
|
AC_ARG_ENABLE(slipwheeling, |
| 399 |
ayin |
1.77 |
[ --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)], |
| 400 |
ayin |
1.1 |
[if test x$enableval = xyes -o x$enableval = xno; then |
| 401 |
|
|
support_mouseslipwheel=$enableval |
| 402 |
|
|
fi]) |
| 403 |
|
|
|
| 404 |
|
|
AC_ARG_ENABLE(smart-resize, |
| 405 |
|
|
[ --enable-smart-resize enable smart growth/shrink behaviour], |
| 406 |
|
|
[if test x$enableval = xyes; then |
| 407 |
|
|
AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior) |
| 408 |
|
|
fi]) |
| 409 |
|
|
|
| 410 |
|
|
AC_ARG_ENABLE(text-blink, |
| 411 |
|
|
[ --enable-text-blink enable blinking text], |
| 412 |
|
|
[if test x$enableval = xyes -o x$enableval = xno; then |
| 413 |
|
|
support_text_blink=$enableval |
| 414 |
|
|
fi]) |
| 415 |
|
|
|
| 416 |
|
|
AC_ARG_ENABLE(pointer-blank, |
| 417 |
sf-exg |
1.108 |
[ --enable-pointer-blank enable pointer blanking when typing or inactive], |
| 418 |
ayin |
1.1 |
[if test x$enableval = xyes -o x$enableval = xno; then |
| 419 |
|
|
support_pointer_blank=$enableval |
| 420 |
|
|
fi]) |
| 421 |
|
|
|
| 422 |
|
|
AC_ARG_WITH(term, |
| 423 |
|
|
[ --with-term=NAME set the terminal to NAME (default: rxvt)], |
| 424 |
|
|
[if test x$withval != x; then |
| 425 |
|
|
AC_DEFINE_UNQUOTED(TERMENV, "$withval",Set TERM to the value given by configure) term="$withval" |
| 426 |
|
|
fi]) |
| 427 |
|
|
|
| 428 |
|
|
AC_ARG_WITH(terminfo, |
| 429 |
|
|
[ --with-terminfo=PATH set the path to the terminfo tree to PATH], |
| 430 |
|
|
[if test x$withval != x; then |
| 431 |
|
|
AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
| 432 |
|
|
fi]) |
| 433 |
|
|
|
| 434 |
|
|
dnl# -------------------------------------------------------------------------- |
| 435 |
|
|
|
| 436 |
root |
1.84 |
LIBEV_M4_AVOID_LIBRT=1 |
| 437 |
root |
1.82 |
m4_include([libev/libev.m4]) |
| 438 |
|
|
|
| 439 |
|
|
dnl# -------------------------------------------------------------------------- |
| 440 |
|
|
|
| 441 |
ayin |
1.76 |
AC_PATH_PROG(TIC, tic, :) |
| 442 |
ayin |
1.1 |
|
| 443 |
|
|
AC_PATH_XTRA |
| 444 |
|
|
|
| 445 |
sf-exg |
1.119 |
image_lib=none |
| 446 |
|
|
|
| 447 |
sf-exg |
1.115 |
PIXBUF_CFLAGS= |
| 448 |
|
|
PIXBUF_LIBS= |
| 449 |
|
|
|
| 450 |
|
|
if test x$support_pixbuf = xyes; then |
| 451 |
|
|
support_pixbuf=no |
| 452 |
|
|
AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
| 453 |
|
|
AC_MSG_CHECKING(for gdk-pixbuf) |
| 454 |
sf-exg |
1.122 |
if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
| 455 |
|
|
PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
| 456 |
|
|
PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
| 457 |
sf-exg |
1.115 |
support_pixbuf=yes |
| 458 |
|
|
fi |
| 459 |
|
|
|
| 460 |
|
|
if test x$support_pixbuf = xyes; then |
| 461 |
|
|
AC_MSG_RESULT(ok) |
| 462 |
sf-exg |
1.119 |
image_lib=gdk-pixbuf |
| 463 |
sf-exg |
1.115 |
support_afterimage=no |
| 464 |
|
|
AC_DEFINE(HAVE_PIXBUF, 1, Define if you want to use gdk-pixbuf for image processing) |
| 465 |
|
|
AC_DEFINE(BG_IMAGE_FROM_FILE, 1, Define if you want to have sexy-looking background pixmaps.) |
| 466 |
|
|
else |
| 467 |
|
|
AC_MSG_RESULT(no) |
| 468 |
|
|
fi |
| 469 |
|
|
fi |
| 470 |
|
|
|
| 471 |
|
|
AC_SUBST(PIXBUF_CFLAGS) |
| 472 |
|
|
AC_SUBST(PIXBUF_LIBS) |
| 473 |
|
|
|
| 474 |
mikachu |
1.130 |
STARTUP_NOTIFICATION_CFLAGS= |
| 475 |
|
|
STARTUP_NOTIFICATION_LIBS= |
| 476 |
|
|
|
| 477 |
|
|
if test x$support_startup_notification = xyes; then |
| 478 |
|
|
support_startup_notification=no |
| 479 |
|
|
AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
| 480 |
|
|
AC_MSG_CHECKING(for libstartup-notification) |
| 481 |
|
|
if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
| 482 |
|
|
STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" |
| 483 |
|
|
STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" |
| 484 |
|
|
support_startup_notification=yes |
| 485 |
|
|
fi |
| 486 |
|
|
|
| 487 |
|
|
if test x$support_startup_notification = xyes; then |
| 488 |
|
|
AC_MSG_RESULT(ok) |
| 489 |
|
|
AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, Define if freedesktop startup notifications should be supported) |
| 490 |
|
|
else |
| 491 |
|
|
AC_MSG_RESULT(no) |
| 492 |
|
|
fi |
| 493 |
|
|
fi |
| 494 |
|
|
|
| 495 |
|
|
AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) |
| 496 |
|
|
AC_SUBST(STARTUP_NOTIFICATION_LIBS) |
| 497 |
|
|
|
| 498 |
ayin |
1.65 |
AFTERIMAGE_CFLAGS= |
| 499 |
sasha |
1.39 |
AFTERIMAGE_LIBS= |
| 500 |
|
|
|
| 501 |
ayin |
1.44 |
if test x$support_afterimage = xyes; then |
| 502 |
ayin |
1.42 |
support_afterimage=no |
| 503 |
root |
1.45 |
|
| 504 |
ayin |
1.46 |
if test "x$afterimage_config" = "x" ; then |
| 505 |
ayin |
1.43 |
AC_PATH_PROG(afterimage_config, afterimage-config, no) |
| 506 |
ayin |
1.42 |
fi |
| 507 |
root |
1.69 |
if test "x$afterimage_config" != "xno" ; then |
| 508 |
|
|
AC_MSG_CHECKING(for libAfterImage version >= 1.15) |
| 509 |
sf-exg |
1.131 |
AFTERIMAGE_VERSION=`$afterimage_config --version` |
| 510 |
|
|
if test -n "$AFTERIMAGE_VERSION" ; then |
| 511 |
|
|
AFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
| 512 |
|
|
AFTERIMAGE_LIBS=`$afterimage_config --libs` |
| 513 |
|
|
if test "x$AFTERIMAGE_LIBS" != "x"; then |
| 514 |
|
|
libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .` |
| 515 |
|
|
libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .` |
| 516 |
root |
1.69 |
if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
| 517 |
|
|
support_afterimage=yes |
| 518 |
|
|
fi |
| 519 |
sasha |
1.62 |
fi |
| 520 |
ayin |
1.42 |
fi |
| 521 |
root |
1.69 |
if test "x$support_afterimage" = "xyes"; then |
| 522 |
|
|
AC_MSG_RESULT($AFTERIMAGE_LIBS) |
| 523 |
sf-exg |
1.119 |
image_lib=libafterimage |
| 524 |
sf-exg |
1.114 |
AC_DEFINE(HAVE_AFTERIMAGE, 1, Define if you want to use libAfterImage for image processing) |
| 525 |
|
|
AC_DEFINE(BG_IMAGE_FROM_FILE, 1, Define if you want to have sexy-looking background pixmaps.) |
| 526 |
root |
1.69 |
else |
| 527 |
|
|
AC_MSG_RESULT(no) |
| 528 |
sf-exg |
1.131 |
AFTERIMAGE_CFLAGS= |
| 529 |
|
|
AFTERIMAGE_LIBS= |
| 530 |
root |
1.69 |
fi |
| 531 |
ayin |
1.42 |
fi |
| 532 |
sasha |
1.39 |
fi |
| 533 |
|
|
|
| 534 |
sf-exg |
1.114 |
AC_SUBST(AFTERIMAGE_CFLAGS) |
| 535 |
|
|
AC_SUBST(AFTERIMAGE_LIBS) |
| 536 |
|
|
|
| 537 |
ayin |
1.1 |
dnl# -------------------------------------------------------------------------- |
| 538 |
|
|
dnl# CHECKING FOR HEADER FILES |
| 539 |
|
|
dnl# -------------------------------------------------------------------------- |
| 540 |
|
|
AC_CHECK_HEADERS( \ |
| 541 |
sf-exg |
1.124 |
sys/byteorder.h \ |
| 542 |
ayin |
1.1 |
sys/ioctl.h \ |
| 543 |
|
|
sys/sockio.h \ |
| 544 |
|
|
sys/strredir.h \ |
| 545 |
ayin |
1.14 |
stdint.h \ |
| 546 |
|
|
wchar.h \ |
| 547 |
|
|
cwchar \ |
| 548 |
ayin |
1.1 |
) |
| 549 |
|
|
|
| 550 |
sf-exg |
1.107 |
AC_CACHE_CHECK([for XLIB_ILLEGAL_ACCESS], rxvt_cv_xlib_illegal_access, |
| 551 |
root |
1.35 |
[AC_COMPILE_IFELSE( |
| 552 |
|
|
[AC_LANG_PROGRAM([ |
| 553 |
|
|
#define XLIB_ILLEGAL_ACCESS |
| 554 |
|
|
#include <X11/Xlib.h> |
| 555 |
|
|
],[ |
| 556 |
|
|
Display *dpy; |
| 557 |
|
|
dpy->xdefaults = (char *)0; |
| 558 |
|
|
])], |
| 559 |
sf-exg |
1.107 |
[rxvt_cv_xlib_illegal_access=yes],[rxvt_cv_xlib_illegal_access=no] |
| 560 |
root |
1.35 |
)]) |
| 561 |
sf-exg |
1.107 |
if test x$rxvt_cv_xlib_illegal_access = xyes; then |
| 562 |
root |
1.35 |
AC_DEFINE(XLIB_ILLEGAL_ACCESS, 1, Define ONLY iff Xlib.h supports it) |
| 563 |
|
|
fi |
| 564 |
ayin |
1.1 |
|
| 565 |
|
|
dnl# -------------------------------------------------------------------------- |
| 566 |
|
|
dnl# CHECKING FOR MISSING TYPEDEFS |
| 567 |
|
|
dnl# -------------------------------------------------------------------------- |
| 568 |
|
|
dnl# Missing typedefs and replacements |
| 569 |
|
|
AC_TYPE_MODE_T |
| 570 |
|
|
AC_TYPE_PID_T |
| 571 |
|
|
AC_TYPE_UID_T |
| 572 |
ayin |
1.97 |
AC_TYPE_INT16_T |
| 573 |
|
|
AC_TYPE_UINT16_T |
| 574 |
|
|
AC_TYPE_INT32_T |
| 575 |
|
|
AC_TYPE_UINT32_T |
| 576 |
ayin |
1.1 |
|
| 577 |
|
|
dnl# -------------------------------------------------------------------------- |
| 578 |
|
|
dnl# CHECKING FOR LIBRARY FUNCTIONS |
| 579 |
|
|
dnl# -------------------------------------------------------------------------- |
| 580 |
ayin |
1.80 |
AC_CHECK_FUNCS(unsetenv) |
| 581 |
ayin |
1.1 |
|
| 582 |
ayin |
1.15 |
UTMP_CHECK |
| 583 |
ayin |
1.1 |
|
| 584 |
|
|
dnl# -------------------------------------------------------------------------- |
| 585 |
|
|
|
| 586 |
|
|
dnl# -------------------------------------------------------------------------- |
| 587 |
|
|
dnl# -------------------------------------------------------------------------- |
| 588 |
|
|
|
| 589 |
|
|
dnl# this is a really hack test for some basic Xlocale stuff |
| 590 |
ayin |
1.79 |
save_LIBS=$LIBS |
| 591 |
|
|
save_CFLAGS=$CFLAGS |
| 592 |
ayin |
1.1 |
CFLAGS="$CFLAGS $X_CFLAGS" |
| 593 |
|
|
LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
| 594 |
ayin |
1.54 |
if test x$support_xim = xyes; then |
| 595 |
ayin |
1.74 |
AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, |
| 596 |
sf-exg |
1.129 |
[AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
| 597 |
|
|
#include <X11/Xlib.h> |
| 598 |
ayin |
1.74 |
#include <stdlib.h> |
| 599 |
sf-exg |
1.128 |
int main() { |
| 600 |
sf-exg |
1.129 |
char *p; |
| 601 |
|
|
if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
| 602 |
|
|
exit (XSupportsLocale() ? 0 : 1); |
| 603 |
|
|
else |
| 604 |
|
|
exit (1); |
| 605 |
|
|
} |
| 606 |
|
|
]])],[rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[:])]) |
| 607 |
ayin |
1.54 |
if test x$rxvt_cv_func_xlocale = xyes; then |
| 608 |
|
|
AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input) |
| 609 |
sf-exg |
1.107 |
AC_CACHE_CHECK(for broken XIM callback, rxvt_cv_broken_ximcb, |
| 610 |
sf-exg |
1.127 |
[AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ |
| 611 |
ayin |
1.74 |
#include <X11/Xlib.h> |
| 612 |
|
|
|
| 613 |
|
|
void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
| 614 |
|
|
|
| 615 |
|
|
void f() { |
| 616 |
|
|
XIMCallback cb; |
| 617 |
|
|
cb.callback = im_destroy_cb; |
| 618 |
|
|
} |
| 619 |
sf-exg |
1.127 |
]])],rxvt_cv_broken_ximcb=yes,rxvt_cv_broken_ximcb=no)]) |
| 620 |
ayin |
1.74 |
|
| 621 |
sf-exg |
1.107 |
if test x$rxvt_cv_broken_ximcb = xyes; then |
| 622 |
ayin |
1.74 |
AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) |
| 623 |
|
|
fi |
| 624 |
ayin |
1.54 |
fi |
| 625 |
|
|
fi |
| 626 |
ayin |
1.1 |
|
| 627 |
|
|
AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale, |
| 628 |
|
|
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1 |
| 629 |
|
|
#include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])]) |
| 630 |
|
|
if test x$rxvt_cv_func_xsetlocale = xyes; then |
| 631 |
|
|
AC_DEFINE(HAVE_XSETLOCALE, 1, Define if setlocale (defined to Xsetlocale) works) |
| 632 |
|
|
fi |
| 633 |
ayin |
1.79 |
LIBS=$save_LIBS |
| 634 |
|
|
CFLAGS=$save_CFLAGS |
| 635 |
ayin |
1.1 |
|
| 636 |
|
|
AC_CACHE_CHECK(for working plain setlocale, rxvt_cv_func_setlocale, |
| 637 |
|
|
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <clocale>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_setlocale=yes],[rxvt_cv_func_setlocale=no])]) |
| 638 |
|
|
if test x$rxvt_cv_func_setlocale = xyes; then |
| 639 |
|
|
AC_DEFINE(HAVE_SETLOCALE, 1, Define if plain old setlocale works) |
| 640 |
|
|
fi |
| 641 |
|
|
|
| 642 |
|
|
AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo, |
| 643 |
|
|
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) |
| 644 |
|
|
if test x$rxvt_cv_func_nl_langinfo = xyes; then |
| 645 |
|
|
AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) |
| 646 |
|
|
fi |
| 647 |
|
|
|
| 648 |
ayin |
1.19 |
SCM_RIGHTS_CHECK |
| 649 |
ayin |
1.1 |
|
| 650 |
ayin |
1.15 |
PTY_CHECK |
| 651 |
ayin |
1.1 |
|
| 652 |
ayin |
1.23 |
TTY_GROUP_CHECK |
| 653 |
|
|
|
| 654 |
ayin |
1.1 |
dnl# -------------------------------------------------------------------------- |
| 655 |
|
|
dnl# now add and remove other stuff |
| 656 |
|
|
dnl# -------------------------------------------------------------------------- |
| 657 |
sf-exg |
1.121 |
if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then |
| 658 |
|
|
rxvt_have_xrender=no |
| 659 |
|
|
AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
| 660 |
|
|
if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
| 661 |
|
|
X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
| 662 |
|
|
CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" |
| 663 |
|
|
rxvt_have_xrender=yes |
| 664 |
|
|
|
| 665 |
|
|
save_LIBS="$LIBS" |
| 666 |
|
|
LIBS="$LIBS $X_LIBS" |
| 667 |
|
|
AC_CHECK_HEADER(X11/extensions/Xrender.h,,[rxvt_have_xrender=no]) |
| 668 |
|
|
AC_CHECK_FUNC(XRenderFindStandardFormat,,[rxvt_have_xrender=no]) |
| 669 |
|
|
LIBS="$save_LIBS" |
| 670 |
|
|
fi |
| 671 |
|
|
fi |
| 672 |
|
|
|
| 673 |
|
|
if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
| 674 |
ayin |
1.18 |
AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
| 675 |
|
|
if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
| 676 |
root |
1.83 |
X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
| 677 |
ayin |
1.18 |
CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
| 678 |
|
|
else |
| 679 |
ayin |
1.22 |
AC_PATH_PROG(XFT_CONFIG, xft-config, no) |
| 680 |
ayin |
1.18 |
if test $XFT_CONFIG != no; then |
| 681 |
root |
1.83 |
X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
| 682 |
ayin |
1.18 |
CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
| 683 |
|
|
fi |
| 684 |
|
|
fi |
| 685 |
ayin |
1.1 |
|
| 686 |
sf-exg |
1.121 |
if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then |
| 687 |
|
|
X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS" |
| 688 |
|
|
CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
| 689 |
|
|
fi |
| 690 |
|
|
|
| 691 |
root |
1.83 |
save_LIBS="$LIBS" |
| 692 |
|
|
LIBS="$LIBS $X_LIBS" |
| 693 |
ayin |
1.1 |
AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no]) |
| 694 |
root |
1.83 |
AC_CHECK_LIB(Xft,XftDrawString32,:,[support_xft=no]) |
| 695 |
sf-exg |
1.121 |
AC_CHECK_HEADERS(fontconfig/fontconfig.h,,[support_xft=no]) |
| 696 |
|
|
AC_CHECK_LIB(fontconfig,FcPatternGet,:,[support_xft=no]) |
| 697 |
root |
1.83 |
LIBS="$save_LIBS" |
| 698 |
ayin |
1.1 |
|
| 699 |
|
|
if test x$support_xft = xyes; then |
| 700 |
|
|
AC_DEFINE(XFT, 1, Define to enable xft support) |
| 701 |
|
|
fi |
| 702 |
|
|
fi |
| 703 |
|
|
if test x$support_styles = xyes; then |
| 704 |
|
|
AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support) |
| 705 |
|
|
fi |
| 706 |
|
|
if test x$support_iso14755 = xyes; then |
| 707 |
|
|
AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support) |
| 708 |
|
|
fi |
| 709 |
|
|
if test x$support_8bitctrls = xyes; then |
| 710 |
|
|
AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences) |
| 711 |
|
|
fi |
| 712 |
|
|
if test x$support_fading = xyes; then |
| 713 |
|
|
AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost) |
| 714 |
|
|
fi |
| 715 |
|
|
if test x$support_inheritpixmap = xyes; then |
| 716 |
sf-exg |
1.121 |
if test x$rxvt_have_xrender = xyes; then |
| 717 |
|
|
LIBS="$LIBS -lm" |
| 718 |
|
|
AC_DEFINE(XRENDER, 1, Define to enable xrender support) |
| 719 |
|
|
fi |
| 720 |
root |
1.56 |
AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background) |
| 721 |
ayin |
1.1 |
fi |
| 722 |
|
|
if test x$support_keepscrolling = xno; then |
| 723 |
|
|
AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed) |
| 724 |
|
|
fi |
| 725 |
|
|
if test x$support_selectionscrolling = xyes; then |
| 726 |
|
|
AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen) |
| 727 |
|
|
fi |
| 728 |
ayin |
1.73 |
if test x$support_frills = xyes; then |
| 729 |
|
|
AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) |
| 730 |
|
|
fi |
| 731 |
ayin |
1.1 |
if test x$support_mousewheel = xyes; then |
| 732 |
|
|
AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |
| 733 |
|
|
fi |
| 734 |
|
|
if test x$support_mouseslipwheel = xyes; then |
| 735 |
|
|
AC_DEFINE(MOUSE_SLIP_WHEELING, 1, Define to have CTRL cause wheel events to accelerate scrolling. Release CTRL to halt scrolling) |
| 736 |
|
|
fi |
| 737 |
sasha |
1.39 |
|
| 738 |
ayin |
1.105 |
scrolltypes=plain |
| 739 |
|
|
AC_DEFINE(PLAIN_SCROLLBAR, 1, Support plain style scrollbars) |
| 740 |
|
|
|
| 741 |
ayin |
1.1 |
if test x$support_scroll_rxvt = xyes; then |
| 742 |
|
|
AC_DEFINE(RXVT_SCROLLBAR, 1, Support Rxvt original style scrollbars) |
| 743 |
ayin |
1.105 |
scrolltypes="$scrolltypes rxvt" |
| 744 |
ayin |
1.1 |
fi |
| 745 |
|
|
if test x$support_scroll_next = xyes; then |
| 746 |
|
|
AC_DEFINE(NEXT_SCROLLBAR, 1, Support NeXT style scrollbars) |
| 747 |
|
|
scrolltypes="$scrolltypes next" |
| 748 |
|
|
fi |
| 749 |
|
|
if test x$support_scroll_xterm = xyes; then |
| 750 |
|
|
AC_DEFINE(XTERM_SCROLLBAR, 1, Support Xterm style scrollbars) |
| 751 |
|
|
scrolltypes="$scrolltypes xterm" |
| 752 |
|
|
fi |
| 753 |
|
|
if test x$support_pointer_blank = xyes; then |
| 754 |
sf-exg |
1.117 |
AC_DEFINE(POINTER_BLANK, 1, Define if you want to hide the pointer while typing) |
| 755 |
ayin |
1.1 |
fi |
| 756 |
|
|
if test x$support_text_blink = xyes; then |
| 757 |
|
|
AC_DEFINE(TEXT_BLINK, 1, Define if you want blinking text support) |
| 758 |
|
|
fi |
| 759 |
|
|
if test x$support_unicode3 = xyes; then |
| 760 |
|
|
AC_DEFINE(UNICODE_3, 1, Define if you want to represent unicode characters outside plane 0) |
| 761 |
|
|
fi |
| 762 |
|
|
if test x$support_combining = xyes; then |
| 763 |
|
|
AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters) |
| 764 |
|
|
fi |
| 765 |
|
|
if test x$codesets = xall; then |
| 766 |
|
|
codesets=jp,jp-ext,kr,zh,zh-ext |
| 767 |
|
|
fi |
| 768 |
|
|
AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) |
| 769 |
|
|
AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) |
| 770 |
|
|
for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do |
| 771 |
|
|
case "$codeset" in |
| 772 |
|
|
JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; |
| 773 |
|
|
JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; |
| 774 |
|
|
KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; |
| 775 |
|
|
ZH ) AC_DEFINE(ENCODING_ZH, 1, Define if you want chinese codesets) ;; |
| 776 |
|
|
ZH_EXT ) AC_DEFINE(ENCODING_ZH_EXT, 1, Define if you want extended chinese codesets) ;; |
| 777 |
|
|
esac |
| 778 |
|
|
done |
| 779 |
|
|
|
| 780 |
|
|
IF_PERL=\# |
| 781 |
|
|
if test x$support_perl = xyes; then |
| 782 |
|
|
AC_PATH_PROG(PERL, perl5) |
| 783 |
|
|
AC_PATH_PROG(PERL, perl) |
| 784 |
|
|
|
| 785 |
|
|
AC_MSG_CHECKING(for $PERL suitability) |
| 786 |
|
|
if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
| 787 |
|
|
|
| 788 |
|
|
save_CXXFLAGS="$CXXFLAGS" |
| 789 |
|
|
save_LIBS="$LIBS" |
| 790 |
|
|
CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
| 791 |
|
|
LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
| 792 |
root |
1.100 |
AC_LINK_IFELSE([AC_LANG_PROGRAM([[ |
| 793 |
ayin |
1.1 |
#include <EXTERN.h> |
| 794 |
|
|
#include <perl.h> |
| 795 |
|
|
#include <XSUB.h> |
| 796 |
root |
1.100 |
]], [[ |
| 797 |
ayin |
1.1 |
PerlInterpreter *perl = perl_alloc (); |
| 798 |
root |
1.100 |
]])],[rxvt_perl_link=yes],[rxvt_perl_link=no]) |
| 799 |
ayin |
1.1 |
CXXFLAGS="$save_CXXFLAGS" |
| 800 |
|
|
LIBS="$save_LIBS" |
| 801 |
|
|
|
| 802 |
|
|
if test x$rxvt_perl_link = xyes; then |
| 803 |
|
|
AC_MSG_RESULT(ok) |
| 804 |
|
|
AC_DEFINE(ENABLE_PERL, 1, Define if you can embed a perl interpreter) |
| 805 |
|
|
IF_PERL= |
| 806 |
|
|
PERL_O=rxvtperl.o |
| 807 |
|
|
PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
| 808 |
|
|
PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
| 809 |
|
|
PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
| 810 |
|
|
else |
| 811 |
root |
1.63 |
AC_MSG_ERROR([no, unable to link]) |
| 812 |
ayin |
1.1 |
fi |
| 813 |
|
|
else |
| 814 |
root |
1.63 |
AC_MSG_ERROR([no working perl found, or perl not version >= 5.8]) |
| 815 |
ayin |
1.1 |
fi |
| 816 |
|
|
fi |
| 817 |
|
|
AC_SUBST(PERLLIB) |
| 818 |
|
|
AC_SUBST(PERLFLAGS) |
| 819 |
|
|
AC_SUBST(PERLPRIVLIBEXP) |
| 820 |
|
|
AC_SUBST(PERL) |
| 821 |
|
|
AC_SUBST(IF_PERL) |
| 822 |
|
|
AC_SUBST(PERL_O) |
| 823 |
|
|
|
| 824 |
|
|
|
| 825 |
|
|
AC_CONFIG_FILES([Makefile \ |
| 826 |
|
|
doc/Makefile \ |
| 827 |
|
|
src/Makefile \ |
| 828 |
|
|
]) |
| 829 |
|
|
AC_OUTPUT |
| 830 |
|
|
|
| 831 |
|
|
echo "Configuration: |
| 832 |
|
|
|
| 833 |
|
|
Rxvt version: $VERSION : $DATE |
| 834 |
|
|
Source code location: $srcdir |
| 835 |
|
|
Install path: ${prefix}/bin |
| 836 |
|
|
Compiler: $CXX |
| 837 |
root |
1.36 |
Compiler flags: $CXXFLAGS |
| 838 |
ayin |
1.1 |
Linker: $LINKER" |
| 839 |
|
|
|
| 840 |
|
|
if test x$term != x; then |
| 841 |
|
|
echo " set TERM to: $term" |
| 842 |
|
|
fi |
| 843 |
|
|
if test x$terminfo != x; then |
| 844 |
|
|
echo " set TERMINFO to: $terminfo" |
| 845 |
|
|
fi |
| 846 |
|
|
echo " default resource name: $RESNAME" |
| 847 |
|
|
echo " resource class: $RESCLASS" |
| 848 |
|
|
if test x$RESFALLBACK != x; then |
| 849 |
|
|
echo " resource class fallback: $RESFALLBACK" |
| 850 |
|
|
fi |
| 851 |
|
|
echo |
| 852 |
root |
1.20 |
echo " embedded perl: $support_perl" |
| 853 |
sf-exg |
1.119 |
echo " image library: $image_lib" |
| 854 |
root |
1.20 |
echo |
| 855 |
ayin |
1.1 |
if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
| 856 |
|
|
echo ".----------------------------------------------------------------." |
| 857 |
|
|
echo ". WARNING: --enable-xim was specified however the locale support ." |
| 858 |
|
|
echo ". functions could not be found. ." |
| 859 |
|
|
echo ". XIM is now being DISABLED! ." |
| 860 |
|
|
echo ".----------------------------------------------------------------." |
| 861 |
|
|
fi |
| 862 |
|
|
|
| 863 |
root |
1.32 |
echo "*** Optionally check src/feature.h for further, rarely used options ***" |
| 864 |
ayin |
1.1 |
echo |
| 865 |
|
|
|