From e867666096b51f74509e3f7260cb2f4ae8992f57 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Wed, 28 Oct 2009 13:04:09 +0000 Subject: [PATCH] Add missing lib check for fnmatch. SVN revision: 43328 --- legacy/eina/configure.ac | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/legacy/eina/configure.ac b/legacy/eina/configure.ac index 0de66332a3..452adb347d 100644 --- a/legacy/eina/configure.ac +++ b/legacy/eina/configure.ac @@ -381,6 +381,20 @@ case "$host_os" in esac AC_SUBST(dlopen_libs) +fnmatch_libs="" +AC_CHECK_FUNCS([fnmatch], [res="yes"], [res="no"]) +if test "x$res" = "xno"; then + AC_SEARCH_LIBS([fnmatch], + [fnmatch evil iberty], + [res="yes"], + [res="no"]) + if test "x$res" = "xno"; then + AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch, nor libiberty, nor libevil]) + fi + fnmatch_libs="${ac_cv_search_fnmatch}" +fi +AC_SUBST(fnmatch_libs) + ### Modules EINA_CHECK_MODULE([chained-pool], [yes], [chained pool])