commit 7e97fd319197d8a100a5de3f613a02253977b26b from: Thomas Adam date: Wed Sep 04 20:00:28 2024 UTC portable: add check for libcrypto This is needed for gotd's got-notify-http libexec helper. commit - 89a8666a0364791b8c6b40f914b1dc919592d1ee commit + 7e97fd319197d8a100a5de3f613a02253977b26b blob - 1a04a063314fb2fb9e9b5344a346eb6e4c2dcead blob + b065fd4370af8bf8b2e9e1965d21cb5f905c12f0 --- configure.ac +++ configure.ac @@ -771,6 +771,19 @@ PKG_CHECK_MODULES( ], AC_MSG_ERROR(["*** Couldn't find libtls ***"]) ) + +# Look for crypto (part of openssl) +PKG_CHECK_MODULES( + LIBCRYPTO, + [libcrypto], + [ + libcrypto_CFLAGS="$LIBCRYPTO_CFLAGS" + libcrypto_LIBS="$LIBCRYPTO_LIBS" + AC_SUBST(libcrypto_CFLAGS) + AC_SUBST(libcrypto_LIBS) + ], + AC_MSG_ERROR(["*** Couldn't find libcrypto ***"]) +) fi # Look for __progname. blob - 1cbc9bf79ffeb8bb5f2f5e42877dfb8c3a155986 blob + 004a2be18921988cf17814c84201ddb89b275e0c --- gotd/libexec/got-notify-http/Makefile.am +++ gotd/libexec/got-notify-http/Makefile.am @@ -15,7 +15,8 @@ got_notify_http_SOURCES = got-notify-http.c \ got_notify_http_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a LDADD = -L$(top_builddir)/compat -lopenbsd-compat -LDADD += $(zlib_LIBS) $(libbsd_LIBS) $(libutil_LIBS) $(libmd_LIBS) $(libtls_LIBS) +LDADD += $(zlib_LIBS) $(libbsd_LIBS) $(libutil_LIBS) $(libmd_LIBS) \ + $(libtls_LIBS) $(libcrypto_LIBS) if HOST_FREEBSD LDADD += -lmd endif @@ -24,4 +25,5 @@ if HOST_OPENBSD LDADD += -ltls endif -AM_CPPFLAGS += $(zlib_CFLAGS) $(libbsd_CFLAGS) $(libmd_CFLAGS) $(libtls_CFLAGS) +AM_CPPFLAGS += $(zlib_CFLAGS) $(libbsd_CFLAGS) $(libmd_CFLAGS) \ + $(libtls_CFLAGS) $(libcrypto_CFLAGS) blob - e100344e77d2e37963d0fc58732e8b298127b4a6 blob + e96c864b1063d14085e71cf29b14566c0f446574 --- gotd/libexec/got-notify-http/got-notify-http.c +++ gotd/libexec/got-notify-http/got-notify-http.c @@ -27,8 +27,6 @@ #include #include #include -#include -#include #include #include #include