forked from markfasheh/ocfs2-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ocfs2-test: Port header-checker macro and api-compat mechanism from o…
…cfs2 to better use system call. This patch adds OCFS2_CHECK_HEADERS macro in the build infrastructure to allow us to search for symbols in userspace headers. Signed-off-by: Tristan Ye <[email protected]> Signed-off-by: Sunil Mushran <[email protected]>
- Loading branch information
Tristan Ye
committed
Apr 16, 2009
1 parent
11d1858
commit 6dd6ab2
Showing
5 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
m4_include([pkg.m4]) | ||
m4_include([runlog.m4]) | ||
m4_include([python.m4]) | ||
m4_include([kfeature.m4]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
AC_DEFUN([OCFS2_CHECK_HEADERS], | ||
[AC_MSG_CHECKING([for $1]) | ||
kernel_check_regexp="m4_default([$5], [\<$1(])" | ||
kernel_check_headers= | ||
for kfile in $2; do | ||
kernel_check_headers="$kernel_check_headers /usr/include/$kfile" | ||
done | ||
if grep "$kernel_check_regexp" $kernel_check_headers >/dev/null 2>&1 ; then | ||
m4_default([$3], :) | ||
AC_MSG_RESULT(yes) | ||
else | ||
m4_default([$4], :) | ||
AC_MSG_RESULT(no) | ||
fi | ||
])# OCFS2_CHECK_HEADERS |