Use a command that uses $CC $CFLAGS, not $CPP, to test whether inline is
[gnulib.git] / modules / mbchar
index 150fe47..9b4b941 100644 (file)
@@ -8,15 +8,17 @@ m4/mbchar.m4
 
 Depends-on:
 stdbool
+wcwidth
 
 configure.ac:
 gl_MBCHAR
 
 Makefile.am:
-lib_SOURCES += mbchar.h mbchar.c
 
 Include:
-"mbchar.h"
+#if HAVE_WCHAR_H
+#include "mbchar.h"
+#endif
 
 License:
 LGPL