[Python-checkins] bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511)

Ned Deily webhook-mailer at python.org
Sat Jun 9 17:59:05 EDT 2018


https://github.com/python/cpython/commit/20cd5c6e21559f35feded5b3cfa9069a281d4325
commit: 20cd5c6e21559f35feded5b3cfa9069a281d4325
branch: 3.7
author: Michael Felt <aixtools at users.noreply.github.com>
committer: Ned Deily <nad at python.org>
date: 2018-06-09T17:59:02-04:00
summary:

bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511)

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 5a2afe57f535..e0389649ae06 100755
--- a/configure
+++ b/configure
@@ -9714,9 +9714,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 c844eb105c37..b5beb0857475 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2782,9 +2782,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