diff options
author | Jason Parker <jparker@digium.com> | 2013-03-11 15:51:17 -0500 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2013-03-11 15:51:17 -0500 |
commit | af93a26aa321d3620925e5df68574226ba6cec3c (patch) | |
tree | c73301bfef50ae9ba250285bbcc7879f5c837e04 /aconfigure.ac | |
parent | 09114052f74fe74bbf652189cedefe41b7141b86 (diff) | |
parent | 9550ec7a68b8d072f99872d44def5004dbcc2562 (diff) |
Merge branch 'patch/external-srtp' of github.com:asterisk/pjproject
Conflicts:
build.mak.in
Diffstat (limited to 'aconfigure.ac')
-rw-r--r-- | aconfigure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/aconfigure.ac b/aconfigure.ac index 8d184a2..f9152d3 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -525,6 +525,26 @@ AC_ARG_WITH(external-gsm, ) +dnl # Use external SRTP installation +AC_SUBST(ac_external_srtp,0) +AC_ARG_WITH(external-srtp, + AC_HELP_STRING([--with-external-srtp], + [Use external SRTP development files, not the one in "third_party" directory. When this option is set, make sure that SRTP is accessible to use (hint: use CFLAGS and LDFLAGS env var to set the include/lib paths)]), + [ + if test "x$with_external_srtp" != "xno"; then + # Test SRTP installation + AC_MSG_CHECKING([if external SRTP devkit is installed]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <srtp/srtp.h> + ]], + [srtp_init();])], + [AC_MSG_RESULT(yes!!) + ac_external_srtp="1" + ], + [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])]) + fi + ] + ) + dnl # Sound device backend selection AC_SUBST(ac_pjmedia_snd) |