40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
AC_CHECK_HEADER(statgrab.h, [
AC_DEFINE(HAVE_LIBSTATGRAB_H, [1], [Define to 1 if you have the <statgrab.h> header file.])
AC_DEFINE(HAVE_LIBSTATGRAB, [1], [Define to 1 if you have sg_get_mem_stats from -lstatgrab])
LIBS="$LIBS $LIBSTATGRABFLAGS -lstatgrab"
AC_CHECK_LIB(statgrab, statgrab_drop_privileges, [
AC_DEFINE(HAVE_STATGRAB_DROP_PRIVILEGES, [1], [Define to 1 if you have statgrab_drop_privileges from -lstatgrab])
])
], [
CFLAGS="$OLDCFLAGS"
CPPFLAGS="$OLDCPPFLAGS"
AC_MSG_ERROR(Could not find statgrab.h)
])
], [
AC_MSG_ERROR(Could not find libstatgrab)
], $LIBSTATGRABFLAGS)
;;
esac
])
|
>
>
>
>
>
>
|
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
AC_CHECK_HEADER(statgrab.h, [
AC_DEFINE(HAVE_LIBSTATGRAB_H, [1], [Define to 1 if you have the <statgrab.h> header file.])
AC_DEFINE(HAVE_LIBSTATGRAB, [1], [Define to 1 if you have sg_get_mem_stats from -lstatgrab])
LIBS="$LIBS $LIBSTATGRABFLAGS -lstatgrab"
AC_CHECK_LIB(statgrab, statgrab_drop_privileges, [
AC_DEFINE(HAVE_STATGRAB_DROP_PRIVILEGES, [1], [Define to 1 if you have statgrab_drop_privileges from -lstatgrab])
])
AC_CHECK_LIB(statgrab, sg_free_mem_stats, [
AC_DEFINE(HAVE_SG_FREE_MEM_STATS, [1], [Define to 1 if you have sg_free_mem_stats from -lstatgrab])
])
AC_CHECK_LIB(statgrab, sg_free_swap_stats, [
AC_DEFINE(HAVE_SG_FREE_SWAP_STATS, [1], [Define to 1 if you have sg_free_swap_stats from -lstatgrab])
])
], [
CFLAGS="$OLDCFLAGS"
CPPFLAGS="$OLDCPPFLAGS"
AC_MSG_ERROR(Could not find statgrab.h)
])
], [
AC_MSG_ERROR(Could not find libstatgrab)
], $LIBSTATGRABFLAGS)
;;
esac
])
|