X-Git-Url: http://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fcf%2Flinux-test4.m4;h=af278de98017465fca5eb7e999f50299b826fd3c;hp=10032ed1868b50ed4f2ababdc0ad07d8024f6e93;hb=64ae64e972eabfda82de2de3374f83dbefbe79b0;hpb=352a43e8d3bc9d2ae06c668791760b8e6a2466ce diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4 index 10032ed..af278de 100644 --- a/src/cf/linux-test4.m4 +++ b/src/cf/linux-test4.m4 @@ -1079,3 +1079,16 @@ _eops.fh_to_parent(NULL, NULL, 0, 0);], AC_DEFINE([NEW_EXPORT_OPS], 1, [define if kernel uses new export ops]) fi]) +AC_DEFUN([LINUX_SEMAPHORE_H_EXISTS], [ + AC_MSG_CHECKING([for linux/semaphore.h existance]) + AC_CACHE_VAL([ac_cv_linux_semaphore_h_exists], [ + AC_TRY_KBUILD( +[#include ], +[return;], + ac_cv_linux_semaphore_h_exists=yes, + ac_cv_linux_semaphore_h_exists=no)]) + AC_MSG_RESULT($ac_cv_linux_semaphore_h_exists) + if test "x$ac_cv_linux_semaphore_h_exists" = "xyes"; then + AC_DEFINE([LINUX_SEMAPHORE_H], 1, [define if linux/semaphore.h exists]) + fi]) +