Crypt-JWS

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

use 5.010000;
use strict;
use warnings;
use ExtUtils::MakeMaker;
use ExtUtils::Depends;
use Config;

# Crypt::JWS binds libcrypto (OpenSSL) for JWS signing and verification.
# Unlike Fetch, where TLS is optional, libcrypto is the whole point here:
# configure fails loudly when it is missing. Detection follows the house
# cascade - pkg-config, then a compile probe, then homebrew keg paths -
# and API differences between OpenSSL 1.1 and 3.x are FEATURE probed
# (never version sniffed): the 3.x provider API via EVP_PKEY_fromdata,
# the 1.1 struct API via RSA_set0_key.

my $DEFINE = '';
my $LIBS   = '';
my $INC    = '-Iinclude';

my ($ssl_cflags, $ssl_libs);
if (system('pkg-config --exists libcrypto >/dev/null 2>&1') == 0) {



( run in 0.858 second using v1.01-cache-2.11-cpan-e7c6538aa59 )