@@ -9512,70 +9512,51 @@ _ACEOF
95129512fi
95139513 # Dynamic linking for HP-UX
95149514
9515- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for library containing uuid_generate_time_safe" >&5
9516- $as_echo_n " checking for library containing uuid_generate_time_safe... " >&6 ; }
9517- if ${ac_cv_search_uuid_generate_time_safe +: } false ; then :
9515+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking if uuid_generate_time_safe() available " >&5
9516+ $as_echo_n " checking if uuid_generate_time_safe() available ... " >&6 ; }
9517+ if ${ax_cv_uuid_generate_time_safe +: } false ; then :
95189518 $as_echo_n " (cached) " >&6
95199519else
9520- ac_func_search_save_LIBS=$LIBS
9521- cat confdefs.h - << _ACEOF >conftest.$ac_ext
9520+ if test " $cross_compiling " = yes; then :
9521+ { $as_echo " $as_me :${as_lineno-$LINENO } : WARNING: test program execution failed" >&5
9522+ $as_echo " $as_me : WARNING: test program execution failed" >&2 ; }
9523+ else
9524+ cat confdefs.h - << _ACEOF >conftest.$ac_ext
95229525/* end confdefs.h. */
95239526
9524- /* Override any GCC internal prototype to avoid an error.
9525- Use char because int might match the return type of a GCC
9526- builtin and then its argument prototype would still apply. */
9527- #ifdef __cplusplus
9528- extern "C"
9529- #endif
9530- char uuid_generate_time_safe ();
9527+ #include <uuid/uuih.h>
95319528int
95329529main ()
95339530{
9534- return uuid_generate_time_safe ();
9531+
9532+ uuid_t out;
9533+ uuid_generate_time_safe(out);
9534+
95359535 ;
95369536 return 0;
95379537}
95389538_ACEOF
9539- for ac_lib in ' ' uuid; do
9540- if test -z " $ac_lib " ; then
9541- ac_res=" none required"
9542- else
9543- ac_res=-l$ac_lib
9544- LIBS=" -l$ac_lib $ac_func_search_save_LIBS "
9545- fi
9546- if ac_fn_c_try_link " $LINENO " ; then :
9547- ac_cv_search_uuid_generate_time_safe=$ac_res
9539+ if ac_fn_c_try_run " $LINENO " ; then :
9540+ ax_cv_uuid_generate_time_safe=yes
9541+ else
9542+ ax_cv_uuid_generate_time_safe=no
95489543fi
9549- rm -f core conftest.err conftest.$ac_objext \
9550- conftest$ac_exeext
9551- if ${ac_cv_search_uuid_generate_time_safe+: } false ; then :
9552- break
9544+ rm -f core * .core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9545+ conftest.$ac_objext conftest.beam conftest.$ac_ext
95539546fi
9554- done
9555- if ${ac_cv_search_uuid_generate_time_safe+: } false ; then :
95569547
9557- else
9558- ac_cv_search_uuid_generate_time_safe=no
95599548fi
9560- rm conftest.$ac_ext
9561- LIBS=$ac_func_search_save_LIBS
9562- fi
9563- { $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_search_uuid_generate_time_safe " >&5
9564- $as_echo " $ac_cv_search_uuid_generate_time_safe " >&6 ; }
9565- ac_res=$ac_cv_search_uuid_generate_time_safe
9566- if test " $ac_res " ! = no; then :
9567- test " $ac_res " = " none required" || LIBS=" $ac_res $LIBS "
9549+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $ax_cv_uuid_generate_time_safe " >&5
9550+ $as_echo " $ax_cv_uuid_generate_time_safe " >&6 ; }
9551+ if test " $ax_cv_uuid_generate_time_safe " = yes; then :
95689552
9569- > ...
95709553$as_echo " #define HAVE_UUID_GENERATE_TIME_SAFE 1" >> confdefs.h
95719554
9572-
95739555else
95749556
9575- > ...
95769557$as_echo " #define HAVE_UUID_GENERATE_TIME_SAFE 0" >> confdefs.h
95779558
9578-
9559+ fi
95799560
95809561{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for library containing sem_init" >&5
95819562$as_echo_n " checking for library containing sem_init... " >&6 ; }
0 commit comments