ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/autoconf/configure.in
(Generate patch)

Comparing rxvt-unicode/autoconf/configure.in (file contents):
Revision 1.67 by root, Wed Jan 11 19:55:34 2006 UTC vs.
Revision 1.68 by root, Wed Jan 11 23:08:54 2006 UTC

740 setreuid \ 740 setreuid \
741 setsid \ 741 setsid \
742 setpgrp \ 742 setpgrp \
743 setpgid \ 743 setpgid \
744 _getpty \ 744 _getpty \
745 posix_openpt \
745 grantpt \ 746 grantpt \
746 unlockpt \ 747 unlockpt \
747 isastream \ 748 isastream \
748 on_exit \ 749 on_exit \
749 nanosleep \ 750 nanosleep \
1178 1179
1179if test x$rxvt_broken_ximcb = xyes; then 1180if test x$rxvt_broken_ximcb = xyes; then
1180 AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) 1181 AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.)
1181fi 1182fi
1182 1183
1183AC_CACHE_CHECK(for getpt, rxvt_cv_func_getpt,
1184[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define _GNU_SOURCE
1185#ifdef HAVE_STDLIB_H
1186# include <cstdlib>
1187#endif]], [[(void)getpt();]])],[rxvt_cv_func_getpt=yes],[rxvt_cv_func_getpt=no])])
1188if test x$rxvt_cv_func_getpt = xno; then 1184if test x$rxvt_cv_func_posix_openpt = xno; then
1189 AC_CHECK_FUNC(openpty, [], [AC_CHECK_LIB(util, openpty, [LIBS="$LIBS -lutil"])]) 1185 AC_CHECK_FUNC(openpty, [], [AC_CHECK_LIB(util, openpty, [LIBS="$LIBS -lutil"])])
1190fi 1186fi
1191 1187
1192dnl# if we don't guess right then it's up to the user 1188dnl# if we don't guess right then it's up to the user
1193AC_CACHE_CHECK(for pty/tty type, rxvt_cv_ptys, 1189AC_CACHE_CHECK(for pty/tty type, rxvt_cv_ptys,
1194[if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then 1190[if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
1195 rxvt_cv_ptys=OPENPTY 1191 rxvt_cv_ptys=OPENPTY
1192 else if test x$ac_cv_func_posix_openpt = xyes; then
1193 rxvt_cv_ptys=POSIX
1196 else if test x$ac_cv_func__getpty = xyes; then 1194 else if test x$ac_cv_func__getpty = xyes; then
1197 rxvt_cv_ptys=SGI4 1195 rxvt_cv_ptys=SGI4
1198 else if test -c /dev/ttyp20; then 1196 else if test -c /dev/ttyp20; then
1199 rxvt_cv_ptys=SCO 1197 rxvt_cv_ptys=SCO
1200 else if test -c /dev/ptym/clone; then 1198 else if test -c /dev/ptym/clone; then
1201 rxvt_cv_ptys=HPUX 1199 rxvt_cv_ptys=HPUX
1202 else if test x$rxvt_cv_func_getpt = xyes; then
1203 rxvt_cv_ptys=GLIBC
1204 else if test -c /dev/ptc -a -c /dev/pts; then 1200 else if test -c /dev/ptc -a -c /dev/pts; then
1205 rxvt_cv_ptys=PTC 1201 rxvt_cv_ptys=PTC
1206 else if test -c /dev/ptc -a -d /dev/pts; then 1202 else if test -c /dev/ptc -a -d /dev/pts; then
1207 rxvt_cv_ptys=PTC 1203 rxvt_cv_ptys=PTC
1208 else if test -c /dev/ptmx -a -c /dev/pts/0; then 1204 else if test -c /dev/ptmx -a -c /dev/pts/0; then
1221fi 1217fi
1222fi 1218fi
1223fi 1219fi
1224]) 1220])
1225 1221
1222if test x$rxvt_cv_ptys = xPOSIX; then
1223 AC_DEFINE(PTYS_ARE_POSIX, 1, Define for this pty type)
1224fi
1226if test x$rxvt_cv_ptys = xOPENPTY; then 1225if test x$rxvt_cv_ptys = xOPENPTY; then
1227 AC_DEFINE(PTYS_ARE_OPENPTY, 1, Define for this pty type) 1226 AC_DEFINE(PTYS_ARE_OPENPTY, 1, Define for this pty type)
1228fi 1227fi
1229if test x$rxvt_cv_ptys = xSCO; then 1228if test x$rxvt_cv_ptys = xSCO; then
1230 AC_DEFINE(PTYS_ARE_NUMERIC, 1, Define for this pty type) 1229 AC_DEFINE(PTYS_ARE_NUMERIC, 1, Define for this pty type)
1235if test x$rxvt_cv_ptys = xPTC; then 1234if test x$rxvt_cv_ptys = xPTC; then
1236 AC_DEFINE(PTYS_ARE_PTC, 1, Define for this pty type) 1235 AC_DEFINE(PTYS_ARE_PTC, 1, Define for this pty type)
1237fi 1236fi
1238if test x$rxvt_cv_ptys = xSGI4; then 1237if test x$rxvt_cv_ptys = xSGI4; then
1239 AC_DEFINE(PTYS_ARE__GETPTY, 1, Define for this pty type) 1238 AC_DEFINE(PTYS_ARE__GETPTY, 1, Define for this pty type)
1240fi
1241if test x$rxvt_cv_ptys = xCONVEX; then
1242 AC_DEFINE(PTYS_ARE_GETPTY, 1, Define for this pty type)
1243fi 1239fi
1244if test x$rxvt_cv_ptys = xGLIBC; then 1240if test x$rxvt_cv_ptys = xGLIBC; then
1245 AC_DEFINE(PTYS_ARE_GETPT, 1, Define for this pty type) 1241 AC_DEFINE(PTYS_ARE_GETPT, 1, Define for this pty type)
1246fi 1242fi
1247if test x$rxvt_cv_ptys = xHPUX; then 1243if test x$rxvt_cv_ptys = xHPUX; then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines