]> git.ozlabs.org Git - ppp.git/commitdiff
Changing PLUGIN to PPP_WITH_PLUGINS for consistency
authorEivind Næss <eivnaes@yahoo.com>
Fri, 6 Aug 2021 23:46:43 +0000 (16:46 -0700)
committerEivind Næss <eivnaes@yahoo.com>
Fri, 15 Jul 2022 22:25:39 +0000 (15:25 -0700)
Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
Makefile.am
configure.ac
pppd/Makefile.am
pppd/options.c
pppd/pppdconf.h.in

index 15b2d098f060393b45f1f1bfbeffe6442ed0ce51..d7b376cd45b6e57d132b4a0572cd5bbfcaf6ea1a 100644 (file)
@@ -2,7 +2,7 @@ ACLOCAL_AMFLAGS="-Im4"
 
 SUBDIRS = chat contrib pppd pppstats pppdump
 
-if WITH_PLUGINS
+if PPP_WITH_PLUGINS
 SUBDIRS += pppd/plugins
 endif
 
index 04e094094c16c266bdbd6ee6ba99abee04207d6e..3e01cf24324ab9c3645e479dfadd290c82138614 100644 (file)
@@ -170,8 +170,8 @@ AM_COND_IF([PPP_WITH_TDB],
 AC_ARG_ENABLE([plugins],
     AS_HELP_STRING([--disable-plugins], [Disable support for loadable plugins]))
 AS_IF([test "x$enable_plugins" != "xno"],
-    AC_DEFINE([PLUGIN], 1, ["Have support for loadable plugins"]))
-AM_CONDITIONAL(WITH_PLUGINS, test "${enable_plugins}" != "no")
+    AC_DEFINE([PPP_WITH_PLUGINS], 1, ["Have support for loadable plugins"]))
+AM_CONDITIONAL(PPP_WITH_PLUGINS, test "${enable_plugins}" != "no")
 
 #
 # Disable EAP-TLS support
index 738613df8fca6c3ea374c021af7ac00e8c850e0d..d70dd26995cc68726868c3b6dd7cafaf7099e4a4 100644 (file)
@@ -107,7 +107,7 @@ pppd_LDFLAGS += $(PCAP_LDFLAGS)
 pppd_LIBS += $(PCAP_LIBS)
 endif
 
-if WITH_PLUGINS
+if PPP_WITH_PLUGINS
 pppd_CPPFLAGS += -DPPPD_PLUGIN_DIR='"@PPPD_PLUGIN_DIR@"'
 pppd_LIBS += -ldl
 if LINUX
index dda3933169a7373e1d598637c6d909d51259feb7..b35c0591eb0e85d20be96a9c639b7497c35a40d3 100644 (file)
@@ -54,7 +54,7 @@
 #include <syslog.h>
 #include <string.h>
 #include <pwd.h>
-#ifdef PLUGIN
+#ifdef PPP_WITH_PLUGINS
 #include <dlfcn.h>
 #endif
 
@@ -173,7 +173,7 @@ static int showversion(char **);
 static int showhelp(char **);
 static void usage(void);
 static int setlogfile(char **);
-#ifdef PLUGIN
+#ifdef PPP_WITH_PLUGINS
 static int loadplugin(char **);
 #endif
 
@@ -358,7 +358,7 @@ option_t general_options[] = {
       "Bundle name for multilink", OPT_PRIO },
 #endif /* PPP_WITH_MULTILINK */
 
-#ifdef PLUGIN
+#ifdef PPP_WITH_PLUGINS
     { "plugin", o_special, (void *)loadplugin,
       "Load a plug-in module into pppd", OPT_PRIV | OPT_A2LIST },
 #endif
@@ -1591,7 +1591,7 @@ setmodir(char **argv)
 }
 #endif
 
-#ifdef PLUGIN
+#ifdef PPP_WITH_PLUGINS
 static int
 loadplugin(char **argv)
 {
@@ -1644,7 +1644,7 @@ loadplugin(char **argv)
        free(path);
     return 0;
 }
-#endif /* PLUGIN */
+#endif /* PPP_WITH_PLUGINS */
 
 /*
  * Set an environment variable specified by the user.
index eeabcf4697f0e18706193fd0dd3c12c1d0872b51..dfad5b31677d09aa8100b17c0d2467abfb2e629f 100644 (file)
@@ -19,7 +19,7 @@
 #undef PPP_FILTER
 
 /* "Have support for loadable plugins" */
-#undef PLUGIN
+#undef PPP_WITH_PLUGINS
 
 /* "Limit sessions by maximum number of octets" */
 #undef MAXOCTETS