src/modules/auth_identity/Makefile
cd519eda
 
 include ../../Makefile.defs
 auto_gen=
 NAME=auth_identity.so
 
16784302
 ifeq ($(CROSS_COMPILE),)
 CURL_BUILDER=$(shell \
 	if pkg-config --exists libcurl; then \
 		echo 'pkg-config libcurl'; \
 	else \
 		which curl-config; \
 	fi)
c9d8a660
 SSL_BUILDER=$(shell \
 	if pkg-config --exists libssl; then \
 		echo 'pkg-config libssl'; \
 	fi)
16784302
 endif
 
 ifneq ($(CURL_BUILDER),)
 	DEFS += $(shell $(CURL_BUILDER) --cflags )
 	LIBS += $(shell $(CURL_BUILDER) --libs)
 else
 	DEFS+=-I$(LOCALBASE)/include
 	LIBS+=-L$(LOCALBASE)/lib -lcurl
 endif
 
c9d8a660
 ifneq ($(SSL_BUILDER),)
 	DEFS += $(shell $(SSL_BUILDER) --cflags)
 	LIBS += $(shell $(SSL_BUILDER) --libs)
 else
 	DEFS += -I$(LOCALBASE)/ssl/include
 	LIBS += -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib \
 			-L$(LOCALBASE)/lib64 -L$(LOCALBASE)/ssl/lib64 \
 			-lssl -lcrypto
 	# NOTE: depending on the way in which libssl was compiled you might
 	#       have to add -lz -lkrb5   (zlib and kerberos5).
 	#       E.g.: make TLS_HOOKS=1 TLS_EXTRA_LIBS="-lz -lkrb5"
 endif
 LIBS+= $(TLS_EXTRA_LIBS)
cd519eda
 
98307daf
 # Static linking, if you'd like to use TLS and AUTH_IDENTITY at the same time
 #
20747a3a
 #LIBS+= /usr/lib/libcurl.a /usr/lib/libssl.a /usr/lib/libcrypto.a -lkrb5 -lidn -lz -lgssapi_krb5 -lrt -lldap
98307daf
 
cd519eda
 include ../../Makefile.modules
c9d8a660