6
6
Autoconf Macro: ac_func_memmove
8
8
<link rel="stylesheet" type="text/css" href="autoconf-archive.css">
9
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
11
12
<table summary="web navigation" style="width:100%;">
14
<td style="width:25%;" align="center" valign="top">
15
<a href="http://autoconf-archive.cryp.to/ac_func_memmove.m4">Download M4
15
<td style="width:33%;" align="center" valign="top">
16
<a href="macros-by-category.html">Macros by Category</a>
18
<td style="width:25%;" align="center" valign="top">
18
<td style="width:33%;" align="center" valign="top">
20
"http://git.cryp.to/autoconf-archive?a=history;f=ac_func_memmove.m4">Macro
20
"http://git.cryp.to/autoconf-archive/history/master:/ac_func_memmove.m4">Revision
23
<td style="width:25%;" align="center" valign="top">
24
<a href="macros-by-category.html">Category Index</a>
26
<td style="width:25%;" align="center" valign="top">
23
<td style="width:33%;" align="center" valign="top">
27
24
<form method="get" action="http://www.google.com/search">
29
26
<input name="sitesearch" value="autoconf-archive.cryp.to" type=
30
"hidden"><a href="http://www.google.com/">Search</a>: <input name="q"
31
size="10" maxlength="255" type="text">
27
"hidden">Search: <input name="q" maxlength="255" type="text">
61
Rüdiger Kuhlmann <info@ruediger-kuhlmann.de>
73
<pre class="m4source">
74
AC_DEFUN([AC_FUNC_MEMMOVE],
75
[AC_CHECK_FUNCS(memmove)
76
AC_MSG_CHECKING(for working memmove)
77
AC_CACHE_VAL(ac_cv_have_working_memmove,
79
[#include <stdio.h>
84
strcpy (buf, "01234567");
85
memmove (buf, buf + 2, 3);
86
if (strcmp (buf, "23434567"))
88
strcpy (buf, "01234567");
89
memmove (buf + 2, buf, 3);
90
if (strcmp (buf, "01012567"))
93
}], ac_cv_have_working_memmove=yes, ac_cv_have_working_memmove=no, ac_cv_have_working_memmove=cross)])
94
AC_MSG_RESULT([$ac_cv_have_working_memmove])
95
if test x$ac_cv_have_working_memmove != "xyes"; then
97
AC_MSG_WARN([Replacing missing/broken memmove.])
98
AC_DEFINE(PREFER_PORTABLE_MEMMOVE, 1, "enable replacement memmove if system memmove is broken or missing")
106
<span style="white-space:nowrap;">Copyright © 2008 Rüdiger
107
Kuhlmann <info@ruediger-kuhlmann.de></span>
58
"http://autoconf-archive.cryp.to/ac_func_memmove.m4">http://autoconf-archive.cryp.to/ac_func_memmove.m4</a>
64
<p style="white-space:nowrap;">
65
Copyright © 2008 Rüdiger Kuhlmann
66
<info@ruediger-kuhlmann.de>
109
69
Copying and distribution of this file, with or without modification, are
110
70
permitted in any medium without royalty provided the copyright notice and