From: caro Date: Thu, 28 Jun 2012 06:51:46 +0000 (+0000) Subject: remove useless m4 files X-Git-Tag: submit/2.0alpha-wayland/20121127.222009~105 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=036a415d9835bcf18c41393d2332b17abd01e90b;p=profile%2Fivi%2Feina.git remove useless m4 files git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@72973 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/Makefile.am b/Makefile.am index e11c796..613b8d2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,15 +40,16 @@ eina.spec \ eina.spec.in \ m4/common/efl_attribute.m4 \ m4/common/efl_benchmark.m4 \ +m4/common/efl_check_funcs.m4 \ m4/common/efl_compiler_flag.m4 \ m4/common/efl_coverage.m4 \ m4/common/efl_cpu.m4 \ m4/common/efl_doxygen.m4 \ -m4/common/efl_fnmatch.m4 \ -m4/common/efl_shm_open.m4 \ +m4/common/efl_examples.m4 \ +m4/common/efl_path_max.m4 \ m4/common/efl_tests.m4 \ m4/common/efl_threads.m4 \ -m4/common/efl_path_max.m4 \ +m4/common/efl_voltron.m4 \ m4/eina/eina_bench.m4 \ m4/eina/eina_check.m4 diff --git a/m4/common/efl_dlfcn.m4 b/m4/common/efl_dlfcn.m4 deleted file mode 100644 index 53ca839..0000000 --- a/m4/common/efl_dlfcn.m4 +++ /dev/null @@ -1,136 +0,0 @@ -dnl Copyright (C) 2012 Vincent Torri -dnl That code is public domain and can be freely used or copied. - -dnl Macro that check if dlopen and dladdr functions are available or not. - -dnl Usage: EFL_CHECK_DLOPEN([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -dnl Call AC_SUBST(EFL_DLOPEN_LIBS) -dnl Define HAVE_DLOPEN to 1if dlopen is available - -AC_DEFUN([EFL_CHECK_DLOPEN], -[ -case "$host_os" in - mingw*) - _efl_have_dlopen="yes" - EFL_DLOPEN_LIBS="-ldl" - ;; - *) - _efl_have_dlopen="no" - -dnl Check is dlopen is in libc - - AC_MSG_CHECKING([for dlopen in libc]) - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#include - ]], - [[ -void *h = dlopen(0, 0); - ]])], - [_efl_have_dlopen="yes"], - [_efl_have_dlopen="no"]) - - AC_MSG_RESULT([${_efl_have_dlopen}]) - - if test "x${_efl_have_dlopen}" = "xno" ; then - AC_MSG_CHECKING([for dlopen in libdl]) - - LIBS_save="${LIBS}" - LIBS="${LIBS} -ldl" - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#include - ]], - [[ -void *h = dlopen(0, 0); - ]])], - [ - EFL_DLOPEN_LIBS="-ldl" - _efl_have_dlopen="yes" - ], - [_efl_have_dlopen="no"]) - - LIBS="${LIBS_save}" - - AC_MSG_RESULT([${_efl_have_dlopen}]) - fi - ;; -esac - -AC_SUBST([EFL_DLOPEN_LIBS]) - -if test "x${_efl_have_dlopen}" = "xyes" ; then - AC_DEFINE([HAVE_DLOPEN], [1], [Define to 1 if you have the `dlopen' function.]) -fi - -AS_IF([test "x${_efl_have_dlopen}" = "xyes"], [$1], [$2]) -]) - -dnl Usage: EFL_CHECK_DLADDR([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -dnl Call AC_SUBST(EFL_DLADDR_LIBS) -dnl Define HAVE_DLADDR to 1if dladdr is available - -AC_DEFUN([EFL_CHECK_DLADDR], -[ -case "$host_os" in - mingw*) - _efl_have_dladdr="yes" - EFL_DLADDR_LIBS="-ldl" - ;; - *) - _efl_have_dladdr="no" - -dnl Check is dladdr is in libc - - AC_MSG_CHECKING([for dladdr in libc]) - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#define _GNU_SOURCE -#include - ]], - [[ -int res = dladdr(0, 0); - ]])], - [_efl_have_dladdr="yes"], - [_efl_have_dladdr="no"]) - - AC_MSG_RESULT([${_efl_have_dladdr}]) - - if test "x${_efl_have_dladdr}" = "xno" ; then - AC_MSG_CHECKING([for dladdr in libdl]) - - LIBS_save="${LIBS}" - LIBS="${LIBS} -ldl" - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#define _GNU_SOURCE -#include - ]], - [[ -int res = dladdr(0, 0); - ]])], - [ - EFL_DLADDR_LIBS="-ldl" - _efl_have_dladdr="yes" - ], - [_efl_have_dladdr="no"]) - - LIBS="${LIBS_save}" - - AC_MSG_RESULT([${_efl_have_dladdr}]) - fi - ;; -esac - -AC_SUBST([EFL_DLADDR_LIBS]) - -if test "x${_efl_have_dladdr}" = "xyes" ; then - AC_DEFINE([HAVE_DLADDR], [1], [Define to 1 if you have the `dladdr' function.]) -fi - -AS_IF([test "x${_efl_have_dladdr}" = "xyes"], [$1], [$2]) -]) diff --git a/m4/common/efl_fnmatch.m4 b/m4/common/efl_fnmatch.m4 deleted file mode 100644 index a92ac6b..0000000 --- a/m4/common/efl_fnmatch.m4 +++ /dev/null @@ -1,31 +0,0 @@ -dnl Copyright (C) 2010 Vincent Torri -dnl That code is public domain and can be freely used or copied. - -dnl Macro that check if fnmatch functions are available or not. - -dnl Usage: EFL_CHECK_FNMATCH([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -dnl Call AC_SUBST(EFL_FNMATCH_LIBS) - -AC_DEFUN([EFL_CHECK_FNMATCH], -[ - -AC_CHECK_HEADER([fnmatch.h], [_efl_have_fnmatch="yes"], [_efl_have_fnmatch="no"]) - -if test "x${_efl_have_fnmatch}" = "xyes" ; then - AC_SEARCH_LIBS([fnmatch], - [fnmatch evil iberty], - [_efl_have_fnmatch="yes"], - [_efl_have_fnmatch="no"]) -fi - -EFL_FNMATCH_LIBS="" - -if (! test "x${ac_cv_search_fnmatch}" = "xnone required") && (! test "x${ac_cv_search_fnmatch}" = "xno") && (! test "x${ac_cv_search_fnmatch}" = "x-levil") ; then - EFL_FNMATCH_LIBS=${ac_cv_search_fnmatch} -fi - -AC_SUBST(EFL_FNMATCH_LIBS) - -AS_IF([test "x$_efl_have_fnmatch" = "xyes"], [$1], [$2]) - -]) diff --git a/m4/common/efl_shm_open.m4 b/m4/common/efl_shm_open.m4 deleted file mode 100644 index 46254c2..0000000 --- a/m4/common/efl_shm_open.m4 +++ /dev/null @@ -1,70 +0,0 @@ -dnl Copyright (C) 2012 Vincent Torri -dnl That code is public domain and can be freely used or copied. - -dnl Macro that check if shm_open function is available or not. - -dnl Usage: EFL_CHECK_SHM_OPEN([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) -dnl Call AC_SUBST(EFL_SHM_OPEN_LIBS) -dnl Define HAVE_SHM_OPEN to 1if shm_open is available - -AC_DEFUN([EFL_CHECK_SHM_OPEN], -[ -_efl_have_shm_open="no" - -dnl Check is shm_open is in libc - -AC_MSG_CHECKING([for shm_open in libc]) -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#include -#include /* For mode constants */ -#include /* For O_* constants */ - ]], - [[ -int fd; - -fd = shm_open("/dev/null", O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO); - ]])], - [_efl_have_shm_open="yes"], - [_efl_have_shm_open="no"]) - -AC_MSG_RESULT([${_efl_have_shm_open}]) - -if test "x${_efl_have_shm_open}" = "xno" ; then - AC_MSG_CHECKING([for shm_open in librt]) - - LIBS_save="${LIBS}" - LIBS="${LIBS} -lrt" - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#include -#include /* For mode constants */ -#include /* For O_* constants */ - ]], - [[ -int fd; - -fd = shm_open("/dev/null", O_RDONLY, S_IRWXU | S_IRWXG | S_IRWXO); - ]])], - [ - EFL_SHM_OPEN_LIBS="-lrt" - _efl_have_shm_open="yes" - ], - [_efl_have_shm_open="no"]) - - LIBS="${LIBS_save}" - - AC_MSG_RESULT([${_efl_have_shm_open}]) -fi - -AC_SUBST([EFL_SHM_OPEN_LIBS]) - -if test "x${_efl_have_shm_open}" = "xyes" ; then - AC_DEFINE([HAVE_SHM_OPEN], [1], [Define to 1 if you have the `shm_open' function.]) -fi - -AS_IF([test "x${_efl_have_shm_open}" = "xyes"], [$1], [$2]) - -])