Changeset 5656 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Sep 22, 2017 2:42:22 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r5630 r5656 567 567 dnl # Use external SRTP installation 568 568 AC_SUBST(ac_external_srtp,0) 569 AC_SUBST(ac_external_srtp_lib) 569 570 AC_ARG_WITH(external-srtp, 570 571 AS_HELP_STRING([--with-external-srtp], … … 574 575 # Test SRTP installation 575 576 AC_MSG_CHECKING([if external SRTP devkit is installed]) 576 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <srtp /srtp.h>577 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <srtp2/srtp.h> 577 578 ]], 578 579 [srtp_init();])], 579 [AC_MSG_RESULT(yes!!) 580 [AC_MSG_RESULT(yes: version 2.x) 581 ac_external_srtp="2" 582 ac_external_srtp_lib="srtp2" 583 ], 584 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <srtp/srtp.h> 585 ]], 586 [srtp_init();])], 587 [AC_MSG_RESULT(yes: version 1.x) 580 588 ac_external_srtp="1" 589 ac_external_srtp_lib="srtp" 581 590 ], 582 [AC_MSG_ERROR([Unable to use SRTP. If SRTP development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths])]) 591 [AC_MSG_ERROR([Unable to use SRTP. If SRTP development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths])])]) 583 592 fi 584 593 ] … … 586 595 587 596 dnl # For external SRTP, check availability of srtp_deinit() or srtp_shutdown() 588 if test "x$ac_external_srtp" = "x1"; then597 if test "x$ac_external_srtp" != "x0"; then 589 598 AC_SUBST(ac_srtp_deinit_present,0) 590 599 AC_SUBST(ac_srtp_shutdown_present,0) 591 AC_CHECK_LIB( srtp,srtp_deinit,[ac_srtp_deinit_present=1])600 AC_CHECK_LIB($ac_external_srtp_lib,srtp_deinit,[ac_srtp_deinit_present=1]) 592 601 if test "x$ac_srtp_deinit_present" != "x1"; then 593 AC_CHECK_LIB( srtp,srtp_shutdown,[ac_srtp_shutdown_present=1])602 AC_CHECK_LIB($ac_external_srtp_lib,srtp_shutdown,[ac_srtp_shutdown_present=1]) 594 603 fi 595 604 fi
Note: See TracChangeset
for help on using the changeset viewer.