Add missing lib check for fnmatch.
authordevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 28 Oct 2009 13:04:09 +0000 (13:04 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 28 Oct 2009 13:04:09 +0000 (13:04 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@43328 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac

index 0de6633..452adb3 100644 (file)
@@ -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])