Lines 8529-8534
Link Here
|
8529 |
fi |
8529 |
fi |
8530 |
# Dynamic linking for HP-UX |
8530 |
# Dynamic linking for HP-UX |
8531 |
|
8531 |
|
|
|
8532 |
### Fix build with LibreSSL (does not have RAND_egd) |
8533 |
### PR192511, http://bugs.python.org/issue21356 |
8534 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_egd in -lcrypto" >&5 |
8535 |
$as_echo_n "checking for RAND_egd in -lcrypto... " >&6; } |
8536 |
if ${ac_cv_lib_crypto_RAND_egd+:} false; then : |
8537 |
$as_echo_n "(cached) " >&6 |
8538 |
else |
8539 |
ac_check_lib_save_LIBS=$LIBS |
8540 |
LIBS="-lcrypto $LIBS" |
8541 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8542 |
/* end confdefs.h. */ |
8543 |
|
8544 |
/* Override any GCC internal prototype to avoid an error. |
8545 |
Use char because int might match the return type of a GCC |
8546 |
builtin and then its argument prototype would still apply. */ |
8547 |
#ifdef __cplusplus |
8548 |
extern "C" |
8549 |
#endif |
8550 |
char RAND_egd (); |
8551 |
int |
8552 |
main () |
8553 |
{ |
8554 |
return RAND_egd (); |
8555 |
; |
8556 |
return 0; |
8557 |
} |
8558 |
_ACEOF |
8559 |
if ac_fn_c_try_link "$LINENO"; then : |
8560 |
ac_cv_lib_crypto_RAND_egd=yes |
8561 |
else |
8562 |
ac_cv_lib_crypto_RAND_egd=no |
8563 |
fi |
8564 |
rm -f core conftest.err conftest.$ac_objext \ |
8565 |
conftest$ac_exeext conftest.$ac_ext |
8566 |
LIBS=$ac_check_lib_save_LIBS |
8567 |
fi |
8568 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_egd" >&5 |
8569 |
$as_echo "$ac_cv_lib_crypto_RAND_egd" >&6; } |
8570 |
if test "x$ac_cv_lib_crypto_RAND_egd" = xyes; then : |
8571 |
|
8572 |
$as_echo "#define HAVE_RAND_EGD 1" >>confdefs.h |
8573 |
|
8574 |
fi |
8575 |
|
8576 |
### End PR192511 |
8577 |
|
8532 |
# only check for sem_init if thread support is requested |
8578 |
# only check for sem_init if thread support is requested |
8533 |
if test "$with_threads" = "yes" -o -z "$with_threads"; then |
8579 |
if test "$with_threads" = "yes" -o -z "$with_threads"; then |
8534 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |
8580 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 |