… | |
… | |
710 | dnl# CHECKING FOR LIBRARY FUNCTIONS |
710 | dnl# CHECKING FOR LIBRARY FUNCTIONS |
711 | dnl# -------------------------------------------------------------------------- |
711 | dnl# -------------------------------------------------------------------------- |
712 | AC_TYPE_SIGNAL |
712 | AC_TYPE_SIGNAL |
713 | dnl> AC_FUNC_VPRINTF |
713 | dnl> AC_FUNC_VPRINTF |
714 | |
714 | |
715 | dnl# Note: On Ultrix, setsid() does weirdo stuff, disable it |
|
|
716 | case "$host_alias" in |
|
|
717 | *ultrix) ac_cv_func_setsid='no' ;; |
|
|
718 | *) break;; |
|
|
719 | esac |
|
|
720 | |
|
|
721 | AC_CHECK_FUNCS( \ |
715 | AC_CHECK_FUNCS( \ |
722 | atexit \ |
|
|
723 | revoke \ |
716 | revoke \ |
724 | unsetenv \ |
717 | unsetenv \ |
725 | setutent \ |
718 | setutent \ |
726 | seteuid \ |
719 | seteuid \ |
727 | setreuid \ |
720 | setreuid \ |
728 | setsid \ |
|
|
729 | setpgrp \ |
|
|
730 | setpgid \ |
|
|
731 | _getpty \ |
721 | _getpty \ |
|
|
722 | getpt \ |
732 | posix_openpt \ |
723 | posix_openpt \ |
733 | grantpt \ |
724 | grantpt \ |
734 | unlockpt \ |
725 | unlockpt \ |
735 | isastream \ |
726 | isastream \ |
736 | on_exit \ |
727 | on_exit \ |
… | |
… | |
1166 | |
1157 | |
1167 | if test x$rxvt_broken_ximcb = xyes; then |
1158 | if test x$rxvt_broken_ximcb = xyes; then |
1168 | AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) |
1159 | AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) |
1169 | fi |
1160 | fi |
1170 | |
1161 | |
1171 | if test x$ac_cv_func_posix_openpt = xno; then |
1162 | if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then |
1172 | AC_CHECK_FUNC(openpty, [], [AC_CHECK_LIB(util, openpty, [LIBS="$LIBS -lutil"])]) |
1163 | AC_CHECK_FUNC(openpty, [], [AC_CHECK_LIB(util, openpty, [LIBS="$LIBS -lutil"])]) |
1173 | fi |
1164 | fi |
1174 | |
1165 | |
1175 | dnl# if we don't guess right then it's up to the user |
1166 | dnl# if we don't guess right then it's up to the user |
1176 | AC_CACHE_CHECK(for pty/tty type, rxvt_cv_ptys, |
1167 | AC_CACHE_CHECK(for pty/tty type, rxvt_cv_ptys, |
1177 | [if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then |
1168 | [if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then |
1178 | rxvt_cv_ptys=OPENPTY |
1169 | rxvt_cv_ptys=OPENPTY |
|
|
1170 | else if test x$ac_cv_func_getpt = xyes; then |
|
|
1171 | rxvt_cv_ptys=GLIBC |
1179 | else if test x$ac_cv_func_posix_openpt = xyes; then |
1172 | else if test x$ac_cv_func_posix_openpt = xyes; then |
1180 | rxvt_cv_ptys=POSIX |
1173 | rxvt_cv_ptys=POSIX |
1181 | else if test x$ac_cv_func__getpty = xyes; then |
1174 | else if test x$ac_cv_func__getpty = xyes; then |
1182 | rxvt_cv_ptys=SGI4 |
1175 | rxvt_cv_ptys=SGI4 |
1183 | else if test -c /dev/ttyp20; then |
1176 | else if test -c /dev/ttyp20; then |
… | |
… | |
1202 | fi |
1195 | fi |
1203 | fi |
1196 | fi |
1204 | fi |
1197 | fi |
1205 | fi |
1198 | fi |
1206 | fi |
1199 | fi |
|
|
1200 | fi |
1207 | ]) |
1201 | ]) |
1208 | |
1202 | |
|
|
1203 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
1204 | AC_DEFINE(PTYS_ARE_GETPT, 1, Define for this pty type) |
|
|
1205 | fi |
1209 | if test x$rxvt_cv_ptys = xPOSIX; then |
1206 | if test x$rxvt_cv_ptys = xPOSIX; then |
1210 | AC_DEFINE(PTYS_ARE_POSIX, 1, Define for this pty type) |
1207 | AC_DEFINE(PTYS_ARE_POSIX, 1, Define for this pty type) |
1211 | fi |
1208 | fi |
1212 | if test x$rxvt_cv_ptys = xOPENPTY; then |
1209 | if test x$rxvt_cv_ptys = xOPENPTY; then |
1213 | AC_DEFINE(PTYS_ARE_OPENPTY, 1, Define for this pty type) |
1210 | AC_DEFINE(PTYS_ARE_OPENPTY, 1, Define for this pty type) |