From: Andrew Tridgell Date: Wed, 27 Oct 1999 13:17:16 +0000 (+0000) Subject: updated the configure test for fnmatch() to see if FNM_PATHNAME is X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/e7d6e0aa0cf1428d195df010f84cbada19fc98d1 updated the configure test for fnmatch() to see if FNM_PATHNAME is working correctly. --- diff --git a/configure.in b/configure.in index 6c411d63..ab2ccc3c 100644 --- a/configure.in +++ b/configure.in @@ -57,7 +57,8 @@ AC_CHECK_FUNCS(strlcat strlcpy) AC_CACHE_CHECK([for working fnmatch],rsync_cv_HAVE_FNMATCH,[ AC_TRY_RUN([#include -main() { exit(fnmatch("*.o", "x.o", FNM_PATHNAME) == 0? 0: 1); }], +main() { exit((fnmatch("*.o", "x.o", FNM_PATHNAME) == 0 && + fnmatch("a/b/*", "a/b/c/d", FNM_PATHNAME) != 0) ? 0: 1); }], rsync_cv_HAVE_FNMATCH=yes,rsync_cv_HAVE_FNMATCH=no,rsync_cv_HAVE_FNMATCH=cross)]) if test x"$rsync_cv_HAVE_FNMATCH" = x"yes"; then AC_DEFINE(HAVE_FNMATCH)