78 |
fi |
fi |
79 |
AC_SUBST([CXX_CPU_SWITCH]) |
AC_SUBST([CXX_CPU_SWITCH]) |
80 |
|
|
81 |
|
mac=no |
82 |
|
linux=no |
83 |
|
case "$host" in |
84 |
|
*-*-darwin*) |
85 |
|
mac=yes |
86 |
|
;; |
87 |
|
*-*-linux*) |
88 |
|
linux=yes |
89 |
|
;; |
90 |
|
esac |
91 |
|
AM_CONDITIONAL(LINUX, test "$linux" = yes) |
92 |
|
AM_CONDITIONAL(MAC, test "$mac" = yes) |
93 |
|
|
94 |
# check if we're on MS Windows |
# check if we're on MS Windows |
95 |
AC_CHECK_HEADERS( |
AC_CHECK_HEADERS( |
96 |
mmsystem.h, |
mmsystem.h, |
728 |
AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.]) |
AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.]) |
729 |
fi |
fi |
730 |
|
|
731 |
|
config_pthread_testcancel="$mac" |
732 |
AC_ARG_ENABLE(pthread-testcancel, |
AC_ARG_ENABLE(pthread-testcancel, |
733 |
[ --enable-pthread-testcancel |
[ --enable-pthread-testcancel |
734 |
Enable pthread_testcancel() calls and avoid asynchronous |
Enable pthread_testcancel() calls and avoid |
735 |
cancel of pthreads (default=no).], |
asynchronous cancel of pthreads (default=yes |
736 |
|
for Mac targets, no otherwise).], |
737 |
[config_pthread_testcancel="$enableval"], |
[config_pthread_testcancel="$enableval"], |
738 |
[config_pthread_testcancel="no"] |
[] |
739 |
) |
) |
740 |
if test "$config_pthread_testcancel" = "yes"; then |
if test "$config_pthread_testcancel" = "yes"; then |
741 |
AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.]) |
AC_DEFINE_UNQUOTED(CONFIG_PTHREAD_TESTCANCEL, 1, [Define to 1 to enable pthread_testcancel() calls.]) |