@@ -10120,6 +10120,75 @@ $as_echo "no" >&6; }
1012010120fi
1012110121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1012210122
10123+ save_LIBS=$LIBS
10124+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate_time_safe" >&5
10125+ $as_echo_n "checking for library containing uuid_generate_time_safe... " >&6; }
10126+ if ${ac_cv_search_uuid_generate_time_safe+:} false; then :
10127+ $as_echo_n "(cached) " >&6
10128+ else
10129+ ac_func_search_save_LIBS=$LIBS
10130+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131+ /* end confdefs.h. */
10132+
10133+ /* Override any GCC internal prototype to avoid an error.
10134+ Use char because int might match the return type of a GCC
10135+ builtin and then its argument prototype would still apply. */
10136+ #ifdef __cplusplus
10137+ extern "C"
10138+ #endif
10139+ char uuid_generate_time_safe ();
10140+ int
10141+ main ()
10142+ {
10143+ return uuid_generate_time_safe ();
10144+ ;
10145+ return 0;
10146+ }
10147+ _ACEOF
10148+ for ac_lib in '' uuid; do
10149+ if test -z "$ac_lib"; then
10150+ ac_res="none required"
10151+ else
10152+ ac_res=-l$ac_lib
10153+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10154+ fi
10155+ if ac_fn_c_try_link "$LINENO"; then :
10156+ ac_cv_search_uuid_generate_time_safe=$ac_res
10157+ fi
10158+ rm -f core conftest.err conftest.$ac_objext \
10159+ conftest$ac_exeext
10160+ if ${ac_cv_search_uuid_generate_time_safe+:} false; then :
10161+ break
10162+ fi
10163+ done
10164+ if ${ac_cv_search_uuid_generate_time_safe+:} false; then :
10165+
10166+ else
10167+ ac_cv_search_uuid_generate_time_safe=no
10168+ fi
10169+ rm conftest.$ac_ext
10170+ LIBS=$ac_func_search_save_LIBS
10171+ fi
10172+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate_time_safe" >&5
10173+ $as_echo "$ac_cv_search_uuid_generate_time_safe" >&6; }
10174+ ac_res=$ac_cv_search_uuid_generate_time_safe
10175+ if test "$ac_res" != no; then :
10176+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10177+
10178+
10179+ $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
10180+ ,
10181+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10182+ $as_echo "yes" >&6; }
10183+
10184+ else
10185+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186+ $as_echo "no" >&6; }
10187+
10188+ fi
10189+
10190+ LIBS=$save_LIBS
10191+
1012310192# AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007)
1012410193# FreeBSD and OpenBSD provides support as well
1012510194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5
0 commit comments