X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=m4%2Ffnmatch.m4;h=29a082ff4d46c275d9a729e4a6926c648b4566d2;hb=257a4160e4490f7299f1f0f02b6c7c024d52c970;hp=312990dc5afa7edcba405190df8186116cd938f9;hpb=0ca48105eada0c7b2aee304938affba9e8ef2e87;p=chaz%2Ftar diff --git a/m4/fnmatch.m4 b/m4/fnmatch.m4 index 312990d..29a082f 100644 --- a/m4/fnmatch.m4 +++ b/m4/fnmatch.m4 @@ -4,12 +4,16 @@ dnl undefine([AC_FUNC_FNMATCH]) AC_DEFUN(AC_FUNC_FNMATCH, [AC_CACHE_CHECK(for GNU-style fnmatch, ac_cv_func_fnmatch_works, -# Some versions of Solaris or SCO have a broken or incompatible fnmatch. +# Some versions of Solaris, SCO, and the GNU C Library +# have a broken or incompatible fnmatch. # So we run a test program. If we are cross-compiling, take no chance. # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test. [AC_TRY_RUN([#include main() { exit (fnmatch ("a*", "abc", 0) != 0 + || fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) != FNM_NOMATCH + || fnmatch("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0 + || fnmatch("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR) != 0 || fnmatch("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0); }], ac_cv_func_fnmatch_works=yes, ac_cv_func_fnmatch_works=no,