]> git.ozlabs.org Git - ppp.git/commitdiff
Get the plugins from the right directory when DESTDIR isn't /usr.
authorPaul Mackerras <paulus@samba.org>
Sun, 10 Jul 2005 11:19:10 +0000 (11:19 +0000)
committerPaul Mackerras <paulus@samba.org>
Sun, 10 Jul 2005 11:19:10 +0000 (11:19 +0000)
pppd/Makefile.linux
pppd/pathnames.h

index e7e52b84c722a225f5dbd243172ead87568369cf..d75b20c7086988d717768b85beb0815599233b0b 100644 (file)
@@ -1,6 +1,6 @@
 #
 # pppd makefile for Linux
-# $Id: Makefile.linux,v 1.66 2004/11/13 12:02:22 paulus Exp $
+# $Id: Makefile.linux,v 1.67 2005/07/10 11:19:10 paulus Exp $
 #
 
 # Default installation locations
@@ -79,7 +79,7 @@ INCLUDE_DIRS= -I../include
 
 COMPILE_FLAGS= -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP
 
-CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS)
+CFLAGS= $(COPTS) $(COMPILE_FLAGS) $(INCLUDE_DIRS) '-DDESTDIR="@DESTDIR@"'
 
 ifdef CHAPMS
 CFLAGS   += -DCHAPMS=1
index 555f40f33d41937e2b16eaf50384a819320d966b..f070b43617087f0f1a3ee272c8f9ec2d8917b262 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * define path names
  *
- * $Id: pathnames.h,v 1.16 2004/11/13 12:02:22 paulus Exp $
+ * $Id: pathnames.h,v 1.17 2005/07/10 11:19:10 paulus Exp $
  */
 
 #ifdef HAVE_PATHS_H
 #endif /* __STDC__ */
 
 #ifdef PLUGIN
-#define _PATH_PLUGIN   "/usr/lib/pppd/" VERSION
+#ifdef __STDC__
+#define _PATH_PLUGIN   DESTDIR "/lib/pppd/" VERSION
+#else /* __STDC__ */
+#define _PATH_PLUGIN   "/usr/lib/pppd"
+#endif /* __STDC__ */
+
 #endif /* PLUGIN */