sigaltstack is not used now if the OS does not provide it.
This commit is contained in:
parent
899be70aca
commit
01d0669607
|
@ -58,6 +58,9 @@
|
||||||
/* Define to 1 if you have the `setenv' function. */
|
/* Define to 1 if you have the `setenv' function. */
|
||||||
#undef HAVE_SETENV
|
#undef HAVE_SETENV
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `sigaltstack' function. */
|
||||||
|
#undef HAVE_SIGALTSTACK
|
||||||
|
|
||||||
/* Define to 1 if you have the <signal.h> header file. */
|
/* Define to 1 if you have the <signal.h> header file. */
|
||||||
#undef HAVE_SIGNAL_H
|
#undef HAVE_SIGNAL_H
|
||||||
|
|
||||||
|
|
|
@ -5537,9 +5537,11 @@ _ACEOF
|
||||||
|
|
||||||
|
|
||||||
# remember to enable before release.
|
# remember to enable before release.
|
||||||
# if (test $ac_cv_sizeof_void_p != 4); then
|
if (test $ac_cv_sizeof_void_p != 4); then
|
||||||
# AC_MSG_ERROR([Ikarus can only run in 32-bit mode.])
|
{ { echo "$as_me:$LINENO: error: Ikarus can only run in 32-bit mode." >&5
|
||||||
# fi
|
echo "$as_me: error: Ikarus can only run in 32-bit mode." >&2;}
|
||||||
|
{ (exit 1); exit 1; }; }
|
||||||
|
fi
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
{ echo "$as_me:$LINENO: checking for library containing dlsym" >&5
|
{ echo "$as_me:$LINENO: checking for library containing dlsym" >&5
|
||||||
|
@ -8787,7 +8789,8 @@ fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for ac_func in bzero gettimeofday memmove memset munmap setenv sqrt strerror getaddrinfo
|
|
||||||
|
for ac_func in sigaltstack bzero gettimeofday memmove memset munmap setenv sqrt strerror getaddrinfo
|
||||||
do
|
do
|
||||||
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
||||||
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
|
||||||
|
|
|
@ -30,9 +30,9 @@ case "$target_os" in
|
||||||
|
|
||||||
AC_CHECK_SIZEOF(void *)
|
AC_CHECK_SIZEOF(void *)
|
||||||
# remember to enable before release.
|
# remember to enable before release.
|
||||||
# if (test $ac_cv_sizeof_void_p != 4); then
|
if (test $ac_cv_sizeof_void_p != 4); then
|
||||||
# AC_MSG_ERROR([Ikarus can only run in 32-bit mode.])
|
AC_MSG_ERROR([Ikarus can only run in 32-bit mode.])
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
AC_SEARCH_LIBS(dlsym, dl,, [AC_MSG_ERROR([Cannot find libdl])])
|
AC_SEARCH_LIBS(dlsym, dl,, [AC_MSG_ERROR([Cannot find libdl])])
|
||||||
|
@ -93,7 +93,7 @@ AC_FUNC_MMAP
|
||||||
AC_FUNC_STAT
|
AC_FUNC_STAT
|
||||||
AC_FUNC_STRFTIME
|
AC_FUNC_STRFTIME
|
||||||
AC_FUNC_STRTOD
|
AC_FUNC_STRTOD
|
||||||
AC_CHECK_FUNCS([bzero gettimeofday memmove memset munmap setenv sqrt strerror getaddrinfo])
|
AC_CHECK_FUNCS([sigaltstack bzero gettimeofday memmove memset munmap setenv sqrt strerror getaddrinfo])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AC_CONFIG_FILES(Makefile src/Makefile scheme/Makefile doc/Makefile lib/Makefile benchmarks/Makefile)
|
AC_CONFIG_FILES(Makefile src/Makefile scheme/Makefile doc/Makefile lib/Makefile benchmarks/Makefile)
|
||||||
AC_OUTPUT #(Makefile src/Makefile scheme/Makefile doc/Makefile)
|
AC_OUTPUT #(Makefile src/Makefile scheme/Makefile doc/Makefile)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1331
|
1332
|
||||||
|
|
|
@ -49,7 +49,6 @@
|
||||||
(f 0 536870911000 536870911)
|
(f 0 536870911000 536870911)
|
||||||
(printf "[exact-integer-sqrt] Happy Happy Joy Joy\n"))
|
(printf "[exact-integer-sqrt] Happy Happy Joy Joy\n"))
|
||||||
|
|
||||||
|
|
||||||
(test-case-folding)
|
(test-case-folding)
|
||||||
(test-parse-flonums)
|
(test-parse-flonums)
|
||||||
(test-reader)
|
(test-reader)
|
||||||
|
@ -73,5 +72,5 @@
|
||||||
(test-fxdiv0-and-mod0)
|
(test-fxdiv0-and-mod0)
|
||||||
(test-fxlength)
|
(test-fxlength)
|
||||||
(test-bitwise-bit-count)
|
(test-bitwise-bit-count)
|
||||||
;(test-io)
|
(test-io)
|
||||||
(printf "Happy Happy Joy Joy\n")
|
(printf "Happy Happy Joy Joy\n")
|
||||||
|
|
|
@ -257,7 +257,7 @@ SYNOPSIS
|
||||||
|
|
||||||
void
|
void
|
||||||
register_alt_stack(){
|
register_alt_stack(){
|
||||||
#ifndef __CYGWIN__
|
#if HAVE_SIGALTSTACK
|
||||||
char* stk = mmap(0, SIGSTKSZ, PROT_READ|PROT_WRITE|PROT_EXEC,
|
char* stk = mmap(0, SIGSTKSZ, PROT_READ|PROT_WRITE|PROT_EXEC,
|
||||||
MAP_PRIVATE|MAP_ANON, -1, 0);
|
MAP_PRIVATE|MAP_ANON, -1, 0);
|
||||||
// char* stk = ik_mmap(SIGSTKSZ);
|
// char* stk = ik_mmap(SIGSTKSZ);
|
||||||
|
|
Loading…
Reference in New Issue