comparison dep/animone/configure.ac @ 270:0718f538c5f9

dep/animone: filter open files by access mode
author Paper <paper@paper.us.eu.org>
date Fri, 12 Apr 2024 19:13:50 -0400
parents 1a6a5d3a94cd
children a4257370de16
comparison
equal deleted inserted replaced
269:3efac0541151 270:0718f538c5f9
40 build_linux=yes 40 build_linux=yes
41 AC_DEFINE([LINUX]) 41 AC_DEFINE([LINUX])
42 ;; 42 ;;
43 *) 43 *)
44 dnl BSDs 44 dnl BSDs
45 build_bsd=yes
46 AC_DEFINE([BSD])
47 AC_CHECK_LIB([util], [kinfo_getfile], [build_libutil=yes], [build_libutil=no]) 45 AC_CHECK_LIB([util], [kinfo_getfile], [build_libutil=yes], [build_libutil=no])
48
49 dnl if we have this function it means kvm_openfiles likely also supports NULL values,
50 dnl i.e., loading the currently running kernel
51 AC_CHECK_LIB([kvm], [kvm_getfiles], [build_kvm=yes], [build_kvm=no]) 46 AC_CHECK_LIB([kvm], [kvm_getfiles], [build_kvm=yes], [build_kvm=no])
52 47
53 if test "x$build_kvm" = "xyes"; then 48 if test "x$build_kvm" = "xyes"; then
54 AC_DEFINE([LIBKVM]) 49 AC_DEFINE([LIBKVM])
50 AC_DEFINE([BSD])
55 elif test "x$build_libutil" = "xyes"; then 51 elif test "x$build_libutil" = "xyes"; then
56 AC_DEFINE([LIBUTIL]) 52 AC_DEFINE([LIBUTIL])
53 AC_DEFINE([BSD])
57 fi 54 fi
58 ;; 55 ;;
59 esac 56 esac
60 57
61 if test "x$build_osx" != "xyes" && test "x$build_windows" != "xyes"; then 58 if test "x$build_osx" != "xyes" && test "x$build_windows" != "xyes"; then