]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/Makefile.linux
pppd: Use a compile test to detect crypt.h (#198)
[ppp.git] / pppd / Makefile.linux
index a971ff34b33d7506865912f75acbe26d5bb18614..a6348ebf8117b814f16eabd2385d0c555b16068c 100644 (file)
@@ -140,7 +140,7 @@ CFLAGS   += -DHAS_SHADOW
 #LIBS     += -lshadow $(LIBS)
 endif
 
-ifneq ($(wildcard $(shell $(CC) --print-sysroot)/usr/include/crypt.h),)
+ifeq ($(shell echo '\#include <crypt.h>' | $(CC) -E - >/dev/null 2>&1 && echo yes),yes)
 CFLAGS  += -DHAVE_CRYPT_H=1
 LIBS   += -lcrypt
 endif