-], gl_cv_func_stpncpy=yes, gl_cv_func_stpncpy=no)])])
-
- if test $gl_cv_func_stpncpy = yes; then
- AC_DEFINE(HAVE_STPNCPY, 1,
- [Define if you have the stpncpy() function and it works.])
+], [gl_cv_func_stpncpy=yes], [gl_cv_func_stpncpy=no])
+ ])
+ ])
+ if test $gl_cv_func_stpncpy = yes; then
+ AC_DEFINE([HAVE_STPNCPY], [1],
+ [Define if you have the stpncpy() function and it works.])
+ else
+ REPLACE_STPNCPY=1
+ AC_LIBOBJ([stpncpy])
+ gl_PREREQ_STPNCPY
+ fi