… | |
… | |
95 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
95 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
96 | dnl AC_PROG_LIBTOOL()dnl# libtool |
96 | dnl AC_PROG_LIBTOOL()dnl# libtool |
97 | |
97 | |
98 | support_frills=yes |
98 | support_frills=yes |
99 | support_inheritpixmap=yes |
99 | support_inheritpixmap=yes |
100 | support_tinting=yes |
|
|
101 | support_fading=yes |
100 | support_fading=yes |
102 | support_keepscrolling=yes |
101 | support_keepscrolling=yes |
103 | support_selectionscrolling=yes |
102 | support_selectionscrolling=yes |
104 | support_mousewheel=yes |
103 | support_mousewheel=yes |
105 | support_mouseslipwheel=yes |
104 | support_mouseslipwheel=yes |
… | |
… | |
137 | NOTE: automatically enabled with --enable-shared], |
136 | NOTE: automatically enabled with --enable-shared], |
138 | [ |
137 | [ |
139 | if test x$enableval = xno; then |
138 | if test x$enableval = xno; then |
140 | support_frills=no |
139 | support_frills=no |
141 | support_inheritpixmap=no |
140 | support_inheritpixmap=no |
142 | support_tinting=no |
|
|
143 | support_fading=no |
141 | support_fading=no |
144 | support_keepscrolling=no |
142 | support_keepscrolling=no |
145 | support_selectionscrolling=no |
143 | support_selectionscrolling=no |
146 | support_lastlog=no |
144 | support_lastlog=no |
147 | support_mousewheel=no |
145 | support_mousewheel=no |
… | |
… | |
167 | codesets= |
165 | codesets= |
168 | fi |
166 | fi |
169 | if test x$enableval = xyes; then |
167 | if test x$enableval = xyes; then |
170 | support_frills=yes |
168 | support_frills=yes |
171 | support_inheritpixmap=yes |
169 | support_inheritpixmap=yes |
172 | support_tinting=yes |
|
|
173 | support_fading=yes |
170 | support_fading=yes |
174 | support_keepscrolling=yes |
171 | support_keepscrolling=yes |
175 | support_selectionscrolling=yes |
172 | support_selectionscrolling=yes |
176 | support_lastlog=yes |
173 | support_lastlog=yes |
177 | support_mousewheel=yes |
174 | support_mousewheel=yes |
… | |
… | |
244 | [ --enable-transparency enable transparent backgrounds], |
241 | [ --enable-transparency enable transparent backgrounds], |
245 | [if test x$enableval = xyes -o x$enableval = xno; then |
242 | [if test x$enableval = xyes -o x$enableval = xno; then |
246 | support_inheritpixmap=$enableval |
243 | support_inheritpixmap=$enableval |
247 | fi]) |
244 | fi]) |
248 | |
245 | |
249 | AC_ARG_ENABLE(tinting, |
|
|
250 | [ --enable-tinting enable tinting of transparent bg], |
|
|
251 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
252 | support_tinting=$enableval |
|
|
253 | fi]) |
|
|
254 | |
|
|
255 | AC_ARG_ENABLE(fading, |
246 | AC_ARG_ENABLE(fading, |
256 | [ --enable-fading enable colors fading when off focus], |
247 | [ --enable-fading enable colors fading when off focus], |
257 | [if test x$enableval = xyes -o x$enableval = xno; then |
248 | [if test x$enableval = xyes -o x$enableval = xno; then |
258 | support_fading=$enableval |
249 | support_fading=$enableval |
259 | fi]) |
250 | fi]) |
… | |
… | |
287 | [if test x$enableval = xyes -o x$enableval = xno; then |
278 | [if test x$enableval = xyes -o x$enableval = xno; then |
288 | support_scroll_plain=$enableval |
279 | support_scroll_plain=$enableval |
289 | fi]) |
280 | fi]) |
290 | |
281 | |
291 | AC_ARG_WITH(codesets, |
282 | AC_ARG_WITH(codesets, |
292 | [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
283 | [ --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
293 | [codesets="$withval"]) |
284 | [codesets="$withval"]) |
294 | |
285 | |
295 | AC_ARG_ENABLE(xim, |
286 | AC_ARG_ENABLE(xim, |
296 | [ --enable-xim XIM (X Input Method) protocol support], |
287 | [ --enable-xim XIM (X Input Method) protocol support], |
297 | [if test x$enableval = xyes -o x$enableval = xno; then |
288 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
322 | support_8bitctrls=$enableval |
313 | support_8bitctrls=$enableval |
323 | fi]) |
314 | fi]) |
324 | |
315 | |
325 | RESFALLBACK=Rxvt |
316 | RESFALLBACK=Rxvt |
326 | AC_ARG_ENABLE(fallback, |
317 | AC_ARG_ENABLE(fallback, |
327 | [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)], |
318 | [ --enable-fallback@<:@=CLASS@:>@ fall back on CLASS resources in addition to URxvt ones (default: Rxvt)], |
328 | [ |
319 | [ |
329 | test x$enableval = xyes && enableval=Rxvt |
320 | test x$enableval = xyes && enableval=Rxvt |
330 | test x$enableval = xno && enableval= |
321 | test x$enableval = xno && enableval= |
331 | RESFALLBACK="$enableval" |
322 | RESFALLBACK="$enableval" |
332 | ]) |
323 | ]) |
… | |
… | |
391 | [if test x$enableval = xyes -o x$enableval = xno; then |
382 | [if test x$enableval = xyes -o x$enableval = xno; then |
392 | support_mousewheel=$enableval |
383 | support_mousewheel=$enableval |
393 | fi]) |
384 | fi]) |
394 | |
385 | |
395 | AC_ARG_ENABLE(slipwheeling, |
386 | AC_ARG_ENABLE(slipwheeling, |
396 | [ --enable-slipwheeling enable slip wheel scrolling (requires previous)], |
387 | [ --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)], |
397 | [if test x$enableval = xyes -o x$enableval = xno; then |
388 | [if test x$enableval = xyes -o x$enableval = xno; then |
398 | support_mouseslipwheel=$enableval |
389 | support_mouseslipwheel=$enableval |
399 | fi]) |
390 | fi]) |
400 | |
391 | |
401 | AC_ARG_ENABLE(smart-resize, |
392 | AC_ARG_ENABLE(smart-resize, |
… | |
… | |
428 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
419 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
429 | fi]) |
420 | fi]) |
430 | |
421 | |
431 | dnl# -------------------------------------------------------------------------- |
422 | dnl# -------------------------------------------------------------------------- |
432 | |
423 | |
433 | AC_PATH_PROG(TIC, tic) |
424 | AC_PATH_PROG(TIC, tic, :) |
434 | |
425 | |
435 | dnl# need a neat way to detect SVR4 or its features |
426 | dnl# need a neat way to detect SVR4 or its features |
436 | dnl# in src/command.c we use these functions: |
427 | dnl# in src/command.c we use these functions: |
437 | dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> |
428 | dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> |
438 | dnl# - but are these also defined for other systems? |
429 | dnl# - but are these also defined for other systems? |
… | |
… | |
668 | dnl# this is a really hack test for some basic Xlocale stuff |
659 | dnl# this is a really hack test for some basic Xlocale stuff |
669 | ac_save_LIBS=$LIBS |
660 | ac_save_LIBS=$LIBS |
670 | ac_save_CFLAGS=$CFLAGS |
661 | ac_save_CFLAGS=$CFLAGS |
671 | CFLAGS="$CFLAGS $X_CFLAGS" |
662 | CFLAGS="$CFLAGS $X_CFLAGS" |
672 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
663 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
673 | AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, |
|
|
674 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <X11/Xlib.h> |
|
|
675 | #include <stdlib.h> |
|
|
676 | main() { |
|
|
677 | char *p; |
|
|
678 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
679 | exit (XSupportsLocale() ? 0 : 1); |
|
|
680 | else |
|
|
681 | exit (1);}]])],[dnl |
|
|
682 | rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl |
|
|
683 | :])]) |
|
|
684 | if test x$support_xim = xyes; then |
664 | if test x$support_xim = xyes; then |
|
|
665 | AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, |
|
|
666 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <X11/Xlib.h> |
|
|
667 | #include <stdlib.h> |
|
|
668 | main() { |
|
|
669 | char *p; |
|
|
670 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
671 | exit (XSupportsLocale() ? 0 : 1); |
|
|
672 | else |
|
|
673 | exit (1);}]])],[dnl |
|
|
674 | rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl |
|
|
675 | :])]) |
685 | if test x$rxvt_cv_func_xlocale = xyes; then |
676 | if test x$rxvt_cv_func_xlocale = xyes; then |
686 | AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input) |
677 | AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input) |
|
|
678 | AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb, |
|
|
679 | [AC_COMPILE_IFELSE([ |
|
|
680 | #include <X11/Xlib.h> |
|
|
681 | |
|
|
682 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
683 | |
|
|
684 | void f() { |
|
|
685 | XIMCallback cb; |
|
|
686 | cb.callback = im_destroy_cb; |
|
|
687 | } |
|
|
688 | ],rxvt_broken_ximcb=yes,rxvt_broken_ximcb=no)]) |
|
|
689 | |
|
|
690 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
691 | AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) |
|
|
692 | fi |
687 | fi |
693 | fi |
688 | fi |
694 | fi |
689 | |
695 | |
690 | AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale, |
696 | AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale, |
691 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1 |
697 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1 |
… | |
… | |
707 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
713 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
708 | AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) |
714 | AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) |
709 | fi |
715 | fi |
710 | |
716 | |
711 | SCM_RIGHTS_CHECK |
717 | SCM_RIGHTS_CHECK |
712 | |
|
|
713 | AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb, |
|
|
714 | [AC_COMPILE_IFELSE([ |
|
|
715 | #include <X11/Xlib.h> |
|
|
716 | |
|
|
717 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
718 | |
|
|
719 | void f() { |
|
|
720 | XIMCallback cb; |
|
|
721 | cb.callback = im_destroy_cb; |
|
|
722 | } |
|
|
723 | ],rxvt_broken_ximcb=yes,rxvt_broken_ximcb=no)]) |
|
|
724 | |
|
|
725 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
726 | AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) |
|
|
727 | fi |
|
|
728 | |
718 | |
729 | PTY_CHECK |
719 | PTY_CHECK |
730 | |
720 | |
731 | TTY_GROUP_CHECK |
721 | TTY_GROUP_CHECK |
732 | |
722 | |
… | |
… | |
763 | AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences) |
753 | AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences) |
764 | fi |
754 | fi |
765 | if test x$support_fading = xyes; then |
755 | if test x$support_fading = xyes; then |
766 | AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost) |
756 | AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost) |
767 | fi |
757 | fi |
768 | if test x$support_tinting = xyes; then |
|
|
769 | AC_DEFINE(TINTING, 1, Define if you want your background to be tinted) |
|
|
770 | fi |
|
|
771 | if test x$support_inheritpixmap = xyes; then |
758 | if test x$support_inheritpixmap = xyes; then |
772 | AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background) |
759 | AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background) |
773 | fi |
760 | fi |
774 | if test x$support_keepscrolling = xno; then |
761 | if test x$support_keepscrolling = xno; then |
775 | AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed) |
762 | AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed) |
776 | fi |
763 | fi |
777 | if test x$support_selectionscrolling = xyes; then |
764 | if test x$support_selectionscrolling = xyes; then |
778 | AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen) |
765 | AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen) |
779 | fi |
766 | fi |
|
|
767 | if test x$support_frills = xyes; then |
|
|
768 | AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) |
|
|
769 | fi |
780 | if test x$support_mousewheel = xyes; then |
770 | if test x$support_mousewheel = xyes; then |
781 | AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |
771 | AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |
782 | fi |
772 | fi |
783 | if test x$support_mouseslipwheel = xyes; then |
773 | if test x$support_mouseslipwheel = xyes; then |
784 | AC_DEFINE(MOUSE_SLIP_WHEELING, 1, Define to have CTRL cause wheel events to accelerate scrolling. Release CTRL to halt scrolling) |
774 | AC_DEFINE(MOUSE_SLIP_WHEELING, 1, Define to have CTRL cause wheel events to accelerate scrolling. Release CTRL to halt scrolling) |
785 | fi |
775 | fi |
786 | if test x$support_afterimage = xyes; then |
776 | if test x$support_afterimage = xyes; then |
787 | AC_DEFINE(HAVE_AFTERIMAGE, 1, Define if you want to use libAfterImage for image processing) |
777 | AC_DEFINE(HAVE_AFTERIMAGE, 1, Define if you want to use libAfterImage for image processing) |
788 | AC_DEFINE(XPM_BACKGROUND, 1, Define if you want to have sexy-looking background pixmaps. Needs libAfterImage) |
778 | AC_DEFINE(BG_IMAGE_FROM_FILE, 1, Define if you want to have sexy-looking background pixmaps. Needs libAfterImage) |
789 | fi |
779 | fi |
790 | |
780 | |
791 | dnl if test x$support_afterstep = xyes; then |
781 | dnl if test x$support_afterstep = xyes; then |
792 | dnl AC_DEFINE(AFTERSTEP_INTEGRATION, 1, Define if you want to integrate with AfterStep window manager) |
782 | dnl AC_DEFINE(AFTERSTEP_INTEGRATION, 1, Define if you want to integrate with AfterStep window manager) |
793 | dnl fi |
783 | dnl fi |
… | |
… | |
877 | AC_SUBST(PERLPRIVLIBEXP) |
867 | AC_SUBST(PERLPRIVLIBEXP) |
878 | AC_SUBST(PERL) |
868 | AC_SUBST(PERL) |
879 | AC_SUBST(IF_PERL) |
869 | AC_SUBST(IF_PERL) |
880 | AC_SUBST(PERL_O) |
870 | AC_SUBST(PERL_O) |
881 | |
871 | |
882 | if test x$support_perl = xyes; then |
|
|
883 | support_frills=yes |
|
|
884 | fi |
|
|
885 | |
|
|
886 | if test x$support_frills = xyes; then |
|
|
887 | AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) |
|
|
888 | fi |
|
|
889 | |
|
|
890 | AC_SUBST(CFLAGS) |
872 | AC_SUBST(CFLAGS) |
891 | AC_SUBST(CPPFLAGS) |
873 | AC_SUBST(CPPFLAGS) |
892 | AC_SUBST(LDFLAGS) |
874 | AC_SUBST(LDFLAGS) |
893 | AC_SUBST(X_CFLAGS) |
875 | AC_SUBST(X_CFLAGS) |
894 | |
876 | |
… | |
… | |
941 | Install path: ${prefix}/bin |
923 | Install path: ${prefix}/bin |
942 | Compiler: $CXX |
924 | Compiler: $CXX |
943 | Compiler flags: $CXXFLAGS |
925 | Compiler flags: $CXXFLAGS |
944 | Linker: $LINKER" |
926 | Linker: $LINKER" |
945 | |
927 | |
946 | if test x$support_afterimage = xyes; then |
|
|
947 | echo " AfterImage support: yes" |
|
|
948 | fi |
|
|
949 | |
|
|
950 | dnl if test x$support_afterstep = xyes; then |
|
|
951 | dnl echo " AfterStep integration: yes" |
|
|
952 | dnl fi |
|
|
953 | |
|
|
954 | if test x$term != x; then |
928 | if test x$term != x; then |
955 | echo " set TERM to: $term" |
929 | echo " set TERM to: $term" |
956 | fi |
930 | fi |
957 | if test x$terminfo != x; then |
931 | if test x$terminfo != x; then |
958 | echo " set TERMINFO to: $terminfo" |
932 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
963 | echo " resource class fallback: $RESFALLBACK" |
937 | echo " resource class fallback: $RESFALLBACK" |
964 | fi |
938 | fi |
965 | echo |
939 | echo |
966 | echo " embedded perl: $support_perl" |
940 | echo " embedded perl: $support_perl" |
967 | echo " libafterimage: $support_afterimage" |
941 | echo " libafterimage: $support_afterimage" |
|
|
942 | dnl echo " AfterStep integration: $support_afterstep" |
968 | echo |
943 | echo |
969 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
944 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
970 | echo ".----------------------------------------------------------------." |
945 | echo ".----------------------------------------------------------------." |
971 | echo ". WARNING: --enable-xim was specified however the locale support ." |
946 | echo ". WARNING: --enable-xim was specified however the locale support ." |
972 | echo ". functions could not be found. ." |
947 | echo ". functions could not be found. ." |