diff options
author | Cedric Bail <cedric.bail@free.fr> | 2013-03-10 17:57:23 +0100 |
---|---|---|
committer | Cedric BAIL <cedric.bail@samsung.com> | 2013-03-11 10:34:47 +0900 |
commit | 3fe8098e9c5b5bc2eea171bd5ee2c6de3f0bc5f4 (patch) | |
tree | e4dd43851ed89695243691285cb32ae3f33afa17 /m4 | |
parent | c97d05aca29972d8082b825b807c97c429d529bc (diff) |
include some header files conditionally add specific test for fcntl
Diffstat (limited to '')
-rw-r--r-- | m4/efl_check_funcs.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/m4/efl_check_funcs.m4 b/m4/efl_check_funcs.m4 index 59a38f7894..b976caa0e8 100644 --- a/m4/efl_check_funcs.m4 +++ b/m4/efl_check_funcs.m4 | |||
@@ -6,6 +6,7 @@ dnl Macros that check functions availability for the EFL: | |||
6 | dnl dirfd | 6 | dnl dirfd |
7 | dnl dladdr | 7 | dnl dladdr |
8 | dnl dlopen | 8 | dnl dlopen |
9 | dnl fcntl | ||
9 | dnl fnmatch | 10 | dnl fnmatch |
10 | dnl gettimeofday | 11 | dnl gettimeofday |
11 | dnl iconv | 12 | dnl iconv |
@@ -114,6 +115,22 @@ case "$host_os" in | |||
114 | esac | 115 | esac |
115 | ]) | 116 | ]) |
116 | 117 | ||
118 | dnl _EFL_CHECK_FUNC_FCNTL is for internal use | ||
119 | dnl _EFL_CHECK_FUNC_FCNTL(EFL, VARIABLE) | ||
120 | AC_DEFUN([_EFL_CHECK_FUNC_FCNTL], | ||
121 | [ | ||
122 | case "$host_os" in | ||
123 | mingw*) | ||
124 | $2="yes" | ||
125 | ;; | ||
126 | *) | ||
127 | EFL_FIND_LIB_FOR_CODE([$1], [], [$2], [[ | ||
128 | #include <fcntl.h> | ||
129 | ]], [[int g = fcntl(0, 0);]]) | ||
130 | ;; | ||
131 | esac | ||
132 | ]) | ||
133 | |||
117 | dnl _EFL_CHECK_FUNC_FNMATCH is for internal use | 134 | dnl _EFL_CHECK_FUNC_FNMATCH is for internal use |
118 | dnl _EFL_CHECK_FUNC_FNMATCH(EFL, VARIABLE) | 135 | dnl _EFL_CHECK_FUNC_FNMATCH(EFL, VARIABLE) |
119 | AC_DEFUN([_EFL_CHECK_FUNC_FNMATCH], | 136 | AC_DEFUN([_EFL_CHECK_FUNC_FNMATCH], |