Changeset 5959 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Mar 26, 2019 7:25:57 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r5957 r5959 1542 1542 dnl # SSL alt prefix 1543 1543 AC_ARG_WITH(ssl, 1544 AS_HELP_STRING([--with-ssl=SSL_BACKEND/DIR], 1545 [Specify alternate SSL library prefix or SSL native-backend. 1546 You can specify "darwin" as the native iOS/MacOS backend 1547 using Security framework, or you can specify an alternate 1548 SSL library prefix directory. If a directory 1549 is specified, this option will try to find OpenSSL first, 1550 then if not found, GnuTLS. To skip OpenSSL finding, use 1551 --with-gnutls option instead.]), 1544 AS_HELP_STRING([--with-ssl=DIR], 1545 [Specify alternate SSL library prefix. This option will try 1546 to find OpenSSL first, then if not found, GnuTLS. To skip 1547 OpenSSL finding, use --with-gnutls option instead.]), 1552 1548 [], 1553 1549 [with_ssl=no] … … 1571 1567 AC_SUBST(ac_ssl_has_aes_gcm,0) 1572 1568 AC_SUBST(ac_ssl_backend) 1573 AC_ARG_ENABLE(ssl, 1574 AS_HELP_STRING([--disable-ssl], 1575 [Exclude SSL support the build (default: autodetect)]) 1576 , 1577 [ 1578 if test "$enable_ssl" = "no"; then 1579 [ac_no_ssl=1] 1580 AC_MSG_RESULT([Checking if SSL support is disabled... yes]) 1581 fi 1582 ], 1583 [ 1584 if test "x$with_ssl" = "xdarwin"; then 1569 1570 AC_ARG_ENABLE(darwin-ssl, 1571 AS_HELP_STRING([--disable-darwin-ssl], 1572 [Exclude Darwin SSL (default: autodetect)]), 1573 [if test "$enable_darwin_ssl" = "no"; then 1574 AC_MSG_RESULT([Checking if Darwin SSL support is disabled... yes]) 1575 fi], 1576 [ 1577 case $target in 1578 *darwin*) 1585 1579 SAVED_LIBS="$LIBS" 1586 1580 LIBS="-framework Security" … … 1592 1586 AC_DEFINE(PJ_SSL_SOCK_IMP, PJ_SSL_SOCK_IMP_DARWIN) 1593 1587 LIBS="$LIBS -framework Security" 1594 ac_ssl_backend="darwin"1595 1588 AC_MSG_RESULT([Checking if Security framework for Darwin SSL is available... yes]) 1596 1589 else 1597 1590 AC_MSG_RESULT([Checking if Security framework for Darwin SSL is available... no]) 1598 1591 fi 1599 fi 1600 1601 if test "x$ac_ssl_backend" = "x" -a "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then 1592 ;; 1593 esac 1594 ]) 1595 1596 AC_ARG_ENABLE(ssl, 1597 AS_HELP_STRING([--disable-ssl], 1598 [Exclude SSL support the build (default: autodetect)]) 1599 , 1600 [ 1601 if test "$enable_ssl" = "no"; then 1602 [ac_no_ssl=1] 1603 AC_MSG_RESULT([Checking if SSL support is disabled... yes]) 1604 fi 1605 ], 1606 [ 1607 if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then 1602 1608 CFLAGS="$CFLAGS -I$with_ssl/include" 1603 1609 CPPFLAGS="$CPPFLAGS -I$with_ssl/include" … … 1606 1612 fi 1607 1613 1608 if test "x$ac_ssl_backend" = "x" -a "x$with_gnutls" = "xno"; then 1609 1614 if test "x$with_gnutls" = "xno"; then 1615 # We still need to check for OpenSSL installations even if 1616 # we find Darwin SSL above since DTLS requires OpenSSL. 1610 1617 AC_MSG_RESULT([checking for OpenSSL installations..]) 1611 1618 AC_SUBST(openssl_h_present) … … 1633 1640 fi 1634 1641 1635 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK 1636 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) 1637 AC_DEFINE(PJ_HAS_SSL_SOCK, 1) 1638 AC_DEFINE(PJ_SSL_SOCK_IMP, PJ_SSL_SOCK_IMP_OPENSSL) 1639 ac_ssl_backend="openssl" 1642 if test "x$ac_ssl_backend" = "x"; then 1643 # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK 1644 #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) 1645 AC_DEFINE(PJ_HAS_SSL_SOCK, 1) 1646 AC_DEFINE(PJ_SSL_SOCK_IMP, PJ_SSL_SOCK_IMP_OPENSSL) 1647 ac_ssl_backend="openssl" 1648 fi 1640 1649 else 1641 1650 AC_MSG_RESULT([** OpenSSL libraries not found **])
Note: See TracChangeset
for help on using the changeset viewer.