summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2010-10-03 09:56:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-10-06 18:19:50 (GMT)
commitf3f3d9366edc4c150c59df929198a77ecdf69cfd (patch)
treefd70df5ca876d08b16e0c74fc3816278bf6b3a72 /configure.ac
parent3235b7053c45a734c1cdf9b117bda68b7ced29c9 (diff)
downloadgit-f3f3d9366edc4c150c59df929198a77ecdf69cfd.zip
git-f3f3d9366edc4c150c59df929198a77ecdf69cfd.tar.gz
git-f3f3d9366edc4c150c59df929198a77ecdf69cfd.tar.bz2
Makefile & configure: add a NO_FNMATCH flag
Windows and MinGW both lack fnmatch() in their C library and needed compat/fnmatch, but they had duplicate code for adding the compat function, and there was no Makefile flag or configure check for fnmatch. Change the Makefile it so that it's now possible to compile the compat function with a NO_FNMATCH=YesPlease flag, and add a configure probe for it. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5601e8b..3aa59bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -783,6 +783,12 @@ GIT_CHECK_FUNC(strcasestr,
[NO_STRCASESTR=YesPlease])
AC_SUBST(NO_STRCASESTR)
#
+# Define NO_FNMATCH if you don't have fnmatch
+GIT_CHECK_FUNC(fnmatch,
+[NO_FNMATCH=],
+[NO_FNMATCH=YesPlease])
+AC_SUBST(NO_FNMATCH)
+#
# Define NO_MEMMEM if you don't have memmem.
GIT_CHECK_FUNC(memmem,
[NO_MEMMEM=],