diff -ruN pptpd-1.3.0.orig/Makefile.am pptpd-1.3.0/Makefile.am --- pptpd-1.3.0.orig/Makefile.am 2006-07-26 18:05:12 +0400 +++ pptpd-1.3.0/Makefile.am 2006-07-26 18:04:49 +0400 @@ -1,3 +1,4 @@ +export LIBDIR=$(libdir)/pptpd # We have our own, simpler dependencies stuff in 'reconf' AUTOMAKE_OPTIONS = no-dependencies foreign diff -ruN pptpd-1.3.0.orig/plugins/Makefile pptpd-1.3.0/plugins/Makefile --- pptpd-1.3.0.orig/plugins/Makefile 2006-07-26 18:04:11 +0400 +++ pptpd-1.3.0/plugins/Makefile 2006-07-26 18:05:04 +0400 @@ -17,7 +17,7 @@ %.so: %.c $(CC) -o $@ $(LDFLAGS) $(CFLAGS) $^ -LIBDIR = $(DESTDIR)$(prefix)/lib/pptpd +LIBDIR ?= $(DESTDIR)$(prefix)/lib/pptpd install: $(PLUGINS) $(INSTALL) -d $(LIBDIR)