summaryrefslogtreecommitdiff
path: root/modules/wcsrtombs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/wcsrtombs')
-rw-r--r--modules/wcsrtombs10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/wcsrtombs b/modules/wcsrtombs
index 8afcdad9d2..127be1df77 100644
--- a/modules/wcsrtombs
+++ b/modules/wcsrtombs
@@ -20,14 +20,18 @@ wcrtomb [test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1]
configure.ac:
gl_FUNC_WCSRTOMBS
-if test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1; then
- AC_LIBOBJ([wcsrtombs])
+gl_CONDITIONAL([GL_COND_OBJ_WCSRTOMBS],
+ [test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1])
+AM_COND_IF([GL_COND_OBJ_WCSRTOMBS], [
AC_LIBOBJ([wcsrtombs-state])
gl_PREREQ_WCSRTOMBS
-fi
+])
gl_WCHAR_MODULE_INDICATOR([wcsrtombs])
Makefile.am:
+if GL_COND_OBJ_WCSRTOMBS
+lib_SOURCES += wcsrtombs.c
+endif
Include:
<wchar.h>