Mercurial > mxe-octave
diff src/libgsasl-test.c @ 1792:cd31a7f7bf6f
package libgsasl: explicitly disable NLS
Without this patch, libgsasl drags in a dependency on libintl if
gettext happens to be built before libgsasl.
Also added a minimal test program.
author | Martin Lambers <marlam@marlam.de> |
---|---|
date | Wed, 27 Apr 2011 16:14:57 +0200 |
parents | |
children | f653602a0500 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/libgsasl-test.c Wed Apr 27 16:14:57 2011 +0200 @@ -0,0 +1,21 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include <gsasl.h> + +int main(int argc, char *argv[]) +{ + Gsasl *ctx; + + (void)argc; + (void)argv; + + if (gsasl_init(&ctx) == GSASL_OK) + { + (void)gsasl_client_support_p(ctx, "CRAM-MD5"); + gsasl_done(ctx); + return 0; + } + + return 0; +}