+2007-01-08 Werner Koch <wk@g10code.com>
+
+ * configure.ac: Require gpg-error 1.4 due to the use of
+ gpg_error_from_syserror.
+ (HAVE_ASSUAN_H): New.
+
2007-01-05 Marcus Brinkmann <marcus@g10code.de>
* configure.ac: Add options --with-gpg-version and
## Process this file with automake to produce Makefile.in
-# Because there is no free IDL compiler for OLE, we have to distribute
-# a binary typelibrary. To generate a new one, copy the idl file to a
-# system with an install MIDL and run the command
-# midl /nocpp gpgcom.idl
-# Sorry, there is no other way yet.
+# Because WIDL does not yet fully support generation of typelibs, we
+# have to distribute a binary type library. To generate a new one,
+# copy the idl file to a system with an install MIDL and run the
+# command "midl /nocpp gpgcom.idl". Sorry, there is no other way yet.
+
EXTRA_DIST = gpgcom.idl gpgcom.tlb gpgcom.rc vbtest.html vbtest.vbs README
# No need to install this because we are cross-compiling anyway.
fi
# Checking for libgpg-error.
-AM_PATH_GPG_ERROR(0.5,, AC_MSG_ERROR([libgpg-error was not found]))
+AM_PATH_GPG_ERROR(1.4,, AC_MSG_ERROR([libgpg-error was not found]))
AC_DEFINE(GPG_ERR_SOURCE_DEFAULT, GPG_ERR_SOURCE_GPGME,
[The default error source for GPGME.])
# FIXME: Only build if supported.
AM_CONDITIONAL(BUILD_ASSUAN, test "$GPGSM" != "no")
-
+if test "$GPGSM" != "no"; then
+ AC_DEFINE(HAVE_ASSUAN_H, ,[Defined if we are building with assuan support.])
+fi
# The assuan code uses funopen but it will also build without it. So
# test for it. Frankly, this is not required in gpgme, but thats the
+2007-01-08 Werner Koch <wk@g10code.com>
+
+ * version.c (do_subsystem_inits): Do assuan init only if building
+ with Assuan.
+ * setenv.c: Include assuan-def.h only if building with Assuan
+ support.
+
+ * op-support.c (_gpgme_op_reset): Set LC_MESSAGES only if
+ if defined.
+ * engine-gpgsm.c (gpgsm_set_locale): Ditto.
+ * rungpg.c (gpg_set_locale): Ditto.
+
2006-12-17 Marcus Brinkmann <marcus@g10code.de>
* gpgme.c (gpgme_set_protocol): Shut down the engine when
if (value)
gpgsm->lc_ctype_set = 1;
}
+#ifdef LC_MESSAGES
else if (category == LC_MESSAGES)
{
catstr = "lc-messages";
if (value)
gpgsm->lc_messages_set = 1;
}
+#endif /* LC_MESSAGES */
else
return gpg_error (GPG_ERR_INV_VALUE);
AM_PATH_GPGME macro) check that this header matches the installed
library. Warning: Do not edit the next line. configure will do
that for you! */
-#define GPGME_VERSION "1.1.3-cvs1196"
+#define GPGME_VERSION "1.1.3-cvs1200"
\f
}
err = _gpgme_engine_set_locale (ctx->engine, LC_CTYPE, ctx->lc_ctype);
+#ifdef LC_MESSAGES
if (!err)
err = _gpgme_engine_set_locale (ctx->engine,
LC_MESSAGES, ctx->lc_messages);
+#endif
+
if (err)
{
_gpgme_engine_release (ctx->engine);
return gpg_error_from_syserror ();
}
}
+#ifdef LC_MESSAGES
else if (category == LC_MESSAGES)
{
if (gpg->lc_messages)
return gpg_error_from_syserror ();
}
}
+#endif /* LC_MESSAGES */
else
return gpg_error (GPG_ERR_INV_VALUE);
# include <config.h>
#endif
+#if HAVE_ASSUAN_H
+/* Fixme: Why do we need to include the assuan header and why the
+ internal ones? */
#include "assuan-defs.h"
+#endif /*HAVE_ASSUAN_H*/
#define __builtin_expect(cond,val) (cond)
/* For _gpgme_sema_subsystem_init (). */
#include "sema.h"
+#ifdef HAVE_ASSUAN_H
#include "assuan.h"
+#endif
\f
/* Bootstrap the subsystems needed for concurrent operation. This
_gpgme_sema_subsystem_init ();
_gpgme_io_subsystem_init ();
+#ifdef HAVE_ASSUAN_H
assuan_set_assuan_err_source (GPG_ERR_SOURCE_GPGME);
+#endif
done = 1;
}