| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
mailutils-config -- Get the Information about the Mailutils Build This program is designed for developers wishing to link their programs against libmailbox. It allows to examine the particulars of the current build of Mailutils and to get the command line parameters necessary for compiling and linking an application with Mailutils libraries.
Getting Compiler Flags Getting Loader Flags Obtaining General Build Information
When invoked with the option `--compile', or its short form
`-c', mailutils-config prints the flags
that must be given to the compiler for compiling the program using
Mailutils functions. An example usage:
cc -omyprog.o `mailutils-config --compile` myprog.c |
The `--link', or its short form `-l' prints to the standard output the loader flags necessary to link a program against Mailutils libraries.
When invoked without arguments, it produces the flags necessary to link against the basic library of Mailutils: `libmailbox'. Arguments may be given that alter this behavior. These are:
mbox format library.
mh format library.
maildir format library.
imap format library.
pop format library.
The order of arguments does not matter.
For example, if you wrote a program `myprog.c' that uses standard UNIX mailbox format, MH format and the Guile interface, then you would link it with the following command:
cc -omyprog myprog.o `mailutils-config --link mbox mh guile` |
The `--info', or `-i' retrieves the options (flags) used when building Mailutils. It may be used with or without arguments.
When used without arguments, it prints the list of all build flags, e.g.:
$ mailutils-config --info VERSION=0.4.1 USE_LIBPAM HAVE_LIBLTDL WITH_GDBM WITH_GNUTLS WITH_GSASL WITH_GUILE WITH_PTHREAD WITH_READLINE HAVE_MYSQL ENABLE_VIRTUAL_DOMAINS ENABLE_IMAP ENABLE_POP ENABLE_MH ENABLE_MAILDIR ENABLE_SMTP ENABLE_SENDMAIL |
This option also accepts any number of arguments. When these are
given, each argument is treated as a name of a build flag.
Mailutils-config checks if such a flag was defined and
prints its full name if so. It exits with zero code if all the
flags given on the command line are defined. Otherwise, it
exits with code of 1.
The comparison of the flag names is case-insensitive. The arguments given need not include the leading prefix (i.e. the characters up to and including the first underscore character).
Given the previous example, the invocation
$ mailutils --info readline use_libpam pop |
will produce the following output:
WITH_READLINE USE_LIBPAM ENABLE_POP |
and will exit with a zero status.
The following command:
$ mailutils --info readline gssapi pop |
will exit with status 1, and will print:
WITH_READLINE ENABLE_POP |
since WITH_GSSAPI flag is not defined.
The flags and their meanings are:
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |