diff --git a/Makerules b/Makerules index f9b25d6..6c91c6c 100644 --- a/Makerules +++ b/Makerules @@ -106,11 +106,17 @@ SYS_GLUT_LIBS := -lglut -lGL WANT_OPENSSL ?= yes ifeq "$(WANT_OPENSSL)" "yes" -ifeq "$(shell pkg-config --exists 'libcrypto >= 1.1.0' && echo yes)" "yes" +ifeq "$(shell pkg-config --exists 'libcrypto >= 2.0.0' && echo libre)" "libre" +ifeq "$(shell pkg-config --exists 'libcrypto >= 2.7.0' && echo yes)" "yes" HAVE_LIBCRYPTO := yes SYS_LIBCRYPTO_CFLAGS := -DHAVE_LIBCRYPTO $(shell pkg-config --cflags libcrypto) SYS_LIBCRYPTO_LIBS := $(shell pkg-config --libs libcrypto) endif +else ifeq "$(shell pkg-config --exists 'libcrypto >= 1.1.0' && echo yes)" "yes" +HAVE_LIBCRYPTO := yes +SYS_LIBCRYPTO_CFLAGS := -DHAVE_LIBCRYPTO $(shell pkg-config --cflags libcrypto) +SYS_LIBCRYPTO_LIBS := $(shell pkg-config --libs libcrypto) +endif endif WANT_CURL ?= yes