summaryrefslogtreecommitdiff
path: root/m4/efl_check_funcs.m4
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-03-10 17:57:23 +0100
committerCedric BAIL <cedric.bail@samsung.com>2013-03-11 10:34:47 +0900
commit3fe8098e9c5b5bc2eea171bd5ee2c6de3f0bc5f4 (patch)
treee4dd43851ed89695243691285cb32ae3f33afa17 /m4/efl_check_funcs.m4
parentc97d05aca29972d8082b825b807c97c429d529bc (diff)
include some header files conditionally add specific test for fcntl
Diffstat (limited to 'm4/efl_check_funcs.m4')
-rw-r--r--m4/efl_check_funcs.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/m4/efl_check_funcs.m4 b/m4/efl_check_funcs.m4
index 59a38f7..b976caa 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:
6dnl dirfd 6dnl dirfd
7dnl dladdr 7dnl dladdr
8dnl dlopen 8dnl dlopen
9dnl fcntl
9dnl fnmatch 10dnl fnmatch
10dnl gettimeofday 11dnl gettimeofday
11dnl iconv 12dnl iconv
@@ -114,6 +115,22 @@ case "$host_os" in
114esac 115esac
115]) 116])
116 117
118dnl _EFL_CHECK_FUNC_FCNTL is for internal use
119dnl _EFL_CHECK_FUNC_FCNTL(EFL, VARIABLE)
120AC_DEFUN([_EFL_CHECK_FUNC_FCNTL],
121[
122case "$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 ;;
131esac
132])
133
117dnl _EFL_CHECK_FUNC_FNMATCH is for internal use 134dnl _EFL_CHECK_FUNC_FNMATCH is for internal use
118dnl _EFL_CHECK_FUNC_FNMATCH(EFL, VARIABLE) 135dnl _EFL_CHECK_FUNC_FNMATCH(EFL, VARIABLE)
119AC_DEFUN([_EFL_CHECK_FUNC_FNMATCH], 136AC_DEFUN([_EFL_CHECK_FUNC_FNMATCH],