configure.ac:
AC_CHECK_FUNCS_ONCE([stpcpy])
-gl_LIBUNISTRING_LIBSOURCE([0.9], [unistr/u8-stpcpy.c])
+gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-stpcpy])
Makefile.am:
+if LIBUNISTRING_COMPILE_UNISTR_U8_STPCPY
+lib_SOURCES += unistr/u8-stpcpy.c
+endif
Include:
"unistr.h"