Skip to content
Snippets Groups Projects
Commit 51d98651 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Tristan Matthews
Browse files

configure: drop libcrypto check

Change-Id: I0ecc75759f01b6cbae149c6370050e52c81e688f
Refs: #47621
parent 540bae20
No related branches found
No related tags found
No related merge requests found
......@@ -73,12 +73,39 @@ AC_COMPILE_IFELSE(
AC_MSG_RESULT([$CLANG])
dnl Check if we are compiling for android
AC_MSG_CHECKING([if compiling for android])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([], [[
#ifndef __ANDROID__
not android
#endif
]])],
[ANDROID=yes], [ANDROID=no])
AC_MSG_RESULT([$ANDROID])
AM_CONDITIONAL([USE_ANDROID], test "x$ANDROID" = "xyes")
AC_SEARCH_LIBS([yaml_parser_initialize], [yaml], [AC_SUBST(YAML_LIBS, -lyaml)], [
AC_MSG_ERROR([Unable to find yaml development files])])
LIBCRYPTO_MIN_VERSION=1.0
PKG_CHECK_MODULES(LIBCRYPTO, libcrypto >= ${LIBCRYPTO_MIN_VERSION}, HAVE_LIBCRYPTO=true, HAVE_LIBCRYPTO=false);
if test "xSANDROID" = "xyes"; then
dnl Check for OpenSL
AC_ARG_WITH([opensl],
AS_HELP_STRING([--without-opensl],
[Ignore presence of opensl and disable it]))
AS_IF([test "x$with_opensl" != "xno"],
[AC_CHECK_HEADER(["SLES/OpenSLES.h"],
[have_opensl=yes], [have_opensl=no])],
[have_opensl=no])
AC_DEFINE_UNQUOTED([HAVE_OPENSL],
`if test "x$have_opensl" = "xyes"; then echo 1; else echo 0; fi`,
[Define if you have OpenSL])
fi
AM_CONDITIONAL([BUILD_OPENSL], test "x$have_opensl" = "xyes")
dnl Check for alsa development package - name: libasound2-dev
ALSA_MIN_VERSION=1.0
......
......@@ -6,7 +6,7 @@ check_PROGRAMS = test
TESTS = run_tests.sh
test_CXXFLAGS = -DWORKSPACE="$(top_srcdir)/test/" @PTHREAD_CFLAGS@
test_LDADD = $(top_builddir)/src/libsflphone.la @ZRTPCPP_LIBS@ @LIBCRYPTO_LIBS@ @CPPUNIT_LIBS@ @YAML_LIBS@
test_LDADD = $(top_builddir)/src/libsflphone.la @ZRTPCPP_LIBS@ @CPPUNIT_LIBS@ @YAML_LIBS@
EXTRA_DIST = sflphoned-sample.yml history-sample.tpl run_tests.sh
test_SOURCES = constants.h \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment