File: stdinc.m4

package info (click to toggle)
hdf-eos4 3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,960 kB
  • sloc: ansic: 43,570; sh: 11,324; fortran: 9,649; makefile: 261
file content (26 lines) | stat: -rw-r--r-- 891 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#################################################################################
## Utility functions for testing the availability a given header file
## on a list of paths
#################################################################################
# HDF_CHECK_INC_PATH([header],[path1,path2,path3])

AC_DEFUN(
    [HDF_CHECK_INC_PATH],
    [
        m4_foreach([path], [$2], [
            inc_path=path

            AS_IF(
                [test "x$AS_TR_SH([ac_cv_header_$1])" != "xyes"],
                [
                    saved_CPPFLAGS="$CPPFLAGS"
                    AS_IF([test -n "$inc_path"], [CPPFLAGS="$CPPFLAGS -I$inc_path"])

                    unset AS_TR_SH([ac_cv_header_$1])
                    AC_CHECK_HEADERS(
                        [$1],,[
                            CPPFLAGS="$saved_CPPFLAGS"
                        ])
                ])
        ])
    ])