[AC_HELP_STRING([--disable-alternative-syscalls],
[do not use the alternative _syscallX macros
provided by Herbert Poetzl (default: use them)])],
- [case $enable_val in
- (yes|no) ensc_use_alternative_syscall_macros=$enable_val;;
+ [case $enableval in
+ (yes|no) ensc_use_alternative_syscall_macros=$enableval;;
(*) AC_MSG_ERROR(['$enableval' is not a valid value for '--disable-alternative-syscalls']);;
esac],
[ensc_use_alternative_syscall_macros=yes])
AC_DEFUN([ENSC_SYSCALL],
[
- AC_REQUIRE([ENSC_KERNEL_HEADERS])
AC_REQUIRE([ENSC_SYSCALL_ALTERNATIVE])
+
AC_MSG_CHECKING([for syscall(2) invocation method])
AC_ARG_WITH([syscall],
[AC_HELP_STRING([--with-syscall=METHOD],
AC_COMPILE_IFELSE(AC_LANG_SOURCE([
#include "$srcdir/lib/syscall-wrap.h"
#include <errno.h>
+
#define __NR_foo0 300
#define __NR_foo1 301
#define __NR_foo2 302