diff options
author | Christian Heimes <christian@python.org> | 2021-12-06 20:43:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 20:43:44 (GMT) |
commit | fc012d801202a9ea139df143b934778060d51a60 (patch) | |
tree | 4ff92358b94821079350b67dc52dab9e11f9b540 /configure.ac | |
parent | f16f93e5279f957ca25dd8b91233a44833167a8a (diff) | |
download | cpython-fc012d801202a9ea139df143b934778060d51a60.zip cpython-fc012d801202a9ea139df143b934778060d51a60.tar.gz cpython-fc012d801202a9ea139df143b934778060d51a60.tar.bz2 |
bpo-45847: Fix uuid detection on macOS (GH-29946)
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c7c7125..f1aac2d 100644 --- a/configure.ac +++ b/configure.ac @@ -2963,7 +2963,6 @@ AS_VAR_IF([have_uuid], [missing], [ ], [ LIBUUID_LIBS="-luuid" LIBUUID_CFLAGS= - have_uuid=no AC_CHECK_HEADERS([uuid/uuid.h], [ WITH_SAVE_ENV( [AC_CHECK_LIB([uuid], [uuid_generate_time], [have_uuid=yes]) @@ -2979,6 +2978,19 @@ AS_VAR_IF([have_uuid], [missing], [ ) ]) +dnl macOS has uuid/uuid.h but uuid_generate_time is in libc +AS_VAR_IF([have_uuid], [missing], [ + AC_CHECK_HEADERS([uuid/uuid.h], [ + AC_CHECK_FUNC([uuid_generate_time], [ + have_uuid=yes + LIBUUID_CFLAGS= + LIBUUID_LIBS= + ]) + ]) +]) + +AS_VAR_IF([have_uuid], [missing], [have_uuid=no]) + # 'Real Time' functions on Solaris # posix4 on Solaris 2.6 # pthread (first!) on Linux |