@@ -9192,14 +9192,12 @@ $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
91929192fi
91939193
91949194 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
91999198 $as_echo_n "(cached) " >&6
92009199else
9201- ac_check_lib_save_LIBS=$LIBS
9202- LIBS="-leay32 $LIBS"
9200+ ac_func_search_save_LIBS=$LIBS
92039201cat >conftest.$ac_ext <<_ACEOF
92049202/* confdefs.h. */
92059203_ACEOF
@@ -9222,7 +9220,14 @@ return CRYPTO_new_ex_data ();
92229220 return 0;
92239221}
92249222_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
92269231if { (ac_try="$ac_link"
92279232case "(($ac_try" in
92289233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
@@ -9243,42 +9248,47 @@ $as_echo "$ac_try_echo") >&5
92439248 test "$cross_compiling" = yes ||
92449249 $as_test_x conftest$ac_exeext
92459250 }; then
9246- ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9251+ ac_cv_search_CRYPTO_new_ex_data=$ac_res
92479252else
92489253 $as_echo "$as_me: failed program was:" >&5
92499254sed 's/^/| /' conftest.$ac_ext >&5
92509255
9251- ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9256+
92529257fi
92539258
92549259rm -rf conftest.dSYM
92559260rm -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
92589264fi
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"
92679279
92689280else
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;}
92719283 { (exit 1); exit 1; }; }
92729284fi
92739285
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
92789289 $as_echo_n "(cached) " >&6
92799290else
9280- ac_check_lib_save_LIBS=$LIBS
9281- LIBS="-lssleay32 $LIBS"
9291+ ac_func_search_save_LIBS=$LIBS
92829292cat >conftest.$ac_ext <<_ACEOF
92839293/* confdefs.h. */
92849294_ACEOF
@@ -9301,7 +9311,14 @@ return SSL_library_init ();
93019311 return 0;
93029312}
93039313_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
93059322if { (ac_try="$ac_link"
93069323case "(($ac_try" in
93079324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
@@ -9322,31 +9339,38 @@ $as_echo "$ac_try_echo") >&5
93229339 test "$cross_compiling" = yes ||
93239340 $as_test_x conftest$ac_exeext
93249341 }; then
9325- ac_cv_lib_ssleay32_SSL_library_init=yes
9342+ ac_cv_search_SSL_library_init=$ac_res
93269343else
93279344 $as_echo "$as_me: failed program was:" >&5
93289345sed 's/^/| /' conftest.$ac_ext >&5
93299346
9330- ac_cv_lib_ssleay32_SSL_library_init=no
9347+
93319348fi
93329349
93339350rm -rf conftest.dSYM
93349351rm -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
93379355fi
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"
93469370
93479371else
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;}
93509374 { (exit 1); exit 1; }; }
93519375fi
93529376
0 commit comments