… | |
… | |
891 | --disable-backspace-key disable handling of the backspace key |
891 | --disable-backspace-key disable handling of the backspace key |
892 | --disable-delete-key disable handling of the delete key |
892 | --disable-delete-key disable handling of the delete key |
893 | --disable-resources disable all resource checking |
893 | --disable-resources disable all resource checking |
894 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
894 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
895 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
895 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
896 | --enable-strings enable some replacement system functions |
|
|
897 | --disable-swapscreen disable swap screen support |
896 | --disable-swapscreen disable swap screen support |
898 | --enable-iso14755 enable support for extended ISO 14755 modes |
897 | --enable-iso14755 enable support for extended ISO 14755 modes |
899 | --enable-frills enable support for rarely used features |
898 | --enable-frills enable support for rarely used features |
900 | --enable-24bit enable support for using 24bit visuals if available |
899 | --enable-24bit enable support for using 24bit visuals if available |
901 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
900 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
… | |
… | |
4317 | conftest$ac_exeext conftest.$ac_ext |
4316 | conftest$ac_exeext conftest.$ac_ext |
4318 | |
4317 | |
4319 | |
4318 | |
4320 | MALLOC_TYPE=S |
4319 | MALLOC_TYPE=S |
4321 | |
4320 | |
4322 | support_addstrings=no |
|
|
4323 | support_frills=yes |
4321 | support_frills=yes |
4324 | support_inheritpixmap=yes |
4322 | support_inheritpixmap=yes |
4325 | support_tinting=yes |
4323 | support_tinting=yes |
4326 | support_fading=yes |
4324 | support_fading=yes |
4327 | support_keepscrolling=yes |
4325 | support_keepscrolling=yes |
… | |
… | |
4707 | |
4705 | |
4708 | |
4706 | |
4709 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
4707 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
4710 | |
4708 | |
4711 | |
4709 | |
4712 | # Check whether --enable-strings or --disable-strings was given. |
|
|
4713 | if test "${enable_strings+set}" = set; then |
|
|
4714 | enableval="$enable_strings" |
|
|
4715 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4716 | support_addstrings=$enableval |
|
|
4717 | fi |
|
|
4718 | fi; |
|
|
4719 | |
|
|
4720 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
4710 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
4721 | if test "${enable_swapscreen+set}" = set; then |
4711 | if test "${enable_swapscreen+set}" = set; then |
4722 | enableval="$enable_swapscreen" |
4712 | enableval="$enable_swapscreen" |
4723 | if test x$enableval = xno; then |
4713 | if test x$enableval = xno; then |
4724 | |
4714 | |
… | |
… | |
10194 | seteuid \ |
10184 | seteuid \ |
10195 | setreuid \ |
10185 | setreuid \ |
10196 | setsid \ |
10186 | setsid \ |
10197 | setpgrp \ |
10187 | setpgrp \ |
10198 | setpgid \ |
10188 | setpgid \ |
10199 | openpty \ |
|
|
10200 | _getpty \ |
10189 | _getpty \ |
|
|
10190 | posix_openpt \ |
10201 | grantpt \ |
10191 | grantpt \ |
10202 | unlockpt \ |
10192 | unlockpt \ |
10203 | isastream \ |
10193 | isastream \ |
10204 | on_exit \ |
10194 | on_exit \ |
10205 | nanosleep \ |
10195 | nanosleep \ |
… | |
… | |
11986 | #define XIMCB_PROTO_BROKEN 1 |
11976 | #define XIMCB_PROTO_BROKEN 1 |
11987 | _ACEOF |
11977 | _ACEOF |
11988 | |
11978 | |
11989 | fi |
11979 | fi |
11990 | |
11980 | |
|
|
11981 | if test x$ac_cv_func_posix_openpt = xno; then |
11991 | echo "$as_me:$LINENO: checking for getpt" >&5 |
11982 | echo "$as_me:$LINENO: checking for openpty" >&5 |
11992 | echo $ECHO_N "checking for getpt... $ECHO_C" >&6 |
11983 | echo $ECHO_N "checking for openpty... $ECHO_C" >&6 |
11993 | if test "${rxvt_cv_func_getpt+set}" = set; then |
11984 | if test "${ac_cv_func_openpty+set}" = set; then |
11994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11995 | else |
11986 | else |
11996 | cat >conftest.$ac_ext <<_ACEOF |
11987 | cat >conftest.$ac_ext <<_ACEOF |
11997 | /* confdefs.h. */ |
11988 | /* confdefs.h. */ |
11998 | _ACEOF |
11989 | _ACEOF |
11999 | cat confdefs.h >>conftest.$ac_ext |
11990 | cat confdefs.h >>conftest.$ac_ext |
12000 | cat >>conftest.$ac_ext <<_ACEOF |
11991 | cat >>conftest.$ac_ext <<_ACEOF |
12001 | /* end confdefs.h. */ |
11992 | /* end confdefs.h. */ |
12002 | #define _GNU_SOURCE |
11993 | /* Define openpty to an innocuous variant, in case <limits.h> declares openpty. |
12003 | #ifdef HAVE_STDLIB_H |
11994 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
12004 | # include <cstdlib> |
11995 | #define openpty innocuous_openpty |
|
|
11996 | |
|
|
11997 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
11998 | which can conflict with char openpty (); below. |
|
|
11999 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12000 | <limits.h> exists even on freestanding compilers. */ |
|
|
12001 | |
|
|
12002 | #ifdef __STDC__ |
|
|
12003 | # include <limits.h> |
|
|
12004 | #else |
|
|
12005 | # include <assert.h> |
12005 | #endif |
12006 | #endif |
|
|
12007 | |
|
|
12008 | #undef openpty |
|
|
12009 | |
|
|
12010 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12011 | #ifdef __cplusplus |
|
|
12012 | extern "C" |
|
|
12013 | { |
|
|
12014 | #endif |
|
|
12015 | /* We use char because int might match the return type of a gcc2 |
|
|
12016 | builtin and then its argument prototype would still apply. */ |
|
|
12017 | char openpty (); |
|
|
12018 | /* The GNU C library defines this for functions which it implements |
|
|
12019 | to always fail with ENOSYS. Some functions are actually named |
|
|
12020 | something starting with __ and the normal name is an alias. */ |
|
|
12021 | #if defined (__stub_openpty) || defined (__stub___openpty) |
|
|
12022 | choke me |
|
|
12023 | #else |
|
|
12024 | char (*f) () = openpty; |
|
|
12025 | #endif |
|
|
12026 | #ifdef __cplusplus |
|
|
12027 | } |
|
|
12028 | #endif |
|
|
12029 | |
12006 | int |
12030 | int |
12007 | main () |
12031 | main () |
12008 | { |
12032 | { |
12009 | (void)getpt(); |
12033 | return f != openpty; |
12010 | ; |
12034 | ; |
12011 | return 0; |
12035 | return 0; |
12012 | } |
12036 | } |
12013 | _ACEOF |
12037 | _ACEOF |
12014 | rm -f conftest.$ac_objext conftest$ac_exeext |
12038 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
12030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12031 | (eval $ac_try) 2>&5 |
12055 | (eval $ac_try) 2>&5 |
12032 | ac_status=$? |
12056 | ac_status=$? |
12033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12034 | (exit $ac_status); }; }; then |
12058 | (exit $ac_status); }; }; then |
12035 | rxvt_cv_func_getpt=yes |
12059 | ac_cv_func_openpty=yes |
12036 | else |
12060 | else |
12037 | echo "$as_me: failed program was:" >&5 |
12061 | echo "$as_me: failed program was:" >&5 |
12038 | sed 's/^/| /' conftest.$ac_ext >&5 |
12062 | sed 's/^/| /' conftest.$ac_ext >&5 |
12039 | |
12063 | |
12040 | rxvt_cv_func_getpt=no |
12064 | ac_cv_func_openpty=no |
12041 | fi |
12065 | fi |
12042 | rm -f conftest.err conftest.$ac_objext \ |
12066 | rm -f conftest.err conftest.$ac_objext \ |
12043 | conftest$ac_exeext conftest.$ac_ext |
12067 | conftest$ac_exeext conftest.$ac_ext |
12044 | fi |
12068 | fi |
12045 | echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 |
12069 | echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 |
12046 | echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 |
12070 | echo "${ECHO_T}$ac_cv_func_openpty" >&6 |
12047 | if test x$rxvt_cv_func_getpt = xyes; then |
12071 | if test $ac_cv_func_openpty = yes; then |
12048 | |
12072 | : |
|
|
12073 | else |
|
|
12074 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
12075 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
|
|
12076 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
12077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12078 | else |
|
|
12079 | ac_check_lib_save_LIBS=$LIBS |
|
|
12080 | LIBS="-lutil $LIBS" |
|
|
12081 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12082 | /* confdefs.h. */ |
|
|
12083 | _ACEOF |
|
|
12084 | cat confdefs.h >>conftest.$ac_ext |
12049 | cat >>confdefs.h <<\_ACEOF |
12085 | cat >>conftest.$ac_ext <<_ACEOF |
12050 | #define HAVE_GETPT 1 |
12086 | /* end confdefs.h. */ |
|
|
12087 | |
|
|
12088 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12089 | #ifdef __cplusplus |
|
|
12090 | extern "C" |
|
|
12091 | #endif |
|
|
12092 | /* We use char because int might match the return type of a gcc2 |
|
|
12093 | builtin and then its argument prototype would still apply. */ |
|
|
12094 | char openpty (); |
|
|
12095 | int |
|
|
12096 | main () |
|
|
12097 | { |
|
|
12098 | openpty (); |
|
|
12099 | ; |
|
|
12100 | return 0; |
|
|
12101 | } |
12051 | _ACEOF |
12102 | _ACEOF |
|
|
12103 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12105 | (eval $ac_link) 2>conftest.er1 |
|
|
12106 | ac_status=$? |
|
|
12107 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12108 | rm -f conftest.er1 |
|
|
12109 | cat conftest.err >&5 |
|
|
12110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12111 | (exit $ac_status); } && |
|
|
12112 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12114 | (eval $ac_try) 2>&5 |
|
|
12115 | ac_status=$? |
|
|
12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12117 | (exit $ac_status); }; } && |
|
|
12118 | { ac_try='test -s conftest$ac_exeext' |
|
|
12119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12120 | (eval $ac_try) 2>&5 |
|
|
12121 | ac_status=$? |
|
|
12122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12123 | (exit $ac_status); }; }; then |
|
|
12124 | ac_cv_lib_util_openpty=yes |
|
|
12125 | else |
|
|
12126 | echo "$as_me: failed program was:" >&5 |
|
|
12127 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12128 | |
|
|
12129 | ac_cv_lib_util_openpty=no |
|
|
12130 | fi |
|
|
12131 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12132 | conftest$ac_exeext conftest.$ac_ext |
|
|
12133 | LIBS=$ac_check_lib_save_LIBS |
|
|
12134 | fi |
|
|
12135 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12136 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
12137 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12138 | LIBS="$LIBS -lutil" |
|
|
12139 | fi |
|
|
12140 | |
|
|
12141 | fi |
12052 | |
12142 | |
12053 | fi |
12143 | fi |
12054 | |
12144 | |
12055 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
12145 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
12056 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
12146 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
12057 | if test "${rxvt_cv_ptys+set}" = set; then |
12147 | if test "${rxvt_cv_ptys+set}" = set; then |
12058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12059 | else |
12149 | else |
12060 | if test x$ac_cv_func_openpty = xyes; then |
12150 | if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then |
12061 | rxvt_cv_ptys=OPENPTY |
12151 | rxvt_cv_ptys=OPENPTY |
|
|
12152 | else if test x$ac_cv_func_posix_openpt = xyes; then |
|
|
12153 | rxvt_cv_ptys=POSIX |
12062 | else if test x$ac_cv_func__getpty = xyes; then |
12154 | else if test x$ac_cv_func__getpty = xyes; then |
12063 | rxvt_cv_ptys=SGI4 |
12155 | rxvt_cv_ptys=SGI4 |
12064 | else if test -c /dev/ttyp20; then |
12156 | else if test -c /dev/ttyp20; then |
12065 | rxvt_cv_ptys=SCO |
12157 | rxvt_cv_ptys=SCO |
12066 | else if test -c /dev/ptym/clone; then |
12158 | else if test -c /dev/ptym/clone; then |
12067 | rxvt_cv_ptys=HPUX |
12159 | rxvt_cv_ptys=HPUX |
12068 | else if test x$rxvt_cv_func_getpt = xyes; then |
|
|
12069 | rxvt_cv_ptys=GLIBC |
|
|
12070 | else if test -c /dev/ptc -a -c /dev/pts; then |
12160 | else if test -c /dev/ptc -a -c /dev/pts; then |
12071 | rxvt_cv_ptys=PTC |
12161 | rxvt_cv_ptys=PTC |
12072 | else if test -c /dev/ptc -a -d /dev/pts; then |
12162 | else if test -c /dev/ptc -a -d /dev/pts; then |
12073 | rxvt_cv_ptys=PTC |
12163 | rxvt_cv_ptys=PTC |
12074 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
12164 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
… | |
… | |
12089 | |
12179 | |
12090 | fi |
12180 | fi |
12091 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
12181 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
12092 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
12182 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
12093 | |
12183 | |
|
|
12184 | if test x$rxvt_cv_ptys = xPOSIX; then |
|
|
12185 | |
|
|
12186 | cat >>confdefs.h <<\_ACEOF |
|
|
12187 | #define PTYS_ARE_POSIX 1 |
|
|
12188 | _ACEOF |
|
|
12189 | |
|
|
12190 | fi |
12094 | if test x$rxvt_cv_ptys = xOPENPTY; then |
12191 | if test x$rxvt_cv_ptys = xOPENPTY; then |
12095 | |
12192 | |
12096 | cat >>confdefs.h <<\_ACEOF |
12193 | cat >>confdefs.h <<\_ACEOF |
12097 | #define PTYS_ARE_OPENPTY 1 |
12194 | #define PTYS_ARE_OPENPTY 1 |
12098 | _ACEOF |
12195 | _ACEOF |
… | |
… | |
12124 | cat >>confdefs.h <<\_ACEOF |
12221 | cat >>confdefs.h <<\_ACEOF |
12125 | #define PTYS_ARE__GETPTY 1 |
12222 | #define PTYS_ARE__GETPTY 1 |
12126 | _ACEOF |
12223 | _ACEOF |
12127 | |
12224 | |
12128 | fi |
12225 | fi |
12129 | if test x$rxvt_cv_ptys = xCONVEX; then |
|
|
12130 | |
|
|
12131 | cat >>confdefs.h <<\_ACEOF |
|
|
12132 | #define PTYS_ARE_GETPTY 1 |
|
|
12133 | _ACEOF |
|
|
12134 | |
|
|
12135 | fi |
|
|
12136 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
12137 | |
|
|
12138 | cat >>confdefs.h <<\_ACEOF |
|
|
12139 | #define PTYS_ARE_GETPT 1 |
|
|
12140 | _ACEOF |
|
|
12141 | |
|
|
12142 | fi |
|
|
12143 | if test x$rxvt_cv_ptys = xHPUX; then |
12226 | if test x$rxvt_cv_ptys = xHPUX; then |
12144 | |
12227 | |
12145 | cat >>confdefs.h <<\_ACEOF |
12228 | cat >>confdefs.h <<\_ACEOF |
12146 | #define PTYS_ARE_CLONE 1 |
12229 | #define PTYS_ARE_CLONE 1 |
12147 | _ACEOF |
12230 | _ACEOF |
12148 | |
12231 | |
12149 | fi |
12232 | fi |
12150 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then |
12233 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then |
12151 | |
12234 | |
12152 | cat >>confdefs.h <<\_ACEOF |
12235 | cat >>confdefs.h <<\_ACEOF |
12153 | #define PTYS_ARE_SEARCHED 1 |
12236 | #define PTYS_ARE_SEARCHED 1 |
12154 | _ACEOF |
12237 | _ACEOF |
12155 | |
12238 | |
… | |
… | |
12819 | |
12902 | |
12820 | |
12903 | |
12821 | |
12904 | |
12822 | |
12905 | |
12823 | |
12906 | |
12824 | if text x$support_perl = xyes; then |
12907 | if test x$support_perl = xyes; then |
12825 | support_frills=yes |
12908 | support_frills=yes |
12826 | fi |
12909 | fi |
12827 | |
12910 | |
12828 | |
12911 | |
12829 | CFLAGS=${CFLAGS--O} |
12912 | CFLAGS=${CFLAGS--O} |
… | |
… | |
12846 | fi |
12929 | fi |
12847 | |
12930 | |
12848 | |
12931 | |
12849 | |
12932 | |
12850 | |
12933 | |
12851 | |
|
|
12852 | if test x$support_addstrings = xno; then |
|
|
12853 | |
|
|
12854 | cat >>confdefs.h <<\_ACEOF |
|
|
12855 | #define NO_STRINGS 1 |
|
|
12856 | _ACEOF |
|
|
12857 | |
|
|
12858 | fi |
|
|
12859 | |
12934 | |
12860 | MCOMMON=./autoconf/Make.common |
12935 | MCOMMON=./autoconf/Make.common |
12861 | |
12936 | |
12862 | |
12937 | |
12863 | test "$program_prefix" != NONE && |
12938 | test "$program_prefix" != NONE && |