* m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
here...
* modules/stpcpy (configure.ac): ... to here.
+2011-05-22 Bruno Haible <bruno@clisp.org>
+
+ stpcpy: Move AC_LIBOBJ invocations to module description.
+ * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
+ AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
+ here...
+ * modules/stpcpy (configure.ac): ... to here.
+
2011-05-21 Bruno Haible <bruno@clisp.org>
stat: Move AC_LIBOBJ invocations to module description.
-# stpcpy.m4 serial 7
+# stpcpy.m4 serial 8
dnl Copyright (C) 2002, 2007, 2009-2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([AC_C_RESTRICT])
AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
- AC_REPLACE_FUNCS([stpcpy])
+ AC_CHECK_FUNCS([stpcpy])
if test $ac_cv_func_stpcpy = no; then
HAVE_STPCPY=0
- gl_PREREQ_STPCPY
fi
])
configure.ac:
gl_FUNC_STPCPY
+if test $HAVE_STPCPY = 0; then
+ AC_LIBOBJ([stpcpy])
+ gl_PREREQ_STPCPY
+fi
gl_STRING_MODULE_INDICATOR([stpcpy])
Makefile.am: