@@ -9512,70 +9512,51 @@ _ACEOF
9512
9512
fi
9513
9513
# Dynamic linking for HP-UX
9514
9514
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 :
9518
9518
$as_echo_n " (cached) " >&6
9519
9519
else
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
9522
9525
/* end confdefs.h. */
9523
9526
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>
9531
9528
int
9532
9529
main ()
9533
9530
{
9534
- return uuid_generate_time_safe ();
9531
+
9532
+ uuid_t out;
9533
+ uuid_generate_time_safe(out);
9534
+
9535
9535
;
9536
9536
return 0;
9537
9537
}
9538
9538
_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
9548
9543
fi
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
9553
9546
fi
9554
- done
9555
- if ${ac_cv_search_uuid_generate_time_safe+: } false ; then :
9556
9547
9557
- else
9558
- ac_cv_search_uuid_generate_time_safe=no
9559
9548
fi
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 :
9568
9552
9569
- > ...
9570
9553
$as_echo " #define HAVE_UUID_GENERATE_TIME_SAFE 1" >> confdefs.h
9571
9554
9572
-
9573
9555
else
9574
9556
9575
- > ...
9576
9557
$as_echo " #define HAVE_UUID_GENERATE_TIME_SAFE 0" >> confdefs.h
9577
9558
9578
-
9559
+ fi
9579
9560
9580
9561
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for library containing sem_init" >&5
9581
9562
$as_echo_n " checking for library containing sem_init... " >&6 ; }
0 commit comments