summaryrefslogtreecommitdiff
path: root/modules/wctomb
diff options
context:
space:
mode:
Diffstat (limited to 'modules/wctomb')
-rw-r--r--modules/wctomb9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/wctomb b/modules/wctomb
index 9e318701e7..dec45af5c7 100644
--- a/modules/wctomb
+++ b/modules/wctomb
@@ -13,13 +13,16 @@ wchar [test $REPLACE_WCTOMB = 1]
configure.ac:
gl_FUNC_WCTOMB
-if test $REPLACE_WCTOMB = 1; then
- AC_LIBOBJ([wctomb])
+gl_CONDITIONAL([GL_COND_OBJ_WCTOMB], [test $REPLACE_WCTOMB = 1])
+AM_COND_IF([GL_COND_OBJ_WCTOMB], [
gl_PREREQ_WCTOMB
-fi
+])
gl_STDLIB_MODULE_INDICATOR([wctomb])
Makefile.am:
+if GL_COND_OBJ_WCTOMB
+lib_SOURCES += wctomb.c
+endif
Include:
<stdlib.h>