init.sh: correct an outdated comment
[pspp] / m4 / c-stack.m4
index 2a89696a9c7227ad957901d55d5d587047f7498c..f2b9cc38d11e8f98011508f2cc7a417f5cdcace0 100644 (file)
@@ -1,13 +1,14 @@
 # Check prerequisites for compiling lib/c-stack.c.
 
-# Copyright (C) 2002, 2003, 2004, 2008, 2009 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2004, 2008, 2009, 2010 Free Software Foundation,
+# Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
 
 # Written by Paul Eggert.
 
-# serial 10
+# serial 11
 
 AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC],
   [# for STACK_DIRECTION
@@ -20,7 +21,7 @@ AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC],
    dnl is accessed, or when the stack overflows.
    dnl Either { SIGSEGV } or { SIGSEGV, SIGBUS }.
    case "$host_os" in
-     sunos4* | freebsd* | dragonfly* | openbsd* | netbsd* | kfreebsd* | knetbsd*) # BSD systems
+     sunos4* | freebsd* | dragonfly* | openbsd* | mirbsd* | netbsd* | kfreebsd* | knetbsd*) # BSD systems
        FAULT_YIELDS_SIGBUS=1 ;;
      hpux*) # HP-UX
        FAULT_YIELDS_SIGBUS=1 ;;
@@ -116,9 +117,9 @@ AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC],
               return c_stack_action () || recurse (0);
             }
            ]])],
-       [ac_cv_sys_stack_overflow_works=yes],
-       [ac_cv_sys_stack_overflow_works=no],
-       [ac_cv_sys_stack_overflow_works=cross-compiling])])
+        [ac_cv_sys_stack_overflow_works=yes],
+        [ac_cv_sys_stack_overflow_works=no],
+        [ac_cv_sys_stack_overflow_works=cross-compiling])])
 
   if test $ac_cv_sys_stack_overflow_works = yes; then
    AC_DEFINE([HAVE_STACK_OVERFLOW_HANDLING], [1],
@@ -132,7 +133,7 @@ AC_DEFUN([AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC],
     AC_CACHE_CHECK([for correct stack_t interpretation],
       [gl_cv_sigaltstack_low_base], [
       AC_RUN_IFELSE([
-       AC_LANG_SOURCE([[
+        AC_LANG_SOURCE([[
 #include <stdlib.h>
 #include <signal.h>
 #if HAVE_SYS_SIGNAL_H
@@ -183,9 +184,9 @@ int main ()
       [gl_cv_sigaltstack_low_base=cross-compiling])])
    if test "$gl_cv_sigaltstack_low_base" = no; then
       AC_DEFINE([SIGALTSTACK_SS_REVERSED], [1],
-       [Define if sigaltstack() interprets the stack_t.ss_sp field
-        incorrectly, as the highest address of the alternate stack range
-        rather than as the lowest address.])
+        [Define if sigaltstack() interprets the stack_t.ss_sp field
+         incorrectly, as the highest address of the alternate stack range
+         rather than as the lowest address.])
     fi
 
    AC_CACHE_CHECK([for precise C stack overflow detection],
@@ -302,19 +303,19 @@ int main ()
               return c_stack_action () || recurse (0);
             }
            ]])],
-       [ac_cv_sys_xsi_stack_overflow_heuristic=yes],
-       [ac_cv_sys_xsi_stack_overflow_heuristic=no],
-       [ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling])])
+        [ac_cv_sys_xsi_stack_overflow_heuristic=yes],
+        [ac_cv_sys_xsi_stack_overflow_heuristic=no],
+        [ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling])])
 
    if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
      AC_DEFINE([HAVE_XSI_STACK_OVERFLOW_HEURISTIC], [1],
        [Define to 1 if extending the stack slightly past the limit causes
-       a SIGSEGV, and an alternate stack can be established with sigaltstack,
-       and the signal handler is passed a context that specifies the
-       run time stack.  This behavior is defined by POSIX 1003.1-2001
-       with the X/Open System Interface (XSI) option
-       and is a standardized way to implement a SEGV-based stack
-       overflow detection heuristic.])
+        a SIGSEGV, and an alternate stack can be established with sigaltstack,
+        and the signal handler is passed a context that specifies the
+        run time stack.  This behavior is defined by POSIX 1003.1-2001
+        with the X/Open System Interface (XSI) option
+        and is a standardized way to implement a SEGV-based stack
+        overflow detection heuristic.])
    fi
   fi])