]> diplodocus.org Git - nmh/blobdiff - uip/mhparam.c
Fix tests with oauth disabled.
[nmh] / uip / mhparam.c
index bd22470c3732715e617a3a6eb85e75cf8aa8ffb0..f6daf9a53c28d80adc9e9b8e2e3bf2f74c40f11c 100644 (file)
@@ -29,8 +29,9 @@ DEFINE_SWITCH_ENUM(MHPARAM);
 DEFINE_SWITCH_ARRAY(MHPARAM, switches);
 #undef X
 
-extern char *mhlibdir;
+extern char *mhbindir;
 extern char *mhetcdir;
+extern char *mhlibexecdir;
 
 static char *sbackup = BACKUP_PREFIX;
 
@@ -75,6 +76,13 @@ static char *iconv =
     "";
 #endif
 
+static char *oauth =
+#ifdef OAUTH_SUPPORT
+    "oauth";
+#else
+    "";
+#endif
+
 struct proc {
     char *p_name;
     char **p_field;
@@ -104,13 +112,16 @@ static struct proc procs [] = {
      { "version",          &version_num },
      { "whatnowproc",      &whatnowproc },
      { "whomproc",         &whomproc },
+     { "bindir",           &mhbindir },
      { "etcdir",           &mhetcdir },
-     { "libdir",           &mhlibdir },
+     { "libdir",           &mhlibexecdir },
+     { "libexecdir",       &mhlibexecdir },
      { "localmbox",       &localmbox },
      { "sbackup",          &sbackup },
      { "datalocking",      &datalocking },
      { "spoollocking",     &spoollocking },
      { "iconv",                   &iconv },
+     { "oauth",                   &oauth },
      { "sasl",             &sasl },
      { "tls",              &tls },
      { NULL,               NULL },