summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2017-11-08 23:09:16 +0300
committerGitHub <noreply@github.com>2017-11-08 23:09:16 +0300
commit9a10ff4deb2494e22bc0dbea3e3a6f9e8354d995 (patch)
treed860e1b145cf9e9e144ada162d731bb5ea78108d /configure
parentbf9d317626eebcf79bd0756b4dd43df82d5cc186 (diff)
downloadcpython-git-9a10ff4deb2494e22bc0dbea3e3a6f9e8354d995.tar.gz
bpo-11063: Add a configure check for uuid_generate_time_safe (GH-4287)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure31
1 files changed, 31 insertions, 0 deletions
diff --git a/configure b/configure
index 0edbb3e862..7944f8fe5d 100755
--- a/configure
+++ b/configure
@@ -9512,6 +9512,37 @@ _ACEOF
fi
# Dynamic linking for HP-UX
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5
+$as_echo_n "checking for uuid_generate_time_safe... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <uuid/uuid.h>
+int
+main ()
+{
+
+#ifndef uuid_generate_time_safe
+uuid_t out;
+uuid_generate_time_safe(out);
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+$as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
$as_echo_n "checking for library containing sem_init... " >&6; }
if ${ac_cv_search_sem_init+:} false; then :