… | |
… | |
10183 | |
10183 | |
10184 | |
10184 | |
10185 | |
10185 | |
10186 | |
10186 | |
10187 | |
10187 | |
|
|
10188 | |
10188 | for ac_func in \ |
10189 | for ac_func in \ |
10189 | atexit \ |
10190 | atexit \ |
10190 | revoke \ |
10191 | revoke \ |
10191 | unsetenv \ |
10192 | unsetenv \ |
10192 | setutent \ |
10193 | setutent \ |
… | |
… | |
10194 | setreuid \ |
10195 | setreuid \ |
10195 | setsid \ |
10196 | setsid \ |
10196 | setpgrp \ |
10197 | setpgrp \ |
10197 | setpgid \ |
10198 | setpgid \ |
10198 | _getpty \ |
10199 | _getpty \ |
|
|
10200 | posix_openpt \ |
10199 | grantpt \ |
10201 | grantpt \ |
10200 | unlockpt \ |
10202 | unlockpt \ |
10201 | isastream \ |
10203 | isastream \ |
10202 | on_exit \ |
10204 | on_exit \ |
10203 | nanosleep \ |
10205 | nanosleep \ |
… | |
… | |
11984 | #define XIMCB_PROTO_BROKEN 1 |
11986 | #define XIMCB_PROTO_BROKEN 1 |
11985 | _ACEOF |
11987 | _ACEOF |
11986 | |
11988 | |
11987 | fi |
11989 | fi |
11988 | |
11990 | |
11989 | echo "$as_me:$LINENO: checking for getpt" >&5 |
|
|
11990 | echo $ECHO_N "checking for getpt... $ECHO_C" >&6 |
|
|
11991 | if test "${rxvt_cv_func_getpt+set}" = set; then |
|
|
11992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11993 | else |
|
|
11994 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11995 | /* confdefs.h. */ |
|
|
11996 | _ACEOF |
|
|
11997 | cat confdefs.h >>conftest.$ac_ext |
|
|
11998 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11999 | /* end confdefs.h. */ |
|
|
12000 | #define _GNU_SOURCE |
|
|
12001 | #ifdef HAVE_STDLIB_H |
|
|
12002 | # include <cstdlib> |
|
|
12003 | #endif |
|
|
12004 | int |
|
|
12005 | main () |
|
|
12006 | { |
|
|
12007 | (void)getpt(); |
|
|
12008 | ; |
|
|
12009 | return 0; |
|
|
12010 | } |
|
|
12011 | _ACEOF |
|
|
12012 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12014 | (eval $ac_link) 2>conftest.er1 |
|
|
12015 | ac_status=$? |
|
|
12016 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12017 | rm -f conftest.er1 |
|
|
12018 | cat conftest.err >&5 |
|
|
12019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12020 | (exit $ac_status); } && |
|
|
12021 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12023 | (eval $ac_try) 2>&5 |
|
|
12024 | ac_status=$? |
|
|
12025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12026 | (exit $ac_status); }; } && |
|
|
12027 | { ac_try='test -s conftest$ac_exeext' |
|
|
12028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12029 | (eval $ac_try) 2>&5 |
|
|
12030 | ac_status=$? |
|
|
12031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12032 | (exit $ac_status); }; }; then |
|
|
12033 | rxvt_cv_func_getpt=yes |
|
|
12034 | else |
|
|
12035 | echo "$as_me: failed program was:" >&5 |
|
|
12036 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12037 | |
|
|
12038 | rxvt_cv_func_getpt=no |
|
|
12039 | fi |
|
|
12040 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12041 | conftest$ac_exeext conftest.$ac_ext |
|
|
12042 | fi |
|
|
12043 | echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 |
|
|
12044 | echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 |
|
|
12045 | if test x$rxvt_cv_func_getpt = xno; then |
11991 | if test x$rxvt_cv_func_posix_openpt = xno; then |
12046 | echo "$as_me:$LINENO: checking for openpty" >&5 |
11992 | echo "$as_me:$LINENO: checking for openpty" >&5 |
12047 | echo $ECHO_N "checking for openpty... $ECHO_C" >&6 |
11993 | echo $ECHO_N "checking for openpty... $ECHO_C" >&6 |
12048 | if test "${ac_cv_func_openpty+set}" = set; then |
11994 | if test "${ac_cv_func_openpty+set}" = set; then |
12049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12050 | else |
11996 | else |
… | |
… | |
12211 | if test "${rxvt_cv_ptys+set}" = set; then |
12157 | if test "${rxvt_cv_ptys+set}" = set; then |
12212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12213 | else |
12159 | else |
12214 | if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then |
12160 | if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then |
12215 | rxvt_cv_ptys=OPENPTY |
12161 | rxvt_cv_ptys=OPENPTY |
|
|
12162 | else if test x$ac_cv_func_posix_openpt = xyes; then |
|
|
12163 | rxvt_cv_ptys=POSIX |
12216 | else if test x$ac_cv_func__getpty = xyes; then |
12164 | else if test x$ac_cv_func__getpty = xyes; then |
12217 | rxvt_cv_ptys=SGI4 |
12165 | rxvt_cv_ptys=SGI4 |
12218 | else if test -c /dev/ttyp20; then |
12166 | else if test -c /dev/ttyp20; then |
12219 | rxvt_cv_ptys=SCO |
12167 | rxvt_cv_ptys=SCO |
12220 | else if test -c /dev/ptym/clone; then |
12168 | else if test -c /dev/ptym/clone; then |
12221 | rxvt_cv_ptys=HPUX |
12169 | rxvt_cv_ptys=HPUX |
12222 | else if test x$rxvt_cv_func_getpt = xyes; then |
|
|
12223 | rxvt_cv_ptys=GLIBC |
|
|
12224 | else if test -c /dev/ptc -a -c /dev/pts; then |
12170 | else if test -c /dev/ptc -a -c /dev/pts; then |
12225 | rxvt_cv_ptys=PTC |
12171 | rxvt_cv_ptys=PTC |
12226 | else if test -c /dev/ptc -a -d /dev/pts; then |
12172 | else if test -c /dev/ptc -a -d /dev/pts; then |
12227 | rxvt_cv_ptys=PTC |
12173 | rxvt_cv_ptys=PTC |
12228 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
12174 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
… | |
… | |
12243 | |
12189 | |
12244 | fi |
12190 | fi |
12245 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
12191 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
12246 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
12192 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
12247 | |
12193 | |
|
|
12194 | if test x$rxvt_cv_ptys = xPOSIX; then |
|
|
12195 | |
|
|
12196 | cat >>confdefs.h <<\_ACEOF |
|
|
12197 | #define PTYS_ARE_POSIX 1 |
|
|
12198 | _ACEOF |
|
|
12199 | |
|
|
12200 | fi |
12248 | if test x$rxvt_cv_ptys = xOPENPTY; then |
12201 | if test x$rxvt_cv_ptys = xOPENPTY; then |
12249 | |
12202 | |
12250 | cat >>confdefs.h <<\_ACEOF |
12203 | cat >>confdefs.h <<\_ACEOF |
12251 | #define PTYS_ARE_OPENPTY 1 |
12204 | #define PTYS_ARE_OPENPTY 1 |
12252 | _ACEOF |
12205 | _ACEOF |
… | |
… | |
12275 | fi |
12228 | fi |
12276 | if test x$rxvt_cv_ptys = xSGI4; then |
12229 | if test x$rxvt_cv_ptys = xSGI4; then |
12277 | |
12230 | |
12278 | cat >>confdefs.h <<\_ACEOF |
12231 | cat >>confdefs.h <<\_ACEOF |
12279 | #define PTYS_ARE__GETPTY 1 |
12232 | #define PTYS_ARE__GETPTY 1 |
12280 | _ACEOF |
|
|
12281 | |
|
|
12282 | fi |
|
|
12283 | if test x$rxvt_cv_ptys = xCONVEX; then |
|
|
12284 | |
|
|
12285 | cat >>confdefs.h <<\_ACEOF |
|
|
12286 | #define PTYS_ARE_GETPTY 1 |
|
|
12287 | _ACEOF |
12233 | _ACEOF |
12288 | |
12234 | |
12289 | fi |
12235 | fi |
12290 | if test x$rxvt_cv_ptys = xGLIBC; then |
12236 | if test x$rxvt_cv_ptys = xGLIBC; then |
12291 | |
12237 | |