Eina: check if fnmatch() is also in libc
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 28 Jun 2012 23:01:51 +0000 (23:01 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 28 Jun 2012 23:01:51 +0000 (23:01 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@73018 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

m4/common/efl_check_funcs.m4

index ba221f0..bee392e 100644 (file)
@@ -216,8 +216,13 @@ case "$host_os" in
       _efl_have_fct="yes"
    ;;
    *)
+dnl Check is fnmatch is in libc
+      _EFL_CHECK_FUNC_FNMATCH_PRIV([$1], [], [_efl_have_fct="yes"], [_efl_have_fct="no"])
+
 dnl Check is fnmatch is in libfnmatch
-      _EFL_CHECK_FUNC_FNMATCH_PRIV([$1], [-lfnmatch], [_efl_have_fct="yes"], [_efl_have_fct="no"])
+      if test "x${_efl_have_fct}" = "xno" ; then
+         _EFL_CHECK_FUNC_FNMATCH_PRIV([$1], [-lfnmatch], [_efl_have_fct="yes"], [_efl_have_fct="no"])
+      fi
 
 dnl Check is fnmatch is in libiberty
       if test "x${_efl_have_fct}" = "xno" ; then