summaryrefslogtreecommitdiff
path: root/m4/wmemchr.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-05-29 13:20:46 +0200
committerBruno Haible <bruno@clisp.org>2020-05-29 13:20:46 +0200
commit26dab349c2da7df56ae5e165163d0211277c4676 (patch)
tree6b005503564be372945b73161fa236e369c5dbf7 /m4/wmemchr.m4
parentac22625862575119a0ff89dbfbef0979d3b420e6 (diff)
downloadgnulib-26dab349c2da7df56ae5e165163d0211277c4676.tar.gz
wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
* m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test program. * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise. * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise. * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise. * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
Diffstat (limited to 'm4/wmemchr.m4')
-rw-r--r--m4/wmemchr.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/wmemchr.m4 b/m4/wmemchr.m4
index b8bbf07c8b..62bd89ca54 100644
--- a/m4/wmemchr.m4
+++ b/m4/wmemchr.m4
@@ -1,4 +1,4 @@
-# wmemchr.m4 serial 3
+# wmemchr.m4 serial 4
dnl Copyright (C) 2011-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -10,7 +10,7 @@ AC_DEFUN([gl_FUNC_WMEMCHR],
dnl We cannot use AC_CHECK_FUNCS here, because the MSVC 9 header files
dnl provide this function as an inline function definition.
AC_CACHE_CHECK([for wmemchr], [gl_cv_func_wmemchr],
- [AC_COMPILE_IFELSE(
+ [AC_LINK_IFELSE(
[AC_LANG_PROGRAM([[
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
<wchar.h>.