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.
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.
dnl Both glibc and AIX (4.3.3, 5.1) have an stpncpy() function
dnl declared in <string.h>. Its side effects are the same as those
dnl of strncpy():
dnl Both glibc and AIX (4.3.3, 5.1) have an stpncpy() function
dnl declared in <string.h>. Its side effects are the same as those
dnl of strncpy():
extern char *stpncpy (char *dest, const char *src, size_t n);
int main () {
const char *src = "Hello";
extern char *stpncpy (char *dest, const char *src, size_t n);
int main () {
const char *src = "Hello";
AC_DEFINE(HAVE_STPNCPY, 1,
[Define if you have the stpncpy() function and it works.])
else
AC_DEFINE(HAVE_STPNCPY, 1,
[Define if you have the stpncpy() function and it works.])
else