1 | dnl# -*- sh -*- |
1 | dnl# -*- sh -*- |
2 | dnl# |
2 | dnl# |
3 | dnl# Process this file with autoconf to produce a configure script. |
3 | dnl# Process this file with autoconf to produce a configure script. |
4 | dnl# |
4 | dnl# |
|
|
5 | orig_CXXFLAGS="$CXXFLAGS" |
|
|
6 | |
5 | AC_INIT |
7 | AC_INIT |
6 | AC_CONFIG_SRCDIR([src/feature.h]) |
8 | AC_CONFIG_SRCDIR([src/feature.h]) |
7 | AC_CONFIG_AUX_DIR(autoconf) |
9 | AC_CONFIG_AUX_DIR(autoconf) |
8 | AC_CONFIG_HEADER(config.h:autoconf/config.h.in) |
10 | AC_CONFIG_HEADER(config.h:autoconf/config.h.in) |
9 | |
11 | |
… | |
… | |
11 | |
13 | |
12 | dnl RXVT version |
14 | dnl RXVT version |
13 | changequote(, )dnl |
15 | changequote(, )dnl |
14 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
16 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
15 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
17 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
16 | LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
17 | LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
18 | dnl LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
18 | changequote([, ])dnl |
19 | changequote([, ])dnl |
19 | AC_SUBST(VERSION)dnl |
20 | AC_SUBST(VERSION)dnl |
20 | AC_SUBST(DATE)dnl |
21 | AC_SUBST(DATE)dnl |
21 | AC_SUBST(LSMDATE)dnl |
22 | AC_SUBST(LSMDATE)dnl |
22 | AC_SUBST(LIBVERSION)dnl |
23 | AC_SUBST(LIBVERSION)dnl |
… | |
… | |
33 | AC_PROG_INSTALL |
34 | AC_PROG_INSTALL |
34 | AC_PROG_AWK |
35 | AC_PROG_AWK |
35 | |
36 | |
36 | AC_LANG(C) |
37 | AC_LANG(C) |
37 | |
38 | |
|
|
39 | dnl# -------------------------------------------------------------------------- |
|
|
40 | dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure' |
|
|
41 | dnl# |
|
|
42 | if test -z "$orig_CXXFLAGS"; then |
|
|
43 | CXXFLAGS='-O' |
|
|
44 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
45 | CXXFLAGS="-g -O3" |
|
|
46 | fi |
|
|
47 | CFLAGS="$CXXFLAGS" |
|
|
48 | fi |
|
|
49 | |
38 | LINKER="$CXX" |
50 | LINKER="$CXX" |
39 | if test x$GCC = xyes && test x$GXX = xyes; then |
51 | if test x$GCC = xyes && test x$GXX = xyes; then |
40 | AC_CHECK_LIB(supc++, main, [ |
52 | AC_CHECK_LIB(supc++, main, [ |
41 | LINKER="$CC" |
53 | LINKER="$CC" |
42 | LIBS="$LIBS -lsupc++" |
54 | LIBS="$LIBS -lsupc++" |
… | |
… | |
63 | dnl# system hacks |
75 | dnl# system hacks |
64 | AC_AIX |
76 | AC_AIX |
65 | AC_ISC_POSIX |
77 | AC_ISC_POSIX |
66 | |
78 | |
67 | dnl# FreeBSD needs to link libxpg4 |
79 | dnl# FreeBSD needs to link libxpg4 |
68 | AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"]) |
80 | AC_CHECK_FUNC(setlocale, [], [AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])]) |
69 | |
81 | |
70 | dnl solaris needs to link libnsl and socket |
82 | dnl solaris needs to link libnsl and socket |
71 | AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"]) |
83 | AC_CHECK_FUNC(gethostbyname, [], [AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])]) |
72 | AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"]) |
84 | AC_CHECK_FUNC(socket, [], [AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])]) |
73 | |
85 | |
74 | AC_ENABLE_SHARED(no)dnl# libtool |
86 | dnl AC_ENABLE_SHARED(no)dnl# libtool |
75 | AC_ENABLE_STATIC(yes)dnl# libtool |
87 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
76 | AC_PROG_LIBTOOL()dnl# libtool |
88 | dnl AC_PROG_LIBTOOL()dnl# libtool |
77 | |
89 | |
78 | MALLOC_TYPE=S |
90 | MALLOC_TYPE=S |
|
|
91 | |
79 | support_addstrings=no |
92 | support_addstrings=no |
80 | support_frills=no |
93 | support_frills=yes |
81 | support_inheritpixmap=no |
94 | support_inheritpixmap=no |
82 | support_tinting=no |
95 | support_tinting=yes |
83 | support_fading=no |
96 | support_fading=yes |
84 | support_keepscrolling=no |
97 | support_keepscrolling=yes |
85 | support_selectionscrolling=no |
98 | support_selectionscrolling=yes |
86 | support_menubar=no |
99 | support_menubar=no |
87 | support_mousewheel=no |
100 | support_mousewheel=yes |
88 | support_mouseslipwheel=no |
101 | support_mouseslipwheel=yes |
89 | support_utmp=no |
102 | support_utmp=yes |
90 | support_wtmp=no |
103 | support_wtmp=yes |
91 | support_lastlog=no |
104 | support_lastlog=yes |
92 | support_cursor_blink=no |
|
|
93 | support_text_blink=no |
105 | support_text_blink=yes |
94 | support_pointer_blank=no |
106 | support_pointer_blank=yes |
95 | support_scroll_rxvt=no |
107 | support_scroll_rxvt=yes |
96 | support_scroll_next=no |
108 | support_scroll_next=yes |
97 | support_scroll_xterm=no |
109 | support_scroll_xterm=yes |
98 | support_scroll_plain=no |
110 | support_scroll_plain=yes |
99 | support_xim=no |
111 | support_xim=yes |
100 | support_xpm=no |
112 | support_xpm=no |
101 | support_xft=no |
113 | support_xft=yes |
102 | support_unicode3=no |
114 | support_unicode3=no |
103 | support_combining=no |
115 | support_combining=yes |
104 | support_8bitctrls=no |
116 | support_8bitctrls=no |
105 | support_iso14755=no |
117 | support_iso14755=yes |
106 | support_styles=no |
118 | support_styles=yes |
107 | codesets= |
119 | codesets=all |
108 | |
120 | |
109 | dnl# -------------------------------------------------------------------------- |
121 | dnl# -------------------------------------------------------------------------- |
110 | dnl# CHECKING COMMAND LINE OPTIONS |
122 | dnl# CHECKING COMMAND LINE OPTIONS |
111 | dnl# -------------------------------------------------------------------------- |
123 | dnl# -------------------------------------------------------------------------- |
112 | |
124 | |
… | |
… | |
118 | |
130 | |
119 | AC_ARG_ENABLE(everything, |
131 | AC_ARG_ENABLE(everything, |
120 | [ --enable-everything enable standard non-multichoice features |
132 | [ --enable-everything enable standard non-multichoice features |
121 | NOTE: this option is order dependent |
133 | NOTE: this option is order dependent |
122 | NOTE: automatically enabled with --enable-shared], |
134 | NOTE: automatically enabled with --enable-shared], |
|
|
135 | [ |
|
|
136 | if test x$enableval = xno; then |
|
|
137 | support_24bit=no |
|
|
138 | support_frills=no |
|
|
139 | support_inheritpixmap=no |
|
|
140 | support_tinting=no |
|
|
141 | support_fading=no |
|
|
142 | support_keepscrolling=no |
|
|
143 | support_selectionscrolling=no |
|
|
144 | support_lastlog=no |
|
|
145 | support_menubar=no |
|
|
146 | support_mousewheel=no |
|
|
147 | support_mouseslipwheel=no |
|
|
148 | support_text_blink=no |
|
|
149 | support_pointer_blank=no |
|
|
150 | support_scroll_rxvt=no |
|
|
151 | support_scroll_next=no |
|
|
152 | support_scroll_xterm=no |
|
|
153 | support_scroll_plain=no |
|
|
154 | support_utmp=no |
|
|
155 | support_wtmp=no |
|
|
156 | support_xim=no |
|
|
157 | support_xpm=no |
|
|
158 | support_xft=no |
|
|
159 | support_unicode3=no |
|
|
160 | support_combining=no |
|
|
161 | support_8bitctrls=no |
|
|
162 | support_iso14755=no |
|
|
163 | support_styles=no |
|
|
164 | codesets= |
|
|
165 | fi |
123 | [if test x$enableval = xyes; then |
166 | if test x$enableval = xyes; then |
124 | support_24bit=yes |
167 | support_24bit=yes |
125 | support_frills=yes |
168 | support_frills=yes |
126 | support_inheritpixmap=yes |
169 | support_inheritpixmap=yes |
127 | support_tinting=yes |
170 | support_tinting=yes |
128 | support_fading=yes |
171 | support_fading=yes |
129 | support_keepscrolling=yes |
172 | support_keepscrolling=yes |
130 | support_selectionscrolling=yes |
173 | support_selectionscrolling=yes |
131 | support_lastlog=yes |
174 | support_lastlog=yes |
132 | support_menubar=yes |
175 | support_menubar=yes |
133 | support_mousewheel=yes |
176 | support_mousewheel=yes |
134 | support_mouseslipwheel=yes |
177 | support_mouseslipwheel=yes |
135 | support_cursor_blink=yes |
|
|
136 | support_text_blink=yes |
178 | support_text_blink=yes |
137 | support_pointer_blank=yes |
179 | support_pointer_blank=yes |
138 | support_scroll_rxvt=yes |
180 | support_scroll_rxvt=yes |
139 | support_scroll_next=yes |
181 | support_scroll_next=yes |
140 | support_scroll_xterm=yes |
182 | support_scroll_xterm=yes |
141 | support_scroll_plain=yes |
183 | support_scroll_plain=yes |
142 | support_utmp=yes |
184 | support_utmp=yes |
143 | support_wtmp=yes |
185 | support_wtmp=yes |
144 | support_xim=yes |
186 | support_xim=yes |
145 | support_xpm=yes |
187 | support_xpm=yes |
146 | support_xft=yes |
188 | support_xft=yes |
147 | support_unicode3=yes |
189 | support_unicode3=yes |
148 | support_combining=yes |
190 | support_combining=yes |
149 | #support_8bitctrls=yes |
191 | #support_8bitctrls=yes |
150 | support_iso14755=yes |
192 | support_iso14755=yes |
151 | support_styles=yes |
193 | support_styles=yes |
152 | codesets=all |
194 | codesets=all |
|
|
195 | fi |
153 | fi]) |
196 | ]) |
154 | |
197 | |
155 | AC_ARG_ENABLE(unicode3, |
198 | AC_ARG_ENABLE(unicode3, |
156 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
199 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
157 | [if test x$enableval = xyes -o x$enableval = xno; then |
200 | [if test x$enableval = xyes -o x$enableval = xno; then |
158 | support_unicode3=$enableval |
201 | support_unicode3=$enableval |
… | |
… | |
411 | [ --enable-smart-resize enable smart growth/shrink behaviour], |
454 | [ --enable-smart-resize enable smart growth/shrink behaviour], |
412 | [if test x$enableval = xyes; then |
455 | [if test x$enableval = xyes; then |
413 | AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior) |
456 | AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior) |
414 | fi]) |
457 | fi]) |
415 | |
458 | |
416 | AC_ARG_ENABLE(cursor-blink, |
|
|
417 | [ --enable-cursor-blink enable blinking cursor], |
|
|
418 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
419 | support_cursor_blink=$enableval |
|
|
420 | fi]) |
|
|
421 | |
|
|
422 | AC_ARG_ENABLE(text-blink, |
459 | AC_ARG_ENABLE(text-blink, |
423 | [ --enable-text-blink enable blinking text], |
460 | [ --enable-text-blink enable blinking text], |
424 | [if test x$enableval = xyes -o x$enableval = xno; then |
461 | [if test x$enableval = xyes -o x$enableval = xno; then |
425 | support_text_blink=$enableval |
462 | support_text_blink=$enableval |
426 | fi]) |
463 | fi]) |
… | |
… | |
444 | fi]) |
481 | fi]) |
445 | |
482 | |
446 | dnl# -------------------------------------------------------------------------- |
483 | dnl# -------------------------------------------------------------------------- |
447 | |
484 | |
448 | AC_DEFINE(PROTOTYPES, 1, Define if you need function prototypes) |
485 | AC_DEFINE(PROTOTYPES, 1, Define if you need function prototypes) |
449 | |
|
|
450 | dnl# -------------------------------------------------------------------------- |
|
|
451 | dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure' |
|
|
452 | dnl# |
|
|
453 | if test -z "$CFLAGS"; then |
|
|
454 | if test -z "$CCOPTS"; then |
|
|
455 | CCOPTS='-O' |
|
|
456 | dnl> if test "x$GCC" = xyes; then |
|
|
457 | dnl> if test x$system = xLinux; then |
|
|
458 | dnl> CCOPTS="$CCOPTS "'-O2 -fno-strength-reduce' |
|
|
459 | dnl> fi |
|
|
460 | dnl> fi |
|
|
461 | fi |
|
|
462 | CFLAGS="$CCOPTS" |
|
|
463 | fi |
|
|
464 | |
486 | |
465 | AC_PATH_PROG(MV, mv, mv) |
487 | AC_PATH_PROG(MV, mv, mv) |
466 | AC_PATH_PROG(RM, rm, rm) |
488 | AC_PATH_PROG(RM, rm, rm) |
467 | AC_PATH_PROG(CP, cp, cp) |
489 | AC_PATH_PROG(CP, cp, cp) |
468 | AC_PATH_PROG(LN, ln, ln) |
490 | AC_PATH_PROG(LN, ln, ln) |
… | |
… | |
520 | sys/stropts.h \ |
542 | sys/stropts.h \ |
521 | sys/time.h \ |
543 | sys/time.h \ |
522 | utmp.h \ |
544 | utmp.h \ |
523 | utmpx.h \ |
545 | utmpx.h \ |
524 | stdint.h \ |
546 | stdint.h \ |
|
|
547 | pty.h \ |
|
|
548 | wchar.h \ |
|
|
549 | cwchar \ |
|
|
550 | clocale \ |
525 | ) |
551 | ) |
526 | |
552 | |
527 | AC_HEADER_TIME |
553 | AC_HEADER_TIME |
528 | |
554 | |
529 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
555 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
… | |
… | |
607 | |
633 | |
608 | dnl# see usage below |
634 | dnl# see usage below |
609 | AC_DEFUN(RXVT_CHECK_SIZE, |
635 | AC_DEFUN(RXVT_CHECK_SIZE, |
610 | [AC_CACHE_CHECK([for $2], $1, |
636 | [AC_CACHE_CHECK([for $2], $1, |
611 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl |
637 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl |
612 | if test $ac_cv_sizeof_char -ge $3; then |
638 | if test "$ac_cv_sizeof_char" -ge $3; then |
613 | $1="$4 char" |
639 | $1="$4 char" |
614 | else |
640 | else |
615 | if test $ac_cv_sizeof_short -ge $3; then |
641 | if test "$ac_cv_sizeof_short" -ge $3; then |
616 | $1="$4 short" |
642 | $1="$4 short" |
617 | else |
643 | else |
618 | if test $ac_cv_sizeof_int -ge $3; then |
644 | if test "$ac_cv_sizeof_int" -ge $3; then |
619 | $1="$4 int" |
645 | $1="$4 int" |
620 | else |
646 | else |
621 | if test $ac_cv_sizeof_long -ge $3; then |
647 | if test "$ac_cv_sizeof_long" -ge $3; then |
622 | $1="$4 long" |
648 | $1="$4 long" |
623 | else |
649 | else |
624 | if test $ac_cv_sizeof_long_long -ge $3; then |
650 | if test "$ac_cv_sizeof_long_long" -ge $3; then |
625 | $1="$4 long long" |
651 | $1="$4 long long" |
626 | else |
652 | else |
627 | $1="$4 $5" # we _must_ have a (possibly wrong) default |
653 | $1="$4 $5" # we _must_ have a (possibly wrong) default |
628 | fi |
654 | fi |
629 | fi |
655 | fi |
… | |
… | |
656 | dnl RXVT_CHECK_SIZE(rxvt_cv_uint64_t, uint64_t, 8, unsigned, long long, rxvt_uint64_typedef) |
682 | dnl RXVT_CHECK_SIZE(rxvt_cv_uint64_t, uint64_t, 8, unsigned, long long, rxvt_uint64_typedef) |
657 | dnl AC_SUBST(rxvt_uint64_typedef) |
683 | dnl AC_SUBST(rxvt_uint64_typedef) |
658 | dnl# |
684 | dnl# |
659 | dnl# Now look for another we use |
685 | dnl# Now look for another we use |
660 | dnl# |
686 | dnl# |
661 | if test $ac_cv_sizeof_int_p -eq 8; then |
687 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
662 | rxvt_intp_define="#define intp_t int64_t" |
688 | rxvt_intp_define="#define intp_t int64_t" |
663 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
689 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
664 | else |
690 | else |
665 | if test $ac_cv_sizeof_int_p -eq 4; then |
691 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
666 | rxvt_intp_define="#define intp_t int32_t" |
692 | rxvt_intp_define="#define intp_t int32_t" |
667 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
693 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
668 | else |
694 | else |
669 | if test $ac_cv_sizeof_int_p -eq 2; then |
695 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
670 | rxvt_intp_define="#define intp_t int16_t" |
696 | rxvt_intp_define="#define intp_t int16_t" |
671 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
697 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
672 | else |
698 | else |
673 | rxvt_intp_define="#error set intp_t" |
699 | rxvt_intp_define="#error set intp_t" |
674 | rxvt_u_intp_define="#error set u_intp_t" |
700 | rxvt_u_intp_define="#error set u_intp_t" |
… | |
… | |
706 | unlockpt \ |
732 | unlockpt \ |
707 | isastream \ |
733 | isastream \ |
708 | on_exit \ |
734 | on_exit \ |
709 | nanosleep \ |
735 | nanosleep \ |
710 | updwtmp \ |
736 | updwtmp \ |
|
|
737 | updwtmpx \ |
711 | ttyslot \ |
738 | ttyslot \ |
712 | ) |
739 | ) |
713 | dnl# Note: On NetBSD, openpty() exists in libutil. Don't pull it in |
740 | dnl# Note: On NetBSD, openpty() exists in libutil. Don't pull it in |
714 | |
741 | |
715 | dnl# -------------------------------------------------------------------------- |
742 | dnl# -------------------------------------------------------------------------- |
… | |
… | |
758 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
785 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
759 | #include <utmpx.h>]], [[struct utmpx utx; utx.ut_host;]])],[rxvt_cv_struct_utmpx_host=yes],[rxvt_cv_struct_utmpx_host=no])]) |
786 | #include <utmpx.h>]], [[struct utmpx utx; utx.ut_host;]])],[rxvt_cv_struct_utmpx_host=yes],[rxvt_cv_struct_utmpx_host=no])]) |
760 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
787 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
761 | AC_DEFINE(HAVE_UTMPX_HOST, 1, Define if struct utmpx contains ut_host) |
788 | AC_DEFINE(HAVE_UTMPX_HOST, 1, Define if struct utmpx contains ut_host) |
762 | fi |
789 | fi |
|
|
790 | |
|
|
791 | AC_CACHE_CHECK(for session in utmpx struct, rxvt_cv_struct_utmpx_session, |
|
|
792 | [AC_TRY_COMPILE([#include <sys/types.h> |
|
|
793 | #include <utmpx.h>], |
|
|
794 | [struct utmpx utx; utx.ut_session;], |
|
|
795 | rxvt_cv_struct_utmpx_session=yes, rxvt_cv_struct_utmpx_session=no)]) |
|
|
796 | if test x$rxvt_cv_struct_utmpx_session = xyes; then |
|
|
797 | AC_DEFINE(HAVE_UTMPX_SESSION, 1, Define if struct utmpx contains ut_session) |
|
|
798 | fi |
763 | ) dnl# AC_CHECK_HEADER(utmpx.h |
799 | ) dnl# AC_CHECK_HEADER(utmpx.h |
764 | |
|
|
765 | |
800 | |
766 | dnl# -------------------------------------------------------------------------- |
801 | dnl# -------------------------------------------------------------------------- |
767 | dnl# check for struct lastlog |
802 | dnl# check for struct lastlog |
768 | AC_CACHE_CHECK(for struct lastlog, rxvt_cv_struct_lastlog, |
803 | AC_CACHE_CHECK(for struct lastlog, rxvt_cv_struct_lastlog, |
769 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
804 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
… | |
… | |
1079 | |
1114 | |
1080 | AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo, |
1115 | AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo, |
1081 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) |
1116 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) |
1082 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
1117 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
1083 | AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) |
1118 | AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) |
|
|
1119 | fi |
|
|
1120 | |
|
|
1121 | AC_CACHE_CHECK(for unix-compliant filehandle passing ability, rxvt_can_pass_fds, |
|
|
1122 | [AC_TRY_LINK([ |
|
|
1123 | #include <sys/types.h> |
|
|
1124 | #include <sys/socket.h> |
|
|
1125 | ],[ |
|
|
1126 | { |
|
|
1127 | msghdr msg; |
|
|
1128 | iovec iov; |
|
|
1129 | char buf [100]; |
|
|
1130 | char data = 0; |
|
|
1131 | |
|
|
1132 | iov.iov_base = &data; |
|
|
1133 | iov.iov_len = 1; |
|
|
1134 | |
|
|
1135 | msg.msg_iov = &iov; |
|
|
1136 | msg.msg_iovlen = 1; |
|
|
1137 | msg.msg_control = buf; |
|
|
1138 | msg.msg_controllen = sizeof buf; |
|
|
1139 | |
|
|
1140 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
1141 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
1142 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
1143 | cmsg->cmsg_len = 100; |
|
|
1144 | |
|
|
1145 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
1146 | |
|
|
1147 | return sendmsg (3, &msg, 0); |
|
|
1148 | } |
|
|
1149 | ],[rxvt_can_pass_fds=yes],[rxvt_can_pass_fds=no])]) |
|
|
1150 | if test x$rxvt_can_pass_fds = xyes; then |
|
|
1151 | AC_DEFINE(HAVE_UNIX_FDPASS, 1, Define if sys/socket.h defines the necessary macros/functions for file handle passing) |
1084 | fi |
1152 | fi |
1085 | |
1153 | |
1086 | AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb, |
1154 | AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb, |
1087 | [AC_COMPILE_IFELSE([ |
1155 | [AC_COMPILE_IFELSE([ |
1088 | #include <X11/Xlib.h> |
1156 | #include <X11/Xlib.h> |
… | |
… | |
1270 | scrolltypes="$scrolltypes plain" |
1338 | scrolltypes="$scrolltypes plain" |
1271 | fi |
1339 | fi |
1272 | if test x$support_pointer_blank = xyes; then |
1340 | if test x$support_pointer_blank = xyes; then |
1273 | AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing) |
1341 | AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing) |
1274 | fi |
1342 | fi |
1275 | if test x$support_cursor_blink = xyes; then |
|
|
1276 | AC_DEFINE(CURSOR_BLINK, 1, Define if you want blinking cursor support) |
|
|
1277 | fi |
|
|
1278 | if test x$support_text_blink = xyes; then |
1343 | if test x$support_text_blink = xyes; then |
1279 | AC_DEFINE(TEXT_BLINK, 1, Define if you want blinking text support) |
1344 | AC_DEFINE(TEXT_BLINK, 1, Define if you want blinking text support) |
1280 | fi |
1345 | fi |
1281 | if test x$support_unicode3 = xyes; then |
1346 | if test x$support_unicode3 = xyes; then |
1282 | AC_DEFINE(UNICODE_3, 1, Define if you want to represent unicode characters outside plane 0) |
1347 | AC_DEFINE(UNICODE_3, 1, Define if you want to represent unicode characters outside plane 0) |
… | |
… | |
1362 | |
1427 | |
1363 | AC_CONFIG_FILES([autoconf/Make.common \ |
1428 | AC_CONFIG_FILES([autoconf/Make.common \ |
1364 | Makefile \ |
1429 | Makefile \ |
1365 | doc/Makefile \ |
1430 | doc/Makefile \ |
1366 | src/Makefile \ |
1431 | src/Makefile \ |
1367 | src/test/Makefile \ |
|
|
1368 | src/rxvtlib.h \ |
1432 | src/rxvtlib.h \ |
1369 | W11/Makefile \ |
|
|
1370 | ]) |
1433 | ]) |
1371 | AC_OUTPUT |
1434 | AC_OUTPUT |
1372 | |
1435 | |
1373 | echo "Configuration: |
1436 | echo "Configuration: |
1374 | |
1437 | |
… | |
… | |
1444 | echo ". functions could not be found. ." |
1507 | echo ". functions could not be found. ." |
1445 | echo ". XIM is now being DISABLED! ." |
1508 | echo ". XIM is now being DISABLED! ." |
1446 | echo ".----------------------------------------------------------------." |
1509 | echo ".----------------------------------------------------------------." |
1447 | fi |
1510 | fi |
1448 | |
1511 | |
1449 | echo " *** Please check src/feature.h for further options ***" |
1512 | echo " *** Optionally check src/feature.h for further options ***" |
1450 | echo |
1513 | echo |
1451 | |
1514 | |
1452 | echo ".----------------------------------------------------------------." |
1515 | echo ".----------------------------------------------------------------." |
1453 | echo ". NOTE: most features are disabled by default, try ." |
1516 | echo ". NOTE: some features are disabled by default, try ." |
1454 | echo ". configure --help to get an idea of the optional features ." |
1517 | echo ". configure --help to get an idea of the optional features, ." |
|
|
1518 | echo ". or read ./README.configure ." |
|
|
1519 | echo ". ." |
|
|
1520 | echo ". The script ./reconf gives a reasonable baseline, try it if ." |
|
|
1521 | echo ". you do not want to read documentation and still want some ." |
|
|
1522 | echo ". useful features. ." |
1455 | echo ".----------------------------------------------------------------." |
1523 | echo ".----------------------------------------------------------------." |
1456 | echo |
1524 | echo |
1457 | |
1525 | |