X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fwctob.m4;h=8175d00e3357e12403b203d584cf3cc7cb71d693;hb=41a7841a82351f9df3e13b6199a134004d694131;hp=357dcb4b65f09416f8e6d1048e9714c03ec06cca;hpb=438d74b6b96ac7ccce6791556fe5e27f0e8f7ed8;p=gnulib.git diff --git a/m4/wctob.m4 b/m4/wctob.m4 index 357dcb4b6..8175d00e3 100644 --- a/m4/wctob.m4 +++ b/m4/wctob.m4 @@ -1,5 +1,5 @@ -# wctob.m4 serial 7 -dnl Copyright (C) 2008-2010 Free Software Foundation, Inc. +# wctob.m4 serial 9 +dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,11 +10,10 @@ AC_DEFUN([gl_FUNC_WCTOB], AC_CHECK_FUNCS_ONCE([wctob]) if test $ac_cv_func_wctob = no; then + HAVE_WCTOB=0 HAVE_DECL_WCTOB=0 - gl_REPLACE_WCHAR_H - AC_LIBOBJ([wctob]) - gl_PREREQ_WCTOB else + HAVE_WCTOB=1 dnl Solaris 9 has the wctob() function but it does not work. dnl Cygwin 1.7.2 has the wctob() function but it clobbers caller-owned @@ -102,11 +101,7 @@ int main () *yes) ;; *) REPLACE_WCTOB=1 ;; esac - if test $REPLACE_WCTOB = 1; then - gl_REPLACE_WCHAR_H - AC_LIBOBJ([wctob]) - gl_PREREQ_WCTOB - else + if test $REPLACE_WCTOB = 0; then dnl IRIX 6.5 has the wctob() function but does not declare it. AC_CHECK_DECLS([wctob], [], [], [ @@ -121,7 +116,6 @@ int main () ]) if test $ac_cv_have_decl_wctob != yes; then HAVE_DECL_WCTOB=0 - gl_REPLACE_WCHAR_H fi fi fi