configure : add option --enable-rusage

This commit is contained in:
Katsukura
2017-04-27 14:00:59 +09:00
parent 3fe2257929
commit 8c9b207557
5 changed files with 33 additions and 8 deletions

22
configure vendored
View File

@@ -629,6 +629,7 @@ DCFA_VERSION
MCKERNEL_VERSION
IHK_VERSION
ENABLE_MCOVERLAYFS
ENABLE_RUSAGE
MANDIR
KERNDIR
KMODDIR
@@ -696,6 +697,7 @@ with_system_map
enable_dcfa
enable_memdump
enable_mcoverlayfs
enable_rusage
'
ac_precious_vars='build_alias
host_alias
@@ -1318,6 +1320,7 @@ Optional Features:
--enable-dcfa Enable DCFA modules
--enable-memdump enable dumping memory and analyzing a dump
--enable-mcoverlayfs enable mcoverlayfs implementation
--enable-rusage enable rusage implementation
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@@ -2111,6 +2114,12 @@ else
ENABLE_MCOVERLAYFS=yes
fi
# Check whether --enable-rusage was given.
if test "${enable_rusage+set}" = set; then :
enableval=$enable_rusage; ENABLE_RUSAGE=$enableval
else
ENABLE_RUSAGE=no
fi
case "X$WITH_KERNELSRC" in
Xyes | Xno | X)
@@ -3895,6 +3904,16 @@ $as_echo "$as_me: mcoverlayfs is disabled" >&6;}
fi
if test "x$ENABLE_RUSAGE" = "xyes" ; then
$as_echo "#define ENABLE_RUSAGE 1" >>confdefs.h
{ $as_echo "$as_me:${as_lineno-$LINENO}: rusage is enabled" >&5
$as_echo "$as_me: rusage is enabled" >&6;}
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: rusage is disabled" >&5
$as_echo "$as_me: rusage is disabled" >&6;}
fi
@@ -5118,6 +5137,9 @@ _ACEOF
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ENABLE_RUSAGE=$ENABLE_RUSAGE
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF