mempcpy.m4 742 Bytes
Newer Older
1
# mempcpy.m4 serial 11
2
dnl Copyright (C) 2003-2004, 2006-2007, 2009-2018 Free Software Foundation,
3
dnl Inc.
4 5 6
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.
Bruno Haible's avatar
Bruno Haible committed
7 8 9 10

AC_DEFUN([gl_FUNC_MEMPCPY],
[
  dnl Persuade glibc <string.h> to declare mempcpy().
11
  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
Bruno Haible's avatar
Bruno Haible committed
12

13
  dnl The mempcpy() declaration in lib/string.in.h uses 'restrict'.
Bruno Haible's avatar
Bruno Haible committed
14 15
  AC_REQUIRE([AC_C_RESTRICT])

16
  AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
17
  AC_CHECK_FUNCS([mempcpy])
Bruno Haible's avatar
Bruno Haible committed
18
  if test $ac_cv_func_mempcpy = no; then
19
    HAVE_MEMPCPY=0
Bruno Haible's avatar
Bruno Haible committed
20 21 22 23 24 25 26
  fi
])

# Prerequisites of lib/mempcpy.c.
AC_DEFUN([gl_PREREQ_MEMPCPY], [
  :
])