[Top][All Lists]

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

Re: Definition of AC_CHECK_FUNCS

From: Mathieu Lirzin
Subject: Re: Definition of AC_CHECK_FUNCS
Date: Thu, 07 Apr 2016 09:16:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)


Nikita Karetnikov <address@hidden> writes:

> How can I dump the actual code that AC_CHECK_FUNCS expands to?
> In other words, what exactly is used to determine whether a function is
> available or not?

Since the result is stored in the 'ac_cv_func_FUNCTION' variable, you
can search for it in the generated configure script.  You will find
something like:

--8<---------------cut here---------------start------------->8---
  ac_fn_c_check_func "$LINENO" "foo" "ac_cv_func_foo"
if test "x$ac_cv_func_foo" = xyes; then :
--8<---------------cut here---------------end--------------->8---

then, you can you check the shell function 'ac_fn_c_check_func ()' to see
the code snippet used.

Does it answer your question?

Mathieu Lirzin

reply via email to

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