… | |
… | |
95 | support_combining=yes |
95 | support_combining=yes |
96 | support_8bitctrls=no |
96 | support_8bitctrls=no |
97 | support_iso14755=yes |
97 | support_iso14755=yes |
98 | support_styles=yes |
98 | support_styles=yes |
99 | support_perl=yes |
99 | support_perl=yes |
100 | support_xdbe=yes |
|
|
101 | codesets=all |
100 | codesets=all |
102 | |
101 | |
103 | dnl# -------------------------------------------------------------------------- |
102 | dnl# -------------------------------------------------------------------------- |
104 | dnl# CHECKING COMMAND LINE OPTIONS |
103 | dnl# CHECKING COMMAND LINE OPTIONS |
105 | dnl# -------------------------------------------------------------------------- |
104 | dnl# -------------------------------------------------------------------------- |
… | |
… | |
108 | [ --enable-everything enable standard non-multichoice features |
107 | [ --enable-everything enable standard non-multichoice features |
109 | NOTE: this option is order dependent], |
108 | NOTE: this option is order dependent], |
110 | [ |
109 | [ |
111 | if test x$enableval = xno; then |
110 | if test x$enableval = xno; then |
112 | support_frills=no |
111 | support_frills=no |
113 | support_xdbe=no |
|
|
114 | support_inheritpixmap=no |
112 | support_inheritpixmap=no |
115 | support_fading=no |
113 | support_fading=no |
116 | support_keepscrolling=no |
114 | support_keepscrolling=no |
117 | support_selectionscrolling=no |
115 | support_selectionscrolling=no |
118 | support_lastlog=no |
116 | support_lastlog=no |
… | |
… | |
133 | support_combining=no |
131 | support_combining=no |
134 | support_8bitctrls=no |
132 | support_8bitctrls=no |
135 | support_iso14755=no |
133 | support_iso14755=no |
136 | support_styles=no |
134 | support_styles=no |
137 | support_perl=no |
135 | support_perl=no |
138 | support_xdbe=no |
|
|
139 | codesets= |
136 | codesets= |
140 | fi |
137 | fi |
141 | if test x$enableval = xyes; then |
138 | if test x$enableval = xyes; then |
142 | support_frills=yes |
139 | support_frills=yes |
143 | support_inheritpixmap=yes |
140 | support_inheritpixmap=yes |
… | |
… | |
162 | support_combining=yes |
159 | support_combining=yes |
163 | #support_8bitctrls=yes |
160 | #support_8bitctrls=yes |
164 | support_iso14755=yes |
161 | support_iso14755=yes |
165 | support_styles=yes |
162 | support_styles=yes |
166 | support_perl=yes |
163 | support_perl=yes |
167 | support_xdbe=yes |
|
|
168 | codesets=all |
164 | codesets=all |
169 | fi |
165 | fi |
170 | ]) |
166 | ]) |
171 | |
167 | |
172 | support_assertions=no |
168 | support_assertions=no |
… | |
… | |
414 | [ --with-terminfo=PATH set the path to the terminfo tree to PATH], |
410 | [ --with-terminfo=PATH set the path to the terminfo tree to PATH], |
415 | [if test x$withval != x; then |
411 | [if test x$withval != x; then |
416 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
412 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
417 | fi]) |
413 | fi]) |
418 | |
414 | |
419 | AC_ARG_ENABLE(xdbe, |
|
|
420 | [ --enable-xdbe enable support for double buffering], |
|
|
421 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
422 | support_xdbe=$enableval |
|
|
423 | fi]) |
|
|
424 | |
|
|
425 | dnl# -------------------------------------------------------------------------- |
415 | dnl# -------------------------------------------------------------------------- |
426 | |
416 | |
427 | LIBEV_M4_AVOID_LIBRT=1 |
417 | LIBEV_M4_AVOID_LIBRT=1 |
428 | m4_include([libev/libev.m4]) |
418 | m4_include([libev/libev.m4]) |
429 | |
419 | |
430 | dnl# -------------------------------------------------------------------------- |
420 | dnl# -------------------------------------------------------------------------- |
431 | |
421 | |
432 | AC_PATH_PROG(TIC, tic, :) |
422 | AC_PATH_PROG(TIC, tic, :) |
433 | |
423 | |
434 | AC_PATH_XTRA |
424 | AC_PATH_XTRA |
|
|
425 | |
|
|
426 | image_lib=none |
|
|
427 | |
|
|
428 | PIXBUF_CFLAGS= |
|
|
429 | PIXBUF_LIBS= |
|
|
430 | |
|
|
431 | if test x$support_pixbuf = xyes; then |
|
|
432 | support_pixbuf=no |
|
|
433 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
|
|
434 | AC_MSG_CHECKING(for gdk-pixbuf) |
|
|
435 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
|
|
436 | PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
|
|
437 | PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
|
|
438 | support_pixbuf=yes |
|
|
439 | fi |
|
|
440 | |
|
|
441 | if test x$support_pixbuf = xyes; then |
|
|
442 | AC_MSG_RESULT(ok) |
|
|
443 | image_lib=gdk-pixbuf |
|
|
444 | AC_DEFINE(HAVE_PIXBUF, 1, Define if you want to use gdk-pixbuf for image processing) |
|
|
445 | else |
|
|
446 | AC_MSG_RESULT(no) |
|
|
447 | fi |
|
|
448 | fi |
|
|
449 | |
|
|
450 | AC_SUBST(PIXBUF_CFLAGS) |
|
|
451 | AC_SUBST(PIXBUF_LIBS) |
435 | |
452 | |
436 | STARTUP_NOTIFICATION_CFLAGS= |
453 | STARTUP_NOTIFICATION_CFLAGS= |
437 | STARTUP_NOTIFICATION_LIBS= |
454 | STARTUP_NOTIFICATION_LIBS= |
438 | |
455 | |
439 | if test x$support_startup_notification = xyes; then |
456 | if test x$support_startup_notification = xyes; then |
… | |
… | |
572 | dnl# -------------------------------------------------------------------------- |
589 | dnl# -------------------------------------------------------------------------- |
573 | support_image=no |
590 | support_image=no |
574 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
591 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
575 | support_image=yes |
592 | support_image=yes |
576 | fi |
593 | fi |
577 | if test x$support_xdbe = xyes; then |
|
|
578 | LIBS="$LIBS -lXext" |
|
|
579 | fi |
|
|
580 | |
|
|
581 | if test x$support_xft = xyes || test x$support_image = xyes; then |
594 | if test x$support_xft = xyes || test x$support_image = xyes; then |
582 | rxvt_have_xrender=no |
595 | rxvt_have_xrender=no |
583 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
596 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
584 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
597 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
585 | X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
598 | X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
… | |
… | |
612 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
625 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
613 | fi |
626 | fi |
614 | |
627 | |
615 | save_LIBS="$LIBS" |
628 | save_LIBS="$LIBS" |
616 | LIBS="$LIBS $X_LIBS" |
629 | LIBS="$LIBS $X_LIBS" |
617 | AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no]) |
|
|
618 | AC_CHECK_LIB(Xft,XftDrawString32,:,[support_xft=no]) |
|
|
619 | AC_CHECK_HEADERS(fontconfig/fontconfig.h,,[support_xft=no]) |
630 | AC_CHECK_HEADERS(X11/Xft/Xft.h fontconfig/fontconfig.h,,[support_xft=no]) |
620 | AC_CHECK_LIB(fontconfig,FcPatternGet,:,[support_xft=no]) |
631 | AC_CHECK_FUNCS(XftDrawString32 FcPatternGet,,[support_xft=no]) |
621 | LIBS="$save_LIBS" |
632 | LIBS="$save_LIBS" |
622 | |
633 | |
623 | if test x$support_xft = xyes; then |
634 | if test x$support_xft = xyes; then |
624 | AC_DEFINE(XFT, 1, Define to enable xft support) |
635 | AC_DEFINE(XFT, 1, Define to enable xft support) |
625 | fi |
636 | fi |
626 | fi |
637 | fi |
627 | |
|
|
628 | image_lib=none |
|
|
629 | |
|
|
630 | PIXBUF_CFLAGS= |
|
|
631 | PIXBUF_LIBS= |
|
|
632 | |
638 | |
633 | if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then |
639 | if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then |
634 | LIBS="$LIBS -lm" |
640 | LIBS="$LIBS -lm" |
635 | AC_DEFINE(XRENDER, 1, Define to enable xrender support) |
641 | AC_DEFINE(XRENDER, 1, Define to enable xrender support) |
636 | |
642 | |
637 | if test x$support_inheritpixmap = xyes; then |
643 | if test x$support_inheritpixmap = xyes; then |
638 | AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background) |
644 | AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background) |
639 | fi |
645 | fi |
640 | |
|
|
641 | if test x$support_pixbuf = xyes; then |
|
|
642 | support_pixbuf=no |
|
|
643 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
|
|
644 | AC_MSG_CHECKING(for gdk-pixbuf) |
|
|
645 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
|
|
646 | PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
|
|
647 | PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
|
|
648 | support_pixbuf=yes |
|
|
649 | fi |
|
|
650 | |
|
|
651 | if test x$support_pixbuf = xyes; then |
|
|
652 | AC_MSG_RESULT(ok) |
|
|
653 | image_lib=gdk-pixbuf |
|
|
654 | AC_DEFINE(HAVE_PIXBUF, 1, Define if you want to use gdk-pixbuf for image processing) |
|
|
655 | AC_DEFINE(BG_IMAGE_FROM_FILE, 1, Define if you want to have sexy-looking background pixmaps.) |
|
|
656 | else |
|
|
657 | AC_MSG_RESULT(no) |
|
|
658 | fi |
|
|
659 | fi |
|
|
660 | fi |
646 | fi |
661 | |
647 | |
662 | AC_SUBST(PIXBUF_CFLAGS) |
|
|
663 | AC_SUBST(PIXBUF_LIBS) |
|
|
664 | |
|
|
665 | if test x$support_xdbe = xyes; then |
|
|
666 | AC_DEFINE(ENABLE_XDBE, 1, Define if you want to use XDBE) |
|
|
667 | fi |
|
|
668 | if test x$support_styles = xyes; then |
648 | if test x$support_styles = xyes; then |
669 | AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support) |
649 | AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support) |
670 | fi |
650 | fi |
671 | if test x$support_iso14755 = xyes; then |
651 | if test x$support_iso14755 = xyes; then |
672 | AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support) |
652 | AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support) |