perf tools: Check libaudit availability for perf-trace builtin
authorNamhyung Kim <[email protected]>
Thu, 27 Sep 2012 11:23:38 +0000 (20:23 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 27 Sep 2012 13:56:40 +0000 (10:56 -0300)
commit4d29089c2b70ffeb61656ffd1b9c9c52602ddd44
tree8452e449fe38baaaba5cba636e62f343b7cde8fb
parent9ec60972a38011ad8a5676f4cd5e51ac508c36b6
perf tools: Check libaudit availability for perf-trace builtin

The newly added trace command requires an external audit library.

However it can cause a build error because it's not checked whether the
libaudit is installed on system:

    CC builtin-trace.o
  builtin-trace.c:7:22: fatal error: libaudit.h: No such file or directory
  compilation terminated.
  make: *** [builtin-trace.o] Error 1

Signed-off-by: Namhyung Kim <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ committer note: Added ", disables 'trace tool' to the feature warning msg ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/Makefile
tools/perf/config/feature-tests.mak
tools/perf/perf.c