diff -u strace-4.8.orig/configure.ac strace-4.8/configure.ac --- strace-4.8.orig/configure.ac 2013-10-09 18:09:30.422701562 +0000 +++ strace-4.8/configure.ac 2013-10-09 18:10:22.316265565 +0000 @@ -1,7 +1,6 @@ dnl Process this file with autoconf to create configure. Use autoreconf. AC_PREREQ(2.57) AC_INIT([strace], - m4_esyscmd([./git-version-gen .tarball-version]), [strace-devel@lists.sourceforge.net]) AC_CONFIG_SRCDIR([strace.c]) AC_CONFIG_AUX_DIR([.]) @@ -213,7 +212,6 @@ ioctls.h linux/capability.h linux/perf_event.h - linux/ptrace.h linux/utsname.h mqueue.h netinet/sctp.h @@ -231,6 +229,9 @@ sys/uio.h sys/vfs.h ])) +if test "$HAVE_LINUX_PTRACE_H" = ""; then + AC_CHECK_HEADER([linux/ptrace.h]) +fi AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h], [], [], [#include #include