Debian Codegraph @

m4/stdinc.m4

raw
1 #################################################################################
2 ## Utility functions for testing the availability a given header file
3 ## on a list of paths
4 #################################################################################
5 # HDF_CHECK_INC_PATH([header],[path1,path2,path3])
6
7 AC_DEFUN(
8 [HDF_CHECK_INC_PATH],
9 [
10 m4_foreach([path], [$2], [
11 inc_path=path
12
13 AS_IF(
14 [test "x$AS_TR_SH([ac_cv_header_$1])" != "xyes"],
15 [
16 saved_CPPFLAGS="$CPPFLAGS"
17 AS_IF([test -n "$inc_path"], [CPPFLAGS="$CPPFLAGS -I$inc_path"])
18
19 unset AS_TR_SH([ac_cv_header_$1])
20 AC_CHECK_HEADERS(
21 [$1],,[
22 CPPFLAGS="$saved_CPPFLAGS"
23 ])
24 ])
25 ])
26 ])