summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-06-28 06:51:46 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-06-28 06:51:46 +0000
commit66bbafd78774c5b490e840e86f92fa73dcbdda71 (patch)
tree3d825ea40b45a7394478764648e8c4db6e8d9d2a /legacy
parent766a3ce890084b12d9ad80da00c50d4c75541fc6 (diff)
remove useless m4 files
SVN revision: 72973
Diffstat (limited to 'legacy')
-rw-r--r--legacy/eina/Makefile.am7
-rw-r--r--legacy/eina/m4/common/efl_dlfcn.m4136
-rw-r--r--legacy/eina/m4/common/efl_fnmatch.m431
-rw-r--r--legacy/eina/m4/common/efl_shm_open.m470
4 files changed, 4 insertions, 240 deletions
diff --git a/legacy/eina/Makefile.am b/legacy/eina/Makefile.am
index e11c7966c6..613b8d2e5e 100644
--- a/legacy/eina/Makefile.am
+++ b/legacy/eina/Makefile.am
@@ -40,15 +40,16 @@ eina.spec \
40eina.spec.in \ 40eina.spec.in \
41m4/common/efl_attribute.m4 \ 41m4/common/efl_attribute.m4 \
42m4/common/efl_benchmark.m4 \ 42m4/common/efl_benchmark.m4 \
43m4/common/efl_check_funcs.m4 \
43m4/common/efl_compiler_flag.m4 \ 44m4/common/efl_compiler_flag.m4 \
44m4/common/efl_coverage.m4 \ 45m4/common/efl_coverage.m4 \
45m4/common/efl_cpu.m4 \ 46m4/common/efl_cpu.m4 \
46m4/common/efl_doxygen.m4 \ 47m4/common/efl_doxygen.m4 \
47m4/common/efl_fnmatch.m4 \ 48m4/common/efl_examples.m4 \
48m4/common/efl_shm_open.m4 \ 49m4/common/efl_path_max.m4 \
49m4/common/efl_tests.m4 \ 50m4/common/efl_tests.m4 \
50m4/common/efl_threads.m4 \ 51m4/common/efl_threads.m4 \
51m4/common/efl_path_max.m4 \ 52m4/common/efl_voltron.m4 \
52m4/eina/eina_bench.m4 \ 53m4/eina/eina_bench.m4 \
53m4/eina/eina_check.m4 54m4/eina/eina_check.m4
54 55
diff --git a/legacy/eina/m4/common/efl_dlfcn.m4 b/legacy/eina/m4/common/efl_dlfcn.m4
deleted file mode 100644
index 53ca839797..0000000000
--- a/legacy/eina/m4/common/efl_dlfcn.m4
+++ /dev/null
@@ -1,136 +0,0 @@
1dnl Copyright (C) 2012 Vincent Torri <vtorri at univ-evry dot fr>
2dnl That code is public domain and can be freely used or copied.
3
4dnl Macro that check if dlopen and dladdr functions are available or not.
5
6dnl Usage: EFL_CHECK_DLOPEN([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
7dnl Call AC_SUBST(EFL_DLOPEN_LIBS)
8dnl Define HAVE_DLOPEN to 1if dlopen is available
9
10AC_DEFUN([EFL_CHECK_DLOPEN],
11[
12case "$host_os" in
13 mingw*)
14 _efl_have_dlopen="yes"
15 EFL_DLOPEN_LIBS="-ldl"
16 ;;
17 *)
18 _efl_have_dlopen="no"
19
20dnl Check is dlopen is in libc
21
22 AC_MSG_CHECKING([for dlopen in libc])
23 AC_LINK_IFELSE(
24 [AC_LANG_PROGRAM(
25 [[
26#include <dlfcn.h>
27 ]],
28 [[
29void *h = dlopen(0, 0);
30 ]])],
31 [_efl_have_dlopen="yes"],
32 [_efl_have_dlopen="no"])
33
34 AC_MSG_RESULT([${_efl_have_dlopen}])
35
36 if test "x${_efl_have_dlopen}" = "xno" ; then
37 AC_MSG_CHECKING([for dlopen in libdl])
38
39 LIBS_save="${LIBS}"
40 LIBS="${LIBS} -ldl"
41 AC_LINK_IFELSE(
42 [AC_LANG_PROGRAM(
43 [[
44#include <dlfcn.h>
45 ]],
46 [[
47void *h = dlopen(0, 0);
48 ]])],
49 [
50 EFL_DLOPEN_LIBS="-ldl"
51 _efl_have_dlopen="yes"
52 ],
53 [_efl_have_dlopen="no"])
54
55 LIBS="${LIBS_save}"
56
57 AC_MSG_RESULT([${_efl_have_dlopen}])
58 fi
59 ;;
60esac
61
62AC_SUBST([EFL_DLOPEN_LIBS])
63
64if test "x${_efl_have_dlopen}" = "xyes" ; then
65 AC_DEFINE([HAVE_DLOPEN], [1], [Define to 1 if you have the `dlopen' function.])
66fi
67
68AS_IF([test "x${_efl_have_dlopen}" = "xyes"], [$1], [$2])
69])
70
71dnl Usage: EFL_CHECK_DLADDR([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
72dnl Call AC_SUBST(EFL_DLADDR_LIBS)
73dnl Define HAVE_DLADDR to 1if dladdr is available
74
75AC_DEFUN([EFL_CHECK_DLADDR],
76[
77case "$host_os" in
78 mingw*)
79 _efl_have_dladdr="yes"
80 EFL_DLADDR_LIBS="-ldl"
81 ;;
82 *)
83 _efl_have_dladdr="no"
84
85dnl Check is dladdr is in libc
86
87 AC_MSG_CHECKING([for dladdr in libc])
88 AC_LINK_IFELSE(
89 [AC_LANG_PROGRAM(
90 [[
91#define _GNU_SOURCE
92#include <dlfcn.h>
93 ]],
94 [[
95int res = dladdr(0, 0);
96 ]])],
97 [_efl_have_dladdr="yes"],
98 [_efl_have_dladdr="no"])
99
100 AC_MSG_RESULT([${_efl_have_dladdr}])
101
102 if test "x${_efl_have_dladdr}" = "xno" ; then
103 AC_MSG_CHECKING([for dladdr in libdl])
104
105 LIBS_save="${LIBS}"
106 LIBS="${LIBS} -ldl"
107 AC_LINK_IFELSE(
108 [AC_LANG_PROGRAM(
109 [[
110#define _GNU_SOURCE
111#include <dlfcn.h>
112 ]],
113 [[
114int res = dladdr(0, 0);
115 ]])],
116 [
117 EFL_DLADDR_LIBS="-ldl"
118 _efl_have_dladdr="yes"
119 ],
120 [_efl_have_dladdr="no"])
121
122 LIBS="${LIBS_save}"
123
124 AC_MSG_RESULT([${_efl_have_dladdr}])
125 fi
126 ;;
127esac
128
129AC_SUBST([EFL_DLADDR_LIBS])
130
131if test "x${_efl_have_dladdr}" = "xyes" ; then
132 AC_DEFINE([HAVE_DLADDR], [1], [Define to 1 if you have the `dladdr' function.])
133fi
134
135AS_IF([test "x${_efl_have_dladdr}" = "xyes"], [$1], [$2])
136])
diff --git a/legacy/eina/m4/common/efl_fnmatch.m4 b/legacy/eina/m4/common/efl_fnmatch.m4
deleted file mode 100644
index a92ac6b636..0000000000
--- a/legacy/eina/m4/common/efl_fnmatch.m4
+++ /dev/null
@@ -1,31 +0,0 @@
1dnl Copyright (C) 2010 Vincent Torri <vtorri at univ-evry dot fr>
2dnl That code is public domain and can be freely used or copied.
3
4dnl Macro that check if fnmatch functions are available or not.
5
6dnl Usage: EFL_CHECK_FNMATCH([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
7dnl Call AC_SUBST(EFL_FNMATCH_LIBS)
8
9AC_DEFUN([EFL_CHECK_FNMATCH],
10[
11
12AC_CHECK_HEADER([fnmatch.h], [_efl_have_fnmatch="yes"], [_efl_have_fnmatch="no"])
13
14if test "x${_efl_have_fnmatch}" = "xyes" ; then
15 AC_SEARCH_LIBS([fnmatch],
16 [fnmatch evil iberty],
17 [_efl_have_fnmatch="yes"],
18 [_efl_have_fnmatch="no"])
19fi
20
21EFL_FNMATCH_LIBS=""
22
23if (! test "x${ac_cv_search_fnmatch}" = "xnone required") && (! test "x${ac_cv_search_fnmatch}" = "xno") && (! test "x${ac_cv_search_fnmatch}" = "x-levil") ; then
24 EFL_FNMATCH_LIBS=${ac_cv_search_fnmatch}
25fi
26
27AC_SUBST(EFL_FNMATCH_LIBS)
28
29AS_IF([test "x$_efl_have_fnmatch" = "xyes"], [$1], [$2])
30
31])
diff --git a/legacy/eina/m4/common/efl_shm_open.m4 b/legacy/eina/m4/common/efl_shm_open.m4
deleted file mode 100644
index 46254c2549..0000000000
--- a/legacy/eina/m4/common/efl_shm_open.m4
+++ /dev/null
@@ -1,70 +0,0 @@
1dnl Copyright (C) 2012 Vincent Torri <vtorri at univ-evry dot fr>
2dnl That code is public domain and can be freely used or copied.
3
4dnl Macro that check if shm_open function is available or not.
5
6dnl Usage: EFL_CHECK_SHM_OPEN([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
7dnl Call AC_SUBST(EFL_SHM_OPEN_LIBS)
8dnl Define HAVE_SHM_OPEN to 1if shm_open is available
9
10AC_DEFUN([EFL_CHECK_SHM_OPEN],
11[
12_efl_have_shm_open="no"
13
14dnl Check is shm_open is in libc
15
16AC_MSG_CHECKING([for shm_open in libc])
17AC_LINK_IFELSE(
18 [AC_LANG_PROGRAM(
19 [[
20#include <sys/mman.h>
21#include <sys/stat.h> /* For mode constants */
22#include <fcntl.h> /* For O_* constants */
23 ]],
24 [[
25int fd;
26
27fd = shm_open("/dev/null", O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO);
28 ]])],
29 [_efl_have_shm_open="yes"],
30 [_efl_have_shm_open="no"])
31
32AC_MSG_RESULT([${_efl_have_shm_open}])
33
34if test "x${_efl_have_shm_open}" = "xno" ; then
35 AC_MSG_CHECKING([for shm_open in librt])
36
37 LIBS_save="${LIBS}"
38 LIBS="${LIBS} -lrt"
39 AC_LINK_IFELSE(
40 [AC_LANG_PROGRAM(
41 [[
42#include <sys/mman.h>
43#include <sys/stat.h> /* For mode constants */
44#include <fcntl.h> /* For O_* constants */
45 ]],
46 [[
47int fd;
48
49fd = shm_open("/dev/null", O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO);
50 ]])],
51 [
52 EFL_SHM_OPEN_LIBS="-lrt"
53 _efl_have_shm_open="yes"
54 ],
55 [_efl_have_shm_open="no"])
56
57 LIBS="${LIBS_save}"
58
59 AC_MSG_RESULT([${_efl_have_shm_open}])
60fi
61
62AC_SUBST([EFL_SHM_OPEN_LIBS])
63
64if test "x${_efl_have_shm_open}" = "xyes" ; then
65 AC_DEFINE([HAVE_SHM_OPEN], [1], [Define to 1 if you have the `shm_open' function.])
66fi
67
68AS_IF([test "x${_efl_have_shm_open}" = "xyes"], [$1], [$2])
69
70])