]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/Makefile.linux
pppd: Fixed spelling 'unkown' => 'unknown' (#141)
[ppp.git] / pppd / Makefile.linux
index 8d5ce99d92202c4326730393c0d9e56d327fbefe..853b15c14be42703aa5ff203da287ded9209794a 100644 (file)
@@ -99,6 +99,7 @@ CFLAGS   += -DMSLANMAN=1
 endif
 ifdef MPPE
 CFLAGS   += -DMPPE=1
+HEADERS  += mppe.h
 endif
 endif
 
@@ -125,7 +126,7 @@ CFLAGS   += -DHAS_SHADOW
 #LIBS     += -lshadow $(LIBS)
 endif
 
-ifneq ($(wildcard /usr/include/crypt.h),)
+ifneq ($(wildcard $(shell $(CC) --print-sysroot)/usr/include/crypt.h),)
 CFLAGS  += -DHAVE_CRYPT_H=1
 LIBS   += -lcrypt
 endif
@@ -137,7 +138,7 @@ endif
 
 ifdef NEEDDES
 ifndef USE_CRYPT
-CFLAGS   += -I/usr/include/openssl
+CFLAGS   += -I$(shell $(CC) --print-sysroot)/usr/include/openssl
 LIBS     += -lcrypto
 else
 CFLAGS   += -DUSE_CRYPT=1