Back to index

courier  0.68.2
courier-config.c
Go to the documentation of this file.
00001 /*
00002 ** Copyright 2001 Double Precision, Inc.
00003 ** See COPYING for distribution information.
00004 */
00005 
00006 #include      "courier.h"
00007 #include      "prefix.h"
00008 #include      "exec_prefix.h"
00009 #include      "sysconfdir.h"
00010 #include      "localstatedir.h"
00011 #include      "libexecdir.h"
00012 #include      "bindir.h"
00013 #include      "sbindir.h"
00014 #include      "datadir.h"
00015 #include      "uidgid.h"
00016 #include      "configargs.h"
00017 #include      <string.h>
00018 #include      <stdlib.h>
00019 #if    HAVE_UNISTD_H
00020 #include      <unistd.h>
00021 #endif
00022 #include      <stdio.h>
00023 
00024 
00025 static const char prefix[]=PREFIX;
00026 static const char exec_prefix[]=EXEC_PREFIX;
00027 static const char sysconfdir[]=SYSCONFDIR;
00028 static const char localstatedir[]=LOCALSTATEDIR;
00029 static const char libexecdir[]=LIBEXECDIR;
00030 static const char bindir[]=BINDIR;
00031 static const char sbindir[]=SBINDIR;
00032 static const char datadir[]=DATADIR;
00033 
00034 static const char mailuser[]=MAILUSER;
00035 static const char mailgroup[]=MAILGROUP;
00036 
00037 static const char configargs[]=CONFIGURE_ARGS;
00038 
00039 int main(int argc, char **argv)
00040 {
00041        printf("prefix=%s\n", prefix);
00042        printf("exec_prefix=%s\n", exec_prefix);
00043        printf("bindir=%s\n", bindir);
00044        printf("sbindir=%s\n", sbindir);
00045        printf("libexecdir=%s\n", libexecdir);
00046        printf("sysconfdir=%s\n", sysconfdir);
00047        printf("datadir=%s\n", datadir);
00048        printf("localstatedir=%s\n", localstatedir);
00049        printf("mailuser=%s\n", mailuser);
00050        printf("mailgroup=%s\n", mailgroup);
00051        printf("mailuid=%d\n", MAILUID);
00052        printf("mailgid=%d\n", MAILGID);
00053        printf("configure_args=\"%s\"\n", configargs);
00054        exit(0);
00055        return (0);
00056 }