diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-05-27 23:29:47 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-05-27 23:29:47 +0000 |
commit | 05bc3370b833186e520b32563edfcaa28fd27707 (patch) | |
tree | d5c017d138e2dace5bd6621e31646e5b851fc8f2 /readline/aclocal.m4 | |
parent | 756d1d01889f120348ff040ef9599b595524d4b9 (diff) | |
download | gdb-05bc3370b833186e520b32563edfcaa28fd27707.zip gdb-05bc3370b833186e520b32563edfcaa28fd27707.tar.gz gdb-05bc3370b833186e520b32563edfcaa28fd27707.tar.bz2 |
* aclocal.m4: Don't add wcwidth.o if we don't have wchar.h.
* configure: Regenerate.
Diffstat (limited to 'readline/aclocal.m4')
-rw-r--r-- | readline/aclocal.m4 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/readline/aclocal.m4 b/readline/aclocal.m4 index bc43d8d..a87e2dc 100644 --- a/readline/aclocal.m4 +++ b/readline/aclocal.m4 @@ -1654,13 +1654,13 @@ AC_CHECK_HEADERS(langinfo.h) AC_CHECK_FUNC(mbrtowc, AC_DEFINE(HAVE_MBRTOWC)) AC_CHECK_FUNC(mbsrtowcs, AC_DEFINE(HAVE_MBSRTOWCS)) -AC_CHECK_FUNC(wcwidth, have_wcwidth=yes) -if test "$have_wcwidth" = yes; then - AC_DEFINE(HAVE_WCWIDTH) - AC_SUBST(WCWIDTH_OBJ,) +AC_CHECK_FUNC(wcwidth, AC_DEFINE(HAVE_WCWIDTH)) +if test "$ac_cv_func_wcwidth" = no && test "$ac_cv_header_wchar_h" = yes; then + WCWIDTH_OBJ=wcwidth.o else - AC_SUBST(WCWIDTH_OBJ,wcwidth.o) + WCWIDTH_OBJ= fi +AC_SUBST(WCWIDTH_OBJ) AC_CACHE_CHECK([for mbstate_t], bash_cv_have_mbstate_t, [AC_TRY_RUN([ |