diff options
author | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2017-04-12 12:24:42 +0200 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2017-06-07 13:26:29 +0300 |
commit | d7d3f4e87b827152f00bdf89a67871736672b492 (patch) | |
tree | 888848e2c53af222744643fcb38794157e2f8894 /configure.ac | |
parent | 86b59f8474a38b7a0e9c4cf68e32aba664878107 (diff) |
lib/igt_aux: Make procps optional
Android does not have procps and it's not easy to compile it as a
dependency.
We can provide alternative, "naive" implementation that just shells out
to external commands (i.e. pkill and lsof) in case we do not have the
library.
v2: have separate functions for naive impls (J. Nikula)
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 82857a83..7e1003b9 100644 --- a/configure.ac +++ b/configure.ac @@ -123,7 +123,11 @@ AC_SUBST(ASSEMBLER_WARN_CFLAGS) PKG_CHECK_MODULES(DRM, [libdrm]) PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10]) PKG_CHECK_MODULES(KMOD, [libkmod]) -PKG_CHECK_MODULES(PROCPS, [libprocps]) +PKG_CHECK_MODULES(PROCPS, [libprocps], [procps=yes], [procps=no]) +AM_CONDITIONAL(HAVE_PROCPS, [test "x$procps" = xyes]) +if test x"$procps" = xyes; then + AC_DEFINE(HAVE_PROCPS,1,[Enable process managment without shelling out]) +fi PKG_CHECK_MODULES(VALGRIND, [valgrind], [have_valgrind=yes], [have_valgrind=no]) if test x$have_valgrind = xyes; then |