Use AC_CHECK_LIB for ssl and crypto
diff --git a/Makefile.am b/Makefile.am
index 1f0302b..0983f68 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -61,12 +61,12 @@
ndn-cpp/c/transport/socket-transport.h ndn-cpp/c/transport/udp-transport.h ndn-cpp/transport/udp-transport.cpp ndn-cpp/transport/udp-transport.hpp
bin_test_encode_decode_interest_SOURCES = tests/test-encode-decode-interest.cpp
-bin_test_encode_decode_interest_LDADD = $(OPENSSL_LIBS) libndn-cpp.la libndn-c.la
+bin_test_encode_decode_interest_LDADD = libndn-cpp.la libndn-c.la
bin_test_encode_decode_data_SOURCES = tests/test-encode-decode-data.cpp
-bin_test_encode_decode_data_LDADD = $(OPENSSL_LIBS) libndn-cpp.la libndn-c.la
+bin_test_encode_decode_data_LDADD = libndn-cpp.la libndn-c.la
bin_test_get_async_SOURCES = tests/test-get-async.cpp
-bin_test_get_async_LDADD = $(OPENSSL_LIBS) libndn-cpp.la libndn-c.la
+bin_test_get_async_LDADD = libndn-cpp.la libndn-c.la
dist_noinst_SCRIPTS = autogen.sh