]> granicus.if.org Git - strace/blobdiff - configure.ac
print_array: enhance printing of unfetchable object addresses
[strace] / configure.ac
index fb9053a5fc0e8d98fae066491d2a8b751b347af1..231a861b3e3a95037b39658835af4157e84e6f80 100644 (file)
@@ -322,7 +322,9 @@ AC_CHECK_TYPES(m4_normalize([
        struct flock,
        struct flock64,
        struct __kernel_flock,
-       struct __kernel_flock64
+       struct __kernel_flock64,
+       struct f_owner_ex,
+       struct __kernel_f_owner_ex
 ]),,,
 [#include <sys/types.h>
 #include <linux/fcntl.h>])
@@ -382,7 +384,6 @@ AC_CHECK_HEADERS(m4_normalize([
        asm/cachectl.h
        asm/guarded_storage.h
        asm/sysmips.h
-       bluetooth/bluetooth.h
        elf.h
        iconv.h
        inttypes.h
@@ -469,6 +470,12 @@ AC_CHECK_HEADERS([linux/bpf.h], [
        st_BPF_ATTR
 ])
 
+AC_CHECK_HEADERS([bluetooth/bluetooth.h], [
+       AC_CHECK_MEMBERS([struct sockaddr_l2.l2_bdaddr_type],,,
+                        [#include <bluetooth/bluetooth.h>
+                        #include <bluetooth/l2cap.h>])
+])
+
 AC_CHECK_TYPES(m4_normalize([
        struct br_mdb_entry,
        struct br_port_msg
@@ -797,13 +804,31 @@ fi
 
 AC_CACHE_CHECK([for static_assert], [st_cv_have_static_assert],
               [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <assert.h>]],
-                                               [[static_assert(1,"")]])],
+                                               [[static_assert(1,"")]]
+                                              )
+                              ],
                               [st_cv_have_static_assert=yes],
-                              [st_cv_have_static_assert=no])])
-if test "x$st_cv_have_static_assert" = xyes; then
-       AC_DEFINE([HAVE_STATIC_ASSERT], [1],
-                 [Define to 1 if the system provides static_assert])
-fi
+                              [AC_LINK_IFELSE([AC_LANG_PROGRAM([],
+                                                               [[_Static_assert(1,"")]]
+                                                              )
+                                              ],
+                                              [st_cv_have_static_assert=_Static_assert],
+                                              [st_cv_have_static_assert=no]
+                                             )
+                              ]
+                             )
+              ]
+             )
+case "x$st_cv_have_static_assert" in
+       xyes)
+               AC_DEFINE([HAVE_STATIC_ASSERT], [1],
+                         [Define to 1 if the system provides static_assert])
+               ;;
+       x_Static_assert)
+               AC_DEFINE([HAVE__STATIC_ASSERT], [1],
+                         [Define to 1 if the system provides _Static_assert])
+               ;;
+esac
 
 AC_CHECK_LIB([dl], [dladdr], [dl_LIBS='-ldl'], [dl_LIBS=])
 if test "x$ac_cv_lib_dl_dladdr" = xyes; then