X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fmempcpy.m4;h=d1a12ebfdc6301dd889bc81147bd71d6d0427812;hb=d5b641f5183e4e3d69a3e06f69bcf6ecee302a1b;hp=a5ed8de838ec294ca1cb202aafedf027e630f16f;hpb=521cb5f96a03acba4dd1b3502edff17aa8b52d76;p=gnulib.git diff --git a/m4/mempcpy.m4 b/m4/mempcpy.m4 index a5ed8de83..d1a12ebfd 100644 --- a/m4/mempcpy.m4 +++ b/m4/mempcpy.m4 @@ -1,18 +1,21 @@ -# mempcpy.m4 serial 1 -dnl Copyright (C) 2003 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. +# mempcpy.m4 serial 9 +dnl Copyright (C) 2003, 2004, 2006, 2007 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_MEMPCPY], [ dnl Persuade glibc to declare mempcpy(). - AC_REQUIRE([AC_GNU_SOURCE]) + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + dnl The mempcpy() declaration in lib/string.in.h uses 'restrict'. + AC_REQUIRE([AC_C_RESTRICT]) + + AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) AC_REPLACE_FUNCS(mempcpy) if test $ac_cv_func_mempcpy = no; then + HAVE_MEMPCPY=0 gl_PREREQ_MEMPCPY fi ])