]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-34448: Improve output of usable wchar_t check (GH-8846)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 24 Aug 2018 16:36:30 +0000 (12:36 -0400)
committerGitHub <noreply@github.com>
Fri, 24 Aug 2018 16:36:30 +0000 (12:36 -0400)
(cherry picked from commit 3738fadc670274ecc4649f51b52a93602820a375)

Co-authored-by: Michael Osipov <1983-01-06@gmx.net>
configure
configure.ac

index e73d53be4be0b421d5b7aa0be5974fd7ed7b3636..7e39458727d02d76b4ba26ee5fe370f998437be2 100755 (executable)
--- a/configure
+++ b/configure
 $as_echo "$ac_cv_wchar_t_signed" >&6; }
 fi
 
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5
+$as_echo_n "checking whether wchar_t is usable... " >&6; }
 # wchar_t is only usable if it maps to an unsigned type
 if test "$ac_cv_sizeof_wchar_t" -ge 2 \
           -a "$ac_cv_wchar_t_signed" = "no"
 then
-  HAVE_USABLE_WCHAR_T="yes"
 
 $as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
 
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
 else
-  HAVE_USABLE_WCHAR_T="no usable wchar_t found"
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
 fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_USABLE_WCHAR_T" >&5
-$as_echo "$HAVE_USABLE_WCHAR_T" >&6; }
 
 # check for endianness
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
index e6ebb43e7f24eb9a4f9ee6ae3b5fce6d4de3ef1b..2b8aa4d592f9031cbf31837a4246e81f5c97922d 100644 (file)
@@ -4621,19 +4621,19 @@ then
   AC_MSG_RESULT($ac_cv_wchar_t_signed)
 fi
 
+AC_MSG_CHECKING(whether wchar_t is usable)
 # wchar_t is only usable if it maps to an unsigned type
 if test "$ac_cv_sizeof_wchar_t" -ge 2 \
           -a "$ac_cv_wchar_t_signed" = "no"
 then
-  HAVE_USABLE_WCHAR_T="yes"
   AC_DEFINE(HAVE_USABLE_WCHAR_T, 1,
   [Define if you have a useable wchar_t type defined in wchar.h; useable
    means wchar_t must be an unsigned type with at least 16 bits. (see
    Include/unicodeobject.h).])
+  AC_MSG_RESULT(yes)
 else
-  HAVE_USABLE_WCHAR_T="no usable wchar_t found"
+  AC_MSG_RESULT(no)
 fi
-AC_MSG_RESULT($HAVE_USABLE_WCHAR_T)
 
 # check for endianness
 AC_C_BIGENDIAN