Fix altstack check to work again on OSX with -O2.
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 22 May 2012 21:43:34 +0000 (18:43 -0300)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 22 May 2012 21:48:23 +0000 (18:48 -0300)
commit75e931f6eb95022c51c06e3fd9e407b7dd0d7e7c
treef13db21993f90c4defc13b098fe6facb1296e512
parentcbaf09713f9e5a72a3aa23ed50b85e43aec7bbff
Fix altstack check to work again on OSX with -O2.

* configure.in: The altstack check depends on raising
a sigsegv to verify if it works or not. A sigsegv, by its
own nature is born out of undefined behavior. Such a thing
the almighty C compilers are free to optimize in whatever
pleases them the most.

GCC, under -O2, when it can prove a given memory store will
lead to undefined behavior will simply remove it leaving no
trace back. The solution was to use a variable gcc can't get
frisky with.

This raises altstack on OSX back from the dead.
configure.in