bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recognize functions added in future versions of Android


From: Bruno Haible
Subject: Re: Recognize functions added in future versions of Android
Date: Mon, 09 Jan 2023 21:29:22 +0100

I wrote:
>       * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Use
>       gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS_ONCE.

This is not sufficient, because there is another test for aligned_alloc
in a different place. This fixes it.


2023-01-09  Bruno Haible  <bruno@clisp.org>

        aligned-malloc: Don't disturb the module aligned_alloc.
        * modules/aligned-malloc (configure.ac): Test for aligned_alloc in the
        same way as module aligned_alloc does.

diff --git a/modules/aligned-malloc b/modules/aligned-malloc
index 018069510f..1ef05d1b76 100644
--- a/modules/aligned-malloc
+++ b/modules/aligned-malloc
@@ -14,7 +14,8 @@ memalign
 configure.ac:
 gl_MALLOC_ALIGNMENT
 AC_REQUIRE([AC_C_INLINE])
-AC_CHECK_FUNCS_ONCE([posix_memalign aligned_alloc memalign])
+AC_CHECK_FUNCS_ONCE([posix_memalign memalign])
+gl_CHECK_FUNCS_ANDROID([aligned_alloc], [[#include <stdlib.h>]])
 
 Makefile.am:
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]