Fix libtool 2.4.2 to correctly detect .def files.

* ltmain.sh (sed_uncomment_deffile): New.
(orig_export_symbols): Uncomment def file before testing for EXPORTS.
* m4/libtool.m4: Do the same for the generated code.
--

The old code was not correct in that it only looked at the first line
and puts an EXPORTS keyword in front if missing.  Binutils 2.22
accepted a duplicated EXPORTS keyword but at least 2.23.2 is more
stringent and bails out without this fix.

There is no need to send this upstream.  Upstream's git master has a
lot of changes including a similar fix for this problems.  There are
no signs that a libtool 2.4.3 will be released to fix this problem and
thus we need to stick to our copy of 2.4.2 along with this patch.

Signed-off-by: Werner Koch <wk@gnupg.org>
Add --enable-silent-rules stuff.

* configure.ac: Add AM_SILENT_RULES.
Use the generic autogen.sh script.

* Makefile.am (EXTRA_DIST): Add autogen.rc.
* autogen.rc: New.
* autogen.sh: Update from current GnuPG.
* ltmain.sh: Move to build-aux/.
* compile: Ditto.
* config.guess: Ditto.
* config.sub: Ditto.
* depcomp: Ditto.
* doc/mdate-sh: Ditto.
* doc/texinfo.tex: Ditto.
* install-sh: Ditto.
* missing: Ditto.
* ylwrap: Ditto.
* configure.ac (AC_CONFIG_AUX_DIR): New.
Remove cruft.

* autogen.rc: Remove cruft.
Drop outdated missing script

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Update .gitignore

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Update gpl.texi to build with current texinfo

* gpl.texi: Fix sections nears the end of numbered GPL part.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Enable optional valgrind for testsuite

* configure.ac: Enable gnulib valgrind module.
* gl/m4/gnulib.m4: Enable valgrind module.
* tests/Makefile.am: Enable valgrind as LOG_COMPILER.
* gl/m4/valgrind-tests.m4: New

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Fix two memory leaks in cert-basic test

* tests/cert-basic.c (one_file): add/move xfree calls to always free
  allocated memory.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Adapt mkoidtbl script to newer dumpasn1 database format

* tests/mkoidtbl.awk: optionally parse oid at OID line.

--

Debian jessie currently has dumpasn1 version 20130608-1. It uses
dumpasn1.cfg with slightly different format:

OID = 0 2 262 1 10
Comment = Deutsche Telekom
Description = Telesec

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Fix memory leak in crl parsing code.

* src/crl.c (store_one_entry_extension): Free memory at oid variable -
  otherwise libksba leaks memory on crl parsing.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
First draft implementation of GOST R public keys handling

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Update GOST signatures handling

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Few GOST updates

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>