@@ -9192,14 +9192,12 @@ $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9192
9192
fi
9193
9193
9194
9194
else
9195
-
9196
- { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
9197
- $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
9198
- if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
9195
+ { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9196
+ $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9197
+ if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9199
9198
$as_echo_n "(cached) " >&6
9200
9199
else
9201
- ac_check_lib_save_LIBS=$LIBS
9202
- LIBS="-leay32 $LIBS"
9200
+ ac_func_search_save_LIBS=$LIBS
9203
9201
cat >conftest.$ac_ext <<_ACEOF
9204
9202
/* confdefs.h. */
9205
9203
_ACEOF
@@ -9222,7 +9220,14 @@ return CRYPTO_new_ex_data ();
9222
9220
return 0;
9223
9221
}
9224
9222
_ACEOF
9225
- rm -f conftest.$ac_objext conftest$ac_exeext
9223
+ for ac_lib in '' eay32 crypto; do
9224
+ if test -z "$ac_lib"; then
9225
+ ac_res="none required"
9226
+ else
9227
+ ac_res=-l$ac_lib
9228
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9229
+ fi
9230
+ rm -f conftest.$ac_objext conftest$ac_exeext
9226
9231
if { (ac_try="$ac_link"
9227
9232
case "(($ac_try" in
9228
9233
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
@@ -9243,42 +9248,47 @@ $as_echo "$ac_try_echo") >&5
9243
9248
test "$cross_compiling" = yes ||
9244
9249
$as_test_x conftest$ac_exeext
9245
9250
}; then
9246
- ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9251
+ ac_cv_search_CRYPTO_new_ex_data=$ac_res
9247
9252
else
9248
9253
$as_echo "$as_me: failed program was:" >&5
9249
9254
sed 's/^/| /' conftest.$ac_ext >&5
9250
9255
9251
- ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9256
+
9252
9257
fi
9253
9258
9254
9259
rm -rf conftest.dSYM
9255
9260
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9256
- conftest$ac_exeext conftest.$ac_ext
9257
- LIBS=$ac_check_lib_save_LIBS
9261
+ conftest$ac_exeext
9262
+ if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9263
+ break
9258
9264
fi
9259
- { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9260
- $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9261
- if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
9262
- cat >>confdefs.h <<_ACEOF
9263
- #define HAVE_LIBEAY32 1
9264
- _ACEOF
9265
-
9266
- LIBS="-leay32 $LIBS"
9265
+ done
9266
+ if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9267
+ :
9268
+ else
9269
+ ac_cv_search_CRYPTO_new_ex_data=no
9270
+ fi
9271
+ rm conftest.$ac_ext
9272
+ LIBS=$ac_func_search_save_LIBS
9273
+ fi
9274
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9275
+ $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9276
+ ac_res=$ac_cv_search_CRYPTO_new_ex_data
9277
+ if test "$ac_res" != no; then
9278
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9267
9279
9268
9280
else
9269
- { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9270
- $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9281
+ { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9282
+ $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9271
9283
{ (exit 1); exit 1; }; }
9272
9284
fi
9273
9285
9274
-
9275
- { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9276
- $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
9277
- if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9286
+ { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9287
+ $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9288
+ if test "${ac_cv_search_SSL_library_init+set}" = set; then
9278
9289
$as_echo_n "(cached) " >&6
9279
9290
else
9280
- ac_check_lib_save_LIBS=$LIBS
9281
- LIBS="-lssleay32 $LIBS"
9291
+ ac_func_search_save_LIBS=$LIBS
9282
9292
cat >conftest.$ac_ext <<_ACEOF
9283
9293
/* confdefs.h. */
9284
9294
_ACEOF
@@ -9301,7 +9311,14 @@ return SSL_library_init ();
9301
9311
return 0;
9302
9312
}
9303
9313
_ACEOF
9304
- rm -f conftest.$ac_objext conftest$ac_exeext
9314
+ for ac_lib in '' ssleay32 ssl; do
9315
+ if test -z "$ac_lib"; then
9316
+ ac_res="none required"
9317
+ else
9318
+ ac_res=-l$ac_lib
9319
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9320
+ fi
9321
+ rm -f conftest.$ac_objext conftest$ac_exeext
9305
9322
if { (ac_try="$ac_link"
9306
9323
case "(($ac_try" in
9307
9324
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
@@ -9322,31 +9339,38 @@ $as_echo "$ac_try_echo") >&5
9322
9339
test "$cross_compiling" = yes ||
9323
9340
$as_test_x conftest$ac_exeext
9324
9341
}; then
9325
- ac_cv_lib_ssleay32_SSL_library_init=yes
9342
+ ac_cv_search_SSL_library_init=$ac_res
9326
9343
else
9327
9344
$as_echo "$as_me: failed program was:" >&5
9328
9345
sed 's/^/| /' conftest.$ac_ext >&5
9329
9346
9330
- ac_cv_lib_ssleay32_SSL_library_init=no
9347
+
9331
9348
fi
9332
9349
9333
9350
rm -rf conftest.dSYM
9334
9351
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9335
- conftest$ac_exeext conftest.$ac_ext
9336
- LIBS=$ac_check_lib_save_LIBS
9352
+ conftest$ac_exeext
9353
+ if test "${ac_cv_search_SSL_library_init+set}" = set; then
9354
+ break
9337
9355
fi
9338
- { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9339
- $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9340
- if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9341
- cat >>confdefs.h <<_ACEOF
9342
- #define HAVE_LIBSSLEAY32 1
9343
- _ACEOF
9344
-
9345
- LIBS="-lssleay32 $LIBS"
9356
+ done
9357
+ if test "${ac_cv_search_SSL_library_init+set}" = set; then
9358
+ :
9359
+ else
9360
+ ac_cv_search_SSL_library_init=no
9361
+ fi
9362
+ rm conftest.$ac_ext
9363
+ LIBS=$ac_func_search_save_LIBS
9364
+ fi
9365
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9366
+ $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9367
+ ac_res=$ac_cv_search_SSL_library_init
9368
+ if test "$ac_res" != no; then
9369
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9346
9370
9347
9371
else
9348
- { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9349
- $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9372
+ { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9373
+ $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9350
9374
{ (exit 1); exit 1; }; }
9351
9375
fi
9352
9376
0 commit comments