Skip to content

Instantly share code, notes, and snippets.

@dbolser
Created March 28, 2011 13:38
Show Gist options
  • Select an option

  • Save dbolser/890472 to your computer and use it in GitHub Desktop.

Select an option

Save dbolser/890472 to your computer and use it in GitHub Desktop.
# autodetect if openssl is installed
ifeq (${SSLDIR},)
SSLDIR = /usr/include/openssl
endif
ifeq (${USE_SSL},)
ifneq ($(wildcard ${SSLDIR}),)
USE_SSL=1
endif
endif
# libssl: disabled by default
ifeq (${USE_SSL},1)
L+=-lssl -lcrypto
HG_DEFS+=-DUSE_SSL
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment