Changeset 862 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Dec 25, 2006 8:34:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r770 r862 8 8 AC_CONFIG_HEADER([pjlib/include/pj/compat/os_auto.h 9 9 pjlib/include/pj/compat/m_auto.h 10 pjsip/include/pjsip/sip_autoconf.h 10 11 ]) 11 12 AC_CONFIG_FILES([build.mak … … 386 387 dnl ########################################## 387 388 dnl # 389 dnl # PJSIP CONFIG 390 dnl # 391 392 dnl # Include SSL support 393 AC_SUBST(ac_no_ssl) 394 AC_ARG_ENABLE(ssl, 395 [ 396 AC_HELP_STRING([--disable-ssl], 397 [Exclude SSL support the build (default: autodetect)]) 398 ], 399 [ 400 if test "$enable_ssl" = "no"; then 401 [ac_no_ssl=1] 402 AC_MSG_RESULT([Checking if SSL support is disabled... yes]) 403 fi 404 ], 405 [ 406 AC_MSG_RESULT([checking for OpenSSL installations..]) 407 AC_SUBST(openssl_h_present) 408 AC_SUBST(libssl_present) 409 AC_SUBST(libcrypto_present) 410 AC_CHECK_HEADER(openssl/ssl.h,[openssl_h_present=1]) 411 AC_CHECK_LIB(ssl,SSL_library_init,[libssl_present=1 && LIBS="$LIBS -lssl"]) 412 AC_CHECK_LIB(crypto,ERR_load_BIO_strings,[libcrypto_present=1 && LIBS="$LIBS -lcrypto"]) 413 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then 414 AC_MSG_RESULT([OpenSSL library found, SSL support enabled]) 415 AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) 416 else 417 AC_MSG_RESULT([** OpenSSL libraries not found, disabling SSL support **]) 418 fi 419 ]) 420 421 422 dnl ########################################## 423 dnl # 388 424 dnl # MANUAL CONFIG 389 425 dnl #
Note: See TracChangeset
for help on using the changeset viewer.