Ignore:
Timestamp:
Dec 3, 2014 4:16:24 AM (9 years ago)
Author:
nanang
Message:

Misc (re #1782): Fixed OpenSSL detection in configure script due to incomplete dependencies and bad library order, which causes OpenSSL detection failure on some platform such as Android mips and arm64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r4953 r4966  
    15331533                AC_SUBST(libcrypto_present) 
    15341534                AC_CHECK_HEADER(openssl/ssl.h,[openssl_h_present=1]) 
    1535                 AC_CHECK_LIB(crypto,ERR_load_BIO_strings,[libcrypto_present=1 && LIBS="$LIBS -lcrypto"]) 
    1536                 AC_CHECK_LIB(ssl,SSL_library_init,[libssl_present=1 && LIBS="$LIBS -lssl"]) 
     1535                AC_CHECK_LIB(crypto,ERR_load_BIO_strings,[libcrypto_present=1 && LIBS="-lcrypto -ldl -lz $LIBS"],,-ldl -lz) 
     1536                AC_CHECK_LIB(ssl,SSL_library_init,[libssl_present=1 && LIBS="-lssl $LIBS"]) 
    15371537                if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then 
    15381538                        AC_MSG_RESULT([OpenSSL library found, SSL support enabled]) 
Note: See TracChangeset for help on using the changeset viewer.