Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3738fadc
Commit
3738fadc
authored
Aug 24, 2018
by
Michael Osipov
Committed by
Berker Peksag
Aug 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-34448: Improve output of usable wchar_t check (GH-8846)
parent
49884536
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
configure
configure
+6
-4
configure.ac
configure.ac
+3
-3
No files found.
configure
View file @
3738fadc
...
@@ -14600,19 +14600,21 @@ fi
...
@@ -14600,19 +14600,21 @@ fi
$as_echo
"
$ac_cv_wchar_t_signed
"
>
&6
;
}
$as_echo
"
$ac_cv_wchar_t_signed
"
>
&6
;
}
fi
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
# wchar_t is only usable if it maps to an unsigned type
if
test
"
$ac_cv_sizeof_wchar_t
"
-ge
2
\
if
test
"
$ac_cv_sizeof_wchar_t
"
-ge
2
\
-a
"
$ac_cv_wchar_t_signed
"
=
"no"
-a
"
$ac_cv_wchar_t_signed
"
=
"no"
then
then
HAVE_USABLE_WCHAR_T
=
"yes"
$as_echo
"#define HAVE_USABLE_WCHAR_T 1"
>>
confdefs.h
$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
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
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$HAVE_USABLE_WCHAR_T
"
>
&5
$as_echo
"
$HAVE_USABLE_WCHAR_T
"
>
&6
;
}
# check for endianness
# check for endianness
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether byte ordering is bigendian"
>
&5
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether byte ordering is bigendian"
>
&5
...
...
configure.ac
View file @
3738fadc
...
@@ -4555,19 +4555,19 @@ then
...
@@ -4555,19 +4555,19 @@ then
AC_MSG_RESULT($ac_cv_wchar_t_signed)
AC_MSG_RESULT($ac_cv_wchar_t_signed)
fi
fi
AC_MSG_CHECKING(whether wchar_t is usable)
# wchar_t is only usable if it maps to an unsigned type
# wchar_t is only usable if it maps to an unsigned type
if test "$ac_cv_sizeof_wchar_t" -ge 2 \
if test "$ac_cv_sizeof_wchar_t" -ge 2 \
-a "$ac_cv_wchar_t_signed" = "no"
-a "$ac_cv_wchar_t_signed" = "no"
then
then
HAVE_USABLE_WCHAR_T="yes"
AC_DEFINE(HAVE_USABLE_WCHAR_T, 1,
AC_DEFINE(HAVE_USABLE_WCHAR_T, 1,
[Define if you have a useable wchar_t type defined in wchar.h; useable
[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
means wchar_t must be an unsigned type with at least 16 bits. (see
Include/unicodeobject.h).])
Include/unicodeobject.h).])
AC_MSG_RESULT(yes)
else
else
HAVE_USABLE_WCHAR_T="no usable wchar_t found"
AC_MSG_RESULT(no)
fi
fi
AC_MSG_RESULT($HAVE_USABLE_WCHAR_T)
# check for endianness
# check for endianness
AC_C_BIGENDIAN
AC_C_BIGENDIAN
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment