From: Ralf Wildenhues Date: Fri, 22 Sep 2006 17:26:02 +0000 (+0000) Subject: * fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is X-Git-Tag: cvs-readonly~1838 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=9e6ff18cbbceffb66ed4a9d52159f01f7b3f84a2;p=gnulib.git * fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is always true. * strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'. --- diff --git a/m4/ChangeLog b/m4/ChangeLog index 0dee0e4d0..dc60ca73b 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,5 +1,9 @@ 2006-09-22 Ralf Wildenhues + * fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is + always true. + * strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'. + * sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings. 2006-09-17 Bruno Haible diff --git a/m4/fnmatch.m4 b/m4/fnmatch.m4 index d638f67a8..9aeaeb562 100644 --- a/m4/fnmatch.m4 +++ b/m4/fnmatch.m4 @@ -35,7 +35,7 @@ AC_DEFUN([_AC_FUNC_FNMATCH_IF], } ], [exit - (!((fnm ? fnm : fnmatch) ("a*", "", 0) == FNM_NOMATCH + (!(fnm ("a*", "", 0) == FNM_NOMATCH && y ("a*", "abc", 0) && n ("d*/*1", "d/s/1", FNM_PATHNAME) && y ("a\\\\bc", "abc", 0) diff --git a/m4/strndup.m4 b/m4/strndup.m4 index 180ad203e..75d301b08 100644 --- a/m4/strndup.m4 +++ b/m4/strndup.m4 @@ -1,4 +1,4 @@ -# strndup.m4 serial 8 +# strndup.m4 serial 9 dnl Copyright (C) 2002-2003, 2005-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -14,7 +14,8 @@ AC_DEFUN([gl_FUNC_STRNDUP], # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'. AC_CACHE_CHECK([for working strndup], gl_cv_func_strndup, [AC_RUN_IFELSE([ - AC_LANG_PROGRAM([#include ], [[ + AC_LANG_PROGRAM([#include + #include ], [[ #ifndef HAVE_DECL_STRNDUP extern char *strndup (const char *, size_t); #endif