From 541584dfbb3b0ca4b12c4c468bc3ac809c30a46e Mon Sep 17 00:00:00 2001 From: Frank Cusack Date: Mon, 12 May 2003 08:13:24 +0000 Subject: [PATCH] use librcrypt if available (crypt(3) is apparently in libcrypt on Linux) --- pppd/Makefile.linux | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index ac7bebb..38f1f29 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -1,6 +1,6 @@ # # pppd makefile for Linux -# $Id: Makefile.linux,v 1.56 2003/01/13 08:17:04 fcusack Exp $ +# $Id: Makefile.linux,v 1.57 2003/05/12 08:13:24 fcusack Exp $ # # Default installation locations @@ -119,17 +119,18 @@ CFLAGS += -DHAS_SHADOW #LIBS += -lshadow $(LIBS) endif -ifdef NEEDDES -ifndef USE_CRYPT -LIBS += -ldes $(LIBS) -else -CFLAGS += -DUSE_CRYPT=1 ifneq ($(wildcard /usr/include/crypt.h),) CFLAGS += -DHAVE_CRYPT_H=1 endif ifneq ($(wildcard /usr/lib/libcrypt.*),) LIBS += -lcrypt endif + +ifdef NEEDDES +ifndef USE_CRYPT +LIBS += -ldes $(LIBS) +else +CFLAGS += -DUSE_CRYPT=1 endif PPPDOBJS += pppcrypt.o HEADERS += pppcrypt.h -- 2.39.5