]> granicus.if.org Git - strace/blobdiff - configure.ac
Fix preadv/pwritev offset decoding
[strace] / configure.ac
index 75eafc8ad78cbc0de23e2203c38ca3f45d5d51d9..09691738aefe3cd80fe51b4451c8e96b8311245b 100644 (file)
@@ -150,6 +150,18 @@ AM_CONDITIONAL([X32], [test x$arch = xx32])
 
 AC_INCLUDEDIR
 
+AC_ARG_ENABLE([arm-oabi],
+             [AS_HELP_STRING([--enable-arm-oabi],
+                             [enable OABI support on ARM EABI])],
+             [], [enable_arm_oabi=no])
+case "$enable_arm_oabi" in
+       yes) enable_arm_oabi=1 ;;
+       no) enable_arm_oabi=0 ;;
+       *) AC_MSG_ERROR([bad value $enable_arm_oabi for arm-oabi option]) ;;
+esac
+AC_DEFINE_UNQUOTED([ENABLE_ARM_OABI], [$enable_arm_oabi],
+                  [Define to 1 if you want OABI support on ARM EABI.])
+
 gl_WARN_ADD([-Wall])
 gl_WARN_ADD([-Wwrite-strings])
 AC_ARG_ENABLE([gcc-Werror],
@@ -251,12 +263,11 @@ AC_CHECK_TYPES([struct __old_kernel_stat],,, [#include <asm/stat.h>])
 AC_CHECK_TYPES([struct pt_all_user_regs, struct ia64_fpreg, struct ptrace_peeksiginfo_args],,,
               [#include <sys/ptrace.h>])
 
-AC_CHECK_TYPES([struct user_desc],,, [#include <asm/ldt.h>])
-
 AC_CHECK_MEMBERS([struct utsname.domainname],,, [#include <sys/utsname.h>])
 
 AC_CHECK_MEMBERS([struct sigevent._sigev_un._pad,
-                 struct sigevent.__pad],,, [#include <signal.h>])
+                 struct sigevent.__pad,
+                 siginfo_t.si_syscall],,, [#include <signal.h>])
 
 AC_CHECK_TYPES([struct flock64],,, [#include <fcntl.h>])
 
@@ -297,6 +308,7 @@ AC_CACHE_CHECK([for BLKGETSIZE64], [ac_cv_have_blkgetsize64],
 
 AC_CHECK_SIZEOF([long])
 AC_CHECK_SIZEOF([long long])
+AC_CHECK_SIZEOF([off_t],,[#include <sys/types.h>])
 AC_CHECK_SIZEOF([rlim_t],,[#include <sys/resource.h>])
 
 AC_CACHE_CHECK([for SA_RESTORER], [st_cv_sa_restorer],
@@ -309,6 +321,15 @@ if test "x$st_cv_sa_restorer" != xno; then
                           [SA_RESTORER defined in <asm/signal.h>])
 fi
 
+AC_CACHE_CHECK([for __builtin_popcount], [st_cv_have___builtin_popcount],
+              [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [__builtin_popcount(0)])],
+                              [st_cv_have___builtin_popcount=yes],
+                              [st_cv_have___builtin_popcount=no])])
+if test "x$st_cv_have___builtin_popcount" = xyes; then
+       AC_DEFINE([HAVE___BUILTIN_POPCOUNT], [1],
+                 [Define to 1 if the system provides __builtin_popcount function])
+fi
+
 AC_PATH_PROG([PERL], [perl])
 
 AC_CONFIG_FILES([Makefile tests/Makefile])