Re: Definition of AC_CHECK_FUNCS

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

 



Hello,

Nikita Karetnikov <nikita@xxxxxxxxxxxxxx> writes:

> How can I dump the actual code that AC_CHECK_FUNCS expands to?
> https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Generic-Functions.html
> 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

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux