mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Introduce an autoconf macro to check for the include path of certain headers that can be different between OSes. Use such macro to find the correct path for the endian.h header, and modify the users of endian.h to use the output of such check. Suggested-by: Ian Jackson <iwj@xenproject.org> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Ian Jackson <iwj@xenproject.org> Release-Acked-by: Ian Jackson <iwj@xenproject.org>
14 lines
325 B
Plaintext
14 lines
325 B
Plaintext
AC_DEFUN([AX_FIND_HEADER], [
|
|
ax_found=0
|
|
m4_foreach_w([header], $2, [
|
|
AS_IF([test "$ax_found" = "0"], [
|
|
AC_CHECK_HEADER(header, [
|
|
AC_DEFINE($1, [<header>], [Header path for $1])
|
|
ax_found=1])
|
|
])
|
|
])
|
|
AS_IF([test "$ax_found" = "0"], [
|
|
AC_MSG_ERROR([No header found from list $2])
|
|
])
|
|
])
|