Next: , Previous: , Up: The Macros  


ax_ext_check_header

Synopsis

AX_EXT_CHECK_HEADER(<header>, <paths>).

Description

Check for <header> with -I<path> for each path in <paths> if need be. The first sucecssful path is chosen (eg if you say AX_EXT_CHECK_HEADER(foo.h, bar baz qux) and -Ibaz works then -Iqux will not be tested.

Any -I flags that locate a header are added to CFLAGS and CPPFLAGS. AS with AC_CHECK_HEADERS it causes HAVE_<header>_H to be defined as 1.

Example:

 AX_EXT_HAVE_HEADER(openssl/rsa.h, /usr/local/include /usr/local/ssl/include /usr/local/openssl/include)

Source Code

Download the latest version of ax_ext_check_header.m4 or browse the macro’s revision history.

License

Copyright © 2008 Duncan Simpson dps@simpson.demon.co.uk

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.