ldt.c \
link.c \
linux/asm_stat.h \
- linux/linux/signal.h \
linux/x32/asm_stat.h \
linux/x86_64/asm_stat.h \
listen.c \
linux/sh64/syscallent.h \
linux/sh64/userent.h \
linux/shuffle_scno.c \
+ linux/signal.h.in \
linux/signalent.h \
linux/smc_diag.h \
linux/sock_diag.h \
ioctl_iocdef.h ioctl_iocdef.i \
bpf_attr_check.c native_printer_decls.h native_printer_defs.h \
printers.h sen.h sys_func.h
-DISTCLEANFILES = gnu/stubs-32.h gnu/stubs-x32.h
+DISTCLEANFILES = gnu/stubs-32.h gnu/stubs-x32.h linux/linux/signal.h
include scno.am
]),,, [#include <linux/kvm.h>])
saved_CPPFLAGS="$CPPFLAGS"
-CPPFLAGS="$CPPFLAGS -I$srcdir/linux"
+
+AC_CACHE_CHECK([whether <linux/signal.h> can be used along with <signal.h>],
+ [st_cv_linux_signal],
+ [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
+#include <signal.h>
+#include <linux/signal.h>]],[])],
+ [st_cv_linux_signal=yes],
+ [st_cv_linux_signal=no])])
+if test "x$st_cv_linux_signal" = xno; then
+ mkdir -p linux/linux
+ cp $srcdir/linux/signal.h.in linux/linux/signal.h
+ CPPFLAGS="$CPPFLAGS -Ilinux"
+fi
+
AC_CHECK_TYPES([struct __aio_sigset],,, [#include <linux/aio_abi.h>])
+
CPPFLAGS="$saved_CPPFLAGS"
AC_CHECK_HEADERS([linux/btrfs.h], [