[Python-checkins] bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511) (GH-7567)
Ned Deily
webhook-mailer at python.org
Sat Jun 9 18:20:00 EDT 2018
https://github.com/python/cpython/commit/ced0adb2638e4c02945bfa82e15595918eef74f1
commit: ced0adb2638e4c02945bfa82e15595918eef74f1
branch: master
author: Ned Deily <nad at python.org>
committer: GitHub <noreply at github.com>
date: 2018年06月09日T18:19:57-04:00
summary:
bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511) (GH-7567)
files:
A Misc/NEWS.d/next/Library/2018-06-07-18-55-35.bpo-32493.1Bte62.rst
M configure
M configure.ac
diff --git a/Misc/NEWS.d/next/Library/2018-06-07-18-55-35.bpo-32493.1Bte62.rst b/Misc/NEWS.d/next/Library/2018-06-07-18-55-35.bpo-32493.1Bte62.rst
new file mode 100644
index 000000000000..3d8bb3ed305c
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-06-07-18-55-35.bpo-32493.1Bte62.rst
@@ -0,0 +1,2 @@
+Correct test for ``uuid_enc_be`` availability in ``configure.ac``.
+Patch by Michael Felt.
\ No newline at end of file
diff --git a/configure b/configure
index f5bea4ff0598..5187c6ff2b95 100755
--- a/configure
+++ b/configure
@@ -9632,9 +9632,7 @@ main ()
{
#ifndef uuid_enc_be
-uuid_t uuid;
-unsigned char buf[sizeof(uuid)];
-uuid_enc_be(buf, &uuid);
+void *x = uuid_enc_be
#endif
;
diff --git a/configure.ac b/configure.ac
index 67cf817456df..b13728e37d7b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2716,9 +2716,7 @@ void *x = uuid_create
AC_MSG_CHECKING(for uuid_enc_be)
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <uuid.h>]], [[
#ifndef uuid_enc_be
-uuid_t uuid;
-unsigned char buf[sizeof(uuid)];
-uuid_enc_be(buf, &uuid);
+void *x = uuid_enc_be
#endif
]])],
[AC_DEFINE(HAVE_UUID_ENC_BE, 1, Define if uuid_enc_be() exists.)
More information about the Python-checkins
mailing list