diff options
Diffstat (limited to 'autoconf/m4/pa_add_headers.m4')
-rw-r--r-- | autoconf/m4/pa_add_headers.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/autoconf/m4/pa_add_headers.m4 b/autoconf/m4/pa_add_headers.m4 new file mode 100644 index 00000000..6aeab89d --- /dev/null +++ b/autoconf/m4/pa_add_headers.m4 @@ -0,0 +1,12 @@ +dnl -------------------------------------------------------------------------- +dnl PA_ADD_HEADERS(headers...) +dnl +dnl Call AC_CHECK_HEADERS(), and add to ac_includes_default if found +dnl -------------------------------------------------------------------------- +AC_DEFUN([_PA_ADD_HEADER], +[AC_CHECK_HEADERS([$1],[ac_includes_default="$ac_includes_default +#include <$1>" +])]) + +AC_DEFUN([PA_ADD_HEADERS], +[m4_map_args_w([$1],[_PA_ADD_HEADER(],[)])]) |