summaryrefslogtreecommitdiff
path: root/modules/wmemchr
diff options
context:
space:
mode:
Diffstat (limited to 'modules/wmemchr')
-rw-r--r--modules/wmemchr7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/wmemchr b/modules/wmemchr
index 89bc3d19c0..2e1e1337db 100644
--- a/modules/wmemchr
+++ b/modules/wmemchr
@@ -11,12 +11,13 @@ wchar
configure.ac:
gl_FUNC_WMEMCHR
-if test $HAVE_WMEMCHR = 0; then
- AC_LIBOBJ([wmemchr])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_WMEMCHR], [test $HAVE_WMEMCHR = 0])
gl_WCHAR_MODULE_INDICATOR([wmemchr])
Makefile.am:
+if GL_COND_OBJ_WMEMCHR
+lib_SOURCES += wmemchr.c
+endif
Include:
<wchar.h>