1 # Test for a working setcontext implementation.
3 # Copyright (C) 2003 Richard W.M. Jones <rich@annexia.org>
5 # Older versions of Linux had the setcontext/makecontext functions
6 # in glibc, but the functions were null. Duh! So the only way to
7 # determine if these functions are implemented and actually work
13 $srcdir/conf/test_setcontext.c -o conf/test_setcontext 2>/dev/null
15 if conf/test_setcontext | grep 'ok' >/dev/null 2>&1; then
20 if [ "x$result" = "xyes" ]; then
21 echo "#define HAVE_WORKING_SETCONTEXT 1" >> config.h
23 echo "/* #define HAVE_WORKING_SETCONTEXT 1 */" >> config.h