Xiaoguang Wang | 477ea28 | 2014-03-19 16:14:43 +0800 | [diff] [blame] | 1 | dnl |
| 2 | dnl Copyright (c) 2014 Fujitsu Ltd. |
| 3 | dnl Author: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com> |
| 4 | dnl |
| 5 | dnl This program is free software; you can redistribute it and/or modify |
| 6 | dnl it under the terms of the GNU General Public License as published by |
| 7 | dnl the Free Software Foundation; either version 2 of the License, or |
| 8 | dnl (at your option) any later version. |
| 9 | dnl |
| 10 | dnl This program is distributed in the hope that it will be useful, |
| 11 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See |
| 13 | dnl the GNU General Public License for more details. |
| 14 | dnl |
| 15 | dnl You should have received a copy of the GNU General Public License |
| 16 | dnl along with this program; if not, write to the Free Software |
| 17 | dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | dnl |
| 19 | |
| 20 | dnl |
| 21 | dnl LTP_CHECK_SYSCALL_FCNTL |
| 22 | dnl ---------------------------- |
| 23 | dnl |
| 24 | AC_DEFUN([LTP_CHECK_SYSCALL_FCNTL],[dnl |
| 25 | AC_MSG_CHECKING([for fcntl f_owner_ex]) |
| 26 | AC_COMPILE_IFELSE([AC_LANG_SOURCE([ |
| 27 | #define _GNU_SOURCE |
| 28 | #include <fcntl.h> |
| 29 | int main(void) { |
| 30 | struct f_owner_ex tst_own_ex; |
| 31 | return 0; |
| 32 | }])],[has_f_owner_ex="yes"]) |
| 33 | |
| 34 | if test "x$has_f_owner_ex" = xyes; then |
| 35 | AC_DEFINE(HAVE_STRUCT_F_OWNER_EX,1,[Define to 1 if you have struct f_owner_ex]) |
| 36 | AC_MSG_RESULT(yes) |
| 37 | else |
| 38 | AC_MSG_RESULT(no) |
| 39 | fi |
| 40 | ]) |