From 0ca48105eada0c7b2aee304938affba9e8ef2e87 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 7 Nov 1999 21:06:38 +0000 Subject: [PATCH] (AC_FUNC_FNMATCH): Include fnmatch.h when testing fnmatch. --- m4/fnmatch.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/m4/fnmatch.m4 b/m4/fnmatch.m4 index 5654a41..312990d 100644 --- a/m4/fnmatch.m4 +++ b/m4/fnmatch.m4 @@ -7,7 +7,8 @@ AC_DEFUN(AC_FUNC_FNMATCH, # Some versions of Solaris or SCO 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([main() { +[AC_TRY_RUN([#include +main() { exit (fnmatch ("a*", "abc", 0) != 0 || fnmatch("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0); }], -- 2.45.2