ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/configure.in
(Generate patch)

Comparing BasiliskII/src/Unix/configure.in (file contents):
Revision 1.59 by cebix, 2002-03-20T19:37:37Z vs.
Revision 1.61 by cebix, 2002-07-31T16:46:14Z

# Line 257 | Line 257 | AC_CHECK_FUNCS(vm_allocate vm_deallocate
257   dnl Darwin seems to define mach_task_self() instead of task_self().
258   AC_CHECK_FUNCS(mach_task_self task_self)
259  
260 + dnl Check for headers and functions related to pty support (sshpty.c)
261 + dnl From openssh-3.2.2p1 configure.ac
262 +
263 + AC_CHECK_HEADERS(strings.h login.h sys/bsdtty.h sys/stat.h util.h pty.h)
264 + AC_CHECK_FUNCS(_getpty vhangup strlcpy)
265 +
266 + case "$host" in
267 + *-*-hpux10.26)
268 +        disable_ptmx_check=yes
269 +        ;;
270 + *-*-linux*)
271 +        no_dev_ptmx=1
272 +        ;;
273 + mips-sony-bsd|mips-sony-newsos4)
274 +        AC_DEFINE(HAVE_NEWS4)
275 +        ;;
276 + *-*-sco3.2v4*)
277 +        no_dev_ptmx=1
278 +        ;;
279 + *-*-sco3.2v5*)
280 +        no_dev_ptmx=1
281 +        ;;
282 + esac
283 +
284 + if test -z "$no_dev_ptmx" ; then
285 +        if test "x$disable_ptmx_check" != "xyes" ; then
286 +                AC_CHECK_FILE("/dev/ptmx",
287 +                        [
288 +                                AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX)
289 +                                have_dev_ptmx=1
290 +                        ]
291 +                )
292 +        fi
293 + fi
294 + AC_CHECK_FILE("/dev/ptc",
295 +        [
296 +                AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC)
297 +                have_dev_ptc=1
298 +        ]
299 + )
300 +
301 + dnl (end of code from openssh-3.2.2p1 configure.ac)
302 +
303 +
304   dnl Select system-dependant source files.
305   SERIALSRC=serial_unix.cpp
306   ETHERSRC=../dummy/ether_dummy.cpp
# Line 587 | Line 631 | AC_CACHE_CHECK("whether your system supp
631    ]
632   )
633   AC_TRANSLATE_DEFINE(HAVE_SIGINFO_T, "$ac_cv_have_extended_signals")
634 <
634 >
635   dnl Otherwise, check for subterfuges.
636   if [[ "x$ac_cv_have_extended_signals" = "xno" ]]; then
637    AC_CACHE_CHECK("whether we then have a subterfuge for your system",
# Line 608 | Line 652 | if [[ "x$ac_cv_have_extended_signals" =
652    AC_TRANSLATE_DEFINE(HAVE_SIGCONTEXT_SUBTERFUGE, "$ac_cv_have_sigcontext_hack")
653   fi
654  
655 + dnl Check if we can ignore the fault (instruction skipping in SIGSEGV handler)
656 + AC_CACHE_CHECK("whether we can skip instruction in SIGSEGV handler",
657 +  ac_cv_have_skip_instruction, [
658 +  AC_LANG_SAVE
659 +  AC_LANG_CPLUSPLUS
660 +  AC_TRY_RUN([
661 +    #define HAVE_SIGSEGV_SKIP_INSTRUCTION 1
662 +    #define CONFIGURE_TEST_SIGSEGV_RECOVERY
663 +    #include "vm_alloc.cpp"
664 +    #include "sigsegv.cpp"
665 +  ], ac_cv_have_skip_instruction=yes, ac_cv_have_skip_instruction=no,
666 +  dnl When cross-compiling, do not assume anything.
667 +  ac_cv_have_skip_instruction=no
668 +  )
669 +  AC_LANG_RESTORE
670 +  ]
671 + )
672 + AC_TRANSLATE_DEFINE(HAVE_SIGSEGV_SKIP_INSTRUCTION, "$ac_cv_have_skip_instruction")
673 +
674   dnl Can we do Video on SEGV Signals ?
675   CAN_VOSF=no
676   if [[ "$ac_cv_have_extended_signals" = "yes" -o "$ac_cv_have_sigcontext_hack" = "yes" ]]; then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines