From e7cf24822859f6352faedab9f931b647faf61875 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Wed, 30 Apr 1997 05:48:39 +0000 Subject: [PATCH] don't need -lbsd now, only use -lcrypt if it exists --- pppd/Makefile.linux | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux index 9333096..9ef8654 100644 --- a/pppd/Makefile.linux +++ b/pppd/Makefile.linux @@ -1,6 +1,6 @@ # # pppd makefile for Linux -# $Id: Makefile.linux,v 1.19 1997/03/04 03:35:05 paulus Exp $ +# $Id: Makefile.linux,v 1.20 1997/04/30 05:48:39 paulus Exp $ # # Default installation locations @@ -28,7 +28,11 @@ endif # COPTS = -O2 # -g VER = 2.3.0 -LIBS = -lcrypt -lbsd +LIBS = + +ifneq ($(wildcard /usr/lib/libcrypt*),) +LIBS += -lcrypt +endif # The INCLUDE_DIRS must include the standard headers before the local # ones. If you just had -I.. then the order would be reversed. So, use @@ -42,8 +46,15 @@ CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) ifdef CHAPMS CFLAGS += -DCHAPMS=1 +ifndef USE_CRYPT LIBS := -ldes $(LIBS) +else +CFLAGS += -DUSE_CRYPT=1 +endif PPPDOBJS += md4.o chap_ms.o +ifdef MSLANMAN +CFLAGS += -DMSLANMAN=1 +endif endif ifdef HAS_SHADOW -- 2.39.2