diff options
Diffstat (limited to 'aconfigure.ac')
-rw-r--r-- | aconfigure.ac | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/aconfigure.ac b/aconfigure.ac index 8bc454e8..700c2273 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -7,6 +7,7 @@ AC_CANONICAL_HOST AC_CANONICAL_TARGET AC_CONFIG_HEADER([pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h + pjsip/include/pjsip/sip_autoconf.h ]) AC_CONFIG_FILES([build.mak build/os-auto.mak @@ -385,6 +386,41 @@ AC_ARG_ENABLE(ilbc-codec, dnl ########################################## dnl # +dnl # PJSIP CONFIG +dnl # + +dnl # Include SSL support +AC_SUBST(ac_no_ssl) +AC_ARG_ENABLE(ssl, + [ + AC_HELP_STRING([--disable-ssl], + [Exclude SSL support the build (default: autodetect)]) + ], + [ + if test "$enable_ssl" = "no"; then + [ac_no_ssl=1] + AC_MSG_RESULT([Checking if SSL support is disabled... yes]) + fi + ], + [ + AC_MSG_RESULT([checking for OpenSSL installations..]) + AC_SUBST(openssl_h_present) + AC_SUBST(libssl_present) + AC_SUBST(libcrypto_present) + AC_CHECK_HEADER(openssl/ssl.h,[openssl_h_present=1]) + AC_CHECK_LIB(ssl,SSL_library_init,[libssl_present=1 && LIBS="$LIBS -lssl"]) + AC_CHECK_LIB(crypto,ERR_load_BIO_strings,[libcrypto_present=1 && LIBS="$LIBS -lcrypto"]) + if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then + AC_MSG_RESULT([OpenSSL library found, SSL support enabled]) + AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) + else + AC_MSG_RESULT([** OpenSSL libraries not found, disabling SSL support **]) + fi + ]) + + +dnl ########################################## +dnl # dnl # MANUAL CONFIG dnl # |