diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2022-08-30 13:28:24 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2022-08-30 13:54:19 +0200 |
commit | bda93ed4bcdc1bf7493298f6c90076cc3a033223 (patch) | |
tree | 3e5544778f32311738060af98bc0847bb35ac8ce | |
parent | 60ca2ce20fef54b3441dda051beebbc1847db50d (diff) | |
download | lvm2-bda93ed4bcdc1bf7493298f6c90076cc3a033223.tar.gz |
configure: check for mallinfo2
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | include/configure.h.in | 3 |
3 files changed, 10 insertions, 1 deletions
@@ -7697,6 +7697,12 @@ then : printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h fi +ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2" +if test "x$ac_cv_func_mallinfo2" = xyes +then : + printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h + +fi ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit" if test "x$ac_cv_func_prlimit" = xyes then : diff --git a/configure.ac b/configure.ac index ba02f1f9b..3148370ad 100644 --- a/configure.ac +++ b/configure.ac @@ -153,7 +153,7 @@ AC_CHECK_FUNCS([ftruncate gethostname getpagesize gettimeofday localtime_r \ memchr memset mkdir mkfifo munmap nl_langinfo pselect realpath rmdir setenv \ setlocale strcasecmp strchr strcspn strdup strerror strncasecmp strndup \ strrchr strspn strstr strtol strtoul uname], , [AC_MSG_ERROR(bailing out)]) -AC_CHECK_FUNCS([ffs prlimit versionsort]) +AC_CHECK_FUNCS([ffs mallinfo2 prlimit versionsort]) AC_FUNC_ALLOCA AC_FUNC_CLOSEDIR_VOID AC_FUNC_CHOWN diff --git a/include/configure.h.in b/include/configure.h.in index 83de33ab4..63c296550 100644 --- a/include/configure.h.in +++ b/include/configure.h.in @@ -267,6 +267,9 @@ /* Define to 1 if you have the <machine/endian.h> header file. */ #undef HAVE_MACHINE_ENDIAN_H +/* Define to 1 if you have the `mallinfo2' function. */ +#undef HAVE_MALLINFO2 + /* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */ #undef HAVE_MALLOC |