dirmngr: Require a c99 compiler
authorWerner Koch <wk@gnupg.org>
Wed, 14 Dec 2016 09:21:16 +0000 (10:21 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 14 Dec 2016 14:57:16 +0000 (15:57 +0100)
commit392966aed9b2a5e1456c671e5d13b561a27e4bb2
tree21d60c1ff5be5e5b9a3024cee01c11b9b5b8ffcf
parentd84f5a88233c073a82fd47728574b001343784ee
dirmngr: Require a c99 compiler

* configure.ac (USE_C99_CFLAGS): New ac_subst.  Set to -std=gnu99 for
gcc.
* dirmngr/Makefile.am (AM_CFLAGS): Add USE_C99_CFLAGS.
(t_http_CFLAGS): Ditto.
(t_ldap_parse_uri_CFLAGS): Ditto.
(t_dns_stuff_CFLAGS): Ditto.
--

C99 and the GCC option is required for use with dns.c which makes
heavy use of C99 features.  We should consider to switch GnuPG
entirely to C99 but enable gcc warnings to detect features which are
not supported by not-real-c99 compilers and which makes audits
harder (VLA etc.).

Signed-off-by: Werner Koch <wk@gnupg.org>
configure.ac
dirmngr/Makefile.am