Index: .gitignore ================================================================== --- .gitignore +++ .gitignore @@ -1,9 +1,10 @@ *.dylib *.framework *.o *.so +*.so.* *~ .deps aclocal.m4 autom4te.cache buildsys.mk Index: autogen.sh ================================================================== --- autogen.sh +++ autogen.sh @@ -1,10 +1,10 @@ #!/bin/sh set -e # Set a version for OpenBSD : ${AUTOCONF_VERSION:=2.69} -: ${AUTOMAKE_VERSION:=1.15} +: ${AUTOMAKE_VERSION:=1.16} export AUTOCONF_VERSION AUTOMAKE_VERSION aclocal -I build-aux/m4 autoconf Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -42,21 +42,15 @@ AC_PATH_TOOL(AR, ar) AC_PROG_RANLIB AC_SUBST(OBJOPENSSL_STATIC_LIB, "libobjopenssl.a") ]) -PKG_CHECK_MODULES(openssl, [openssl >= 1.0.2], [ - CPPFLAGS="$CPPFLAGS $openssl_CFLAGS" - LIBS="$LIBS $openssl_LIBS" -], [ - PKG_CHECK_MODULES(eopenssl, [eopenssl >= 1.0.2], [ - CPPFLAGS="$CPPFLAGS $eopenssl_CFLAGS" - LIBS="$LIBS $eopenssl_LIBS" - ], [ - AC_MSG_ERROR(You need openssl >= 1.0.2 installed!) - ]) -]) +AC_CHECK_LIB(ssl, main, [ + LIBS="$LIBS -lssl -lcrypto" +], [ + AC_MSG_ERROR(You need openssl >= 1.0.2 installed!) +], [-lcrypto]) AS_IF([test x"$GOBJC" = x"yes"], [ OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wpointer-arith -Werror" ])