Using HAVE_FOO_H and HAVE_FOO
Paul Brook
paul@codesourcery.com
Mon Jan 31 21:33:00 GMT 2005
On Monday 31 January 2005 20:53, François-Xavier Coudert wrote:
> Hi,
>
> I have written some code for inclusion into libgfortran (the gfortran
> runtime library), parts of which use Unix-only headers and functions,
> such as the <sys/types.h> and <signal.h> headers or the kill function.
>
> In current code I could look at, such headers and functions are
> protected by ad hoc #ifdef (like HAVE_SYS_TYPES_H). However, I found no
> occurence of things such as HAVE_SIGNAL_H or HAVE_KILL (for <signal.h>
> and the kill library call). How can I add them to configure.ac (if I
> worked out the place correctly)?
AC_CHECK_HEADERS and/or AC_CHECK_FUNCS
Paul
More information about the Gcc
mailing list