… | |
… | |
92 | |
92 | |
93 | dnl# solaris needs to link libnsl and socket |
93 | dnl# solaris needs to link libnsl and socket |
94 | AC_CHECK_FUNC(gethostbyname, [], [AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])]) |
94 | AC_CHECK_FUNC(gethostbyname, [], [AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])]) |
95 | AC_CHECK_FUNC(socket, [], [AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])]) |
95 | AC_CHECK_FUNC(socket, [], [AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])]) |
96 | |
96 | |
97 | dnl# more solaris |
|
|
98 | AC_CHECK_FUNC(sched_yield, [], [AC_CHECK_LIB(rt, sched_yield, [LIBS="$LIBS -lrt"])]) |
|
|
99 | |
|
|
100 | dnl# sched_yield to improve terminal efficiency |
|
|
101 | AC_MSG_CHECKING(for sched_yield support) |
|
|
102 | AC_TRY_LINK([#include <sched.h>],[sched_yield ()], |
|
|
103 | [AC_MSG_RESULT(yes) |
|
|
104 | AC_DEFINE(HAVE_SCHED_YIELD, 1, Define if you have sched-h and sched_yield)], |
|
|
105 | [AC_MSG_RESULT(no)]) |
|
|
106 | |
|
|
107 | dnl AC_ENABLE_SHARED(no)dnl# libtool |
97 | dnl AC_ENABLE_SHARED(no)dnl# libtool |
108 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
98 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
109 | dnl AC_PROG_LIBTOOL()dnl# libtool |
99 | dnl AC_PROG_LIBTOOL()dnl# libtool |
110 | |
100 | |
111 | support_frills=yes |
101 | support_frills=yes |
… | |
… | |
114 | support_fading=yes |
104 | support_fading=yes |
115 | support_keepscrolling=yes |
105 | support_keepscrolling=yes |
116 | support_selectionscrolling=yes |
106 | support_selectionscrolling=yes |
117 | support_mousewheel=yes |
107 | support_mousewheel=yes |
118 | support_mouseslipwheel=yes |
108 | support_mouseslipwheel=yes |
119 | support_utmp=yes |
|
|
120 | support_wtmp=yes |
|
|
121 | support_lastlog=yes |
|
|
122 | support_text_blink=yes |
109 | support_text_blink=yes |
123 | support_pointer_blank=yes |
110 | support_pointer_blank=yes |
124 | support_scroll_rxvt=yes |
111 | support_scroll_rxvt=yes |
125 | support_scroll_next=yes |
112 | support_scroll_next=yes |
126 | support_scroll_xterm=yes |
113 | support_scroll_xterm=yes |
… | |
… | |
150 | [ --enable-everything enable standard non-multichoice features |
137 | [ --enable-everything enable standard non-multichoice features |
151 | NOTE: this option is order dependent |
138 | NOTE: this option is order dependent |
152 | NOTE: automatically enabled with --enable-shared], |
139 | NOTE: automatically enabled with --enable-shared], |
153 | [ |
140 | [ |
154 | if test x$enableval = xno; then |
141 | if test x$enableval = xno; then |
155 | support_24bit=no |
|
|
156 | support_frills=no |
142 | support_frills=no |
157 | support_inheritpixmap=no |
143 | support_inheritpixmap=no |
158 | support_tinting=no |
144 | support_tinting=no |
159 | support_fading=no |
145 | support_fading=no |
160 | support_keepscrolling=no |
146 | support_keepscrolling=no |
… | |
… | |
180 | support_styles=no |
166 | support_styles=no |
181 | support_perl=no |
167 | support_perl=no |
182 | codesets= |
168 | codesets= |
183 | fi |
169 | fi |
184 | if test x$enableval = xyes; then |
170 | if test x$enableval = xyes; then |
185 | support_24bit=yes |
|
|
186 | support_frills=yes |
171 | support_frills=yes |
187 | support_inheritpixmap=yes |
172 | support_inheritpixmap=yes |
188 | support_tinting=yes |
173 | support_tinting=yes |
189 | support_fading=yes |
174 | support_fading=yes |
190 | support_keepscrolling=yes |
175 | support_keepscrolling=yes |
… | |
… | |
379 | |
364 | |
380 | AC_ARG_ENABLE(frills, |
365 | AC_ARG_ENABLE(frills, |
381 | [ --enable-frills enable support for rarely used features], |
366 | [ --enable-frills enable support for rarely used features], |
382 | [if test x$enableval = xyes -o x$enableval = xno; then |
367 | [if test x$enableval = xyes -o x$enableval = xno; then |
383 | support_frills=$enableval |
368 | support_frills=$enableval |
384 | fi]) |
|
|
385 | |
|
|
386 | AC_ARG_ENABLE(24bit, |
|
|
387 | [ --enable-24bit enable support for using 24bit visuals if available], |
|
|
388 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
389 | support_24bit=$enableval |
|
|
390 | fi]) |
369 | fi]) |
391 | |
370 | |
392 | AC_ARG_ENABLE(keepscrolling, |
371 | AC_ARG_ENABLE(keepscrolling, |
393 | [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press], |
372 | [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press], |
394 | [if test x$enableval = xyes -o x$enableval = xno; then |
373 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
663 | dnl> AC_FUNC_VPRINTF |
642 | dnl> AC_FUNC_VPRINTF |
664 | |
643 | |
665 | AC_CHECK_FUNCS( \ |
644 | AC_CHECK_FUNCS( \ |
666 | unsetenv \ |
645 | unsetenv \ |
667 | setutent \ |
646 | setutent \ |
668 | seteuid \ |
|
|
669 | setresuid \ |
|
|
670 | setreuid \ |
|
|
671 | on_exit \ |
647 | on_exit \ |
672 | ) |
648 | ) |
673 | |
649 | |
674 | UTMP_CHECK |
650 | UTMP_CHECK |
675 | |
651 | |
… | |
… | |
805 | if test x$support_selectionscrolling = xyes; then |
781 | if test x$support_selectionscrolling = xyes; then |
806 | AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen) |
782 | AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen) |
807 | fi |
783 | fi |
808 | if test x$support_frills = xyes; then |
784 | if test x$support_frills = xyes; then |
809 | AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) |
785 | AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features) |
810 | fi |
|
|
811 | if test x$support_24bit = xyes; then |
|
|
812 | 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) |
|
|
813 | fi |
786 | fi |
814 | if test x$support_mousewheel = xyes; then |
787 | if test x$support_mousewheel = xyes; then |
815 | AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |
788 | AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |
816 | fi |
789 | fi |
817 | if test x$support_mouseslipwheel = xyes; then |
790 | if test x$support_mouseslipwheel = xyes; then |
… | |
… | |
1019 | echo ". functions could not be found. ." |
992 | echo ". functions could not be found. ." |
1020 | echo ". XIM is now being DISABLED! ." |
993 | echo ". XIM is now being DISABLED! ." |
1021 | echo ".----------------------------------------------------------------." |
994 | echo ".----------------------------------------------------------------." |
1022 | fi |
995 | fi |
1023 | |
996 | |
1024 | echo " *** Optionally check src/feature.h for further options ***" |
997 | echo "*** Optionally check src/feature.h for further, rarely used options ***" |
1025 | echo |
998 | echo |
1026 | |
999 | |
1027 | echo ".----------------------------------------------------------------." |
1000 | echo ".----------------------------------------------------------------." |
1028 | echo ". NOTE: some features are disabled by default, try ." |
1001 | echo ". NOTE: some features are disabled by default, try ." |
1029 | echo ". configure --help to get an idea of the optional features, ." |
1002 | echo ". configure --help to get an idea of the optional features, ." |