apr/build
Yann Ylavic 844777a15f build/apr_common.m4: avoid explicit inclusion of "confdefs.h"
Origin: 0a763c5e50

The failure is observed on `autoconf-2.69d` (soon to be released
as `autoconf-2.70`). There `int64_t` detection fails as:

$ autoreconf && ./configure
checking whether int64_t and int use fmt %d... no
checking whether int64_t and long use fmt %ld... no
checking whether int64_t and long long use fmt %lld... no
configure: error: could not determine the string function for int64_t
```

This happens because `./configure` always stumbles on warning:

configure:3350: gcc -c -g -O2 -Werror  conftest.c >&5
In file included from conftest.c:31:
confdefs.h:22: error: "__STDC_WANT_IEC_60559_ATTRIBS_EXT__" redefined [-Werror]
   22 | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
      |

It's triggered by double inclusion of `"confdefs.h"` contents:
explicitly in `APR_TRY_COMPILE_NO_WARNING` macro and implicitly
via `AC_LANG_SOURCE` use.

To fix it and avoid having to define `main()` declaration the change
uses `AC_LANG_PROGRAM` instead.

Tested on both `autoconf-2.69` and `autoconf-2.69d`.


Github: closes #25
Submitted by: Sergei Trofimovich <slyfox gentoo.org>
Reviewed by: ylavic


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1887279 13f79535-47bb-0310-9956-ffa450edef68

Gbp-Pq: Name build-apr_common.m4-avoid-explicit-inclusion-of-conf.patch
2023-01-16 15:55:45 +08:00
..
pkg Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
rpm Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
MakeEtags Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
NWGNUenvironment.inc Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
NWGNUhead.inc Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
NWGNUmakefile Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
NWGNUtail.inc Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
PrintPath Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
aplibtool.c Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
apr_common.m4 build/apr_common.m4: avoid explicit inclusion of "confdefs.h" 2023-01-16 15:55:45 +08:00
apr_hints.m4 Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
apr_network.m4 Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
apr_rules.mk.in dont_override_external_buildflags 2023-01-16 15:55:44 +08:00
apr_threads.m4 Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
apr_win32.m4 Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
aprapp.dep Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
aprapp.dsp Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
aprapp.mak Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
buildcheck.sh check for libtoolize rather than libtool 2023-01-16 15:55:44 +08:00
config.guess Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
config.sub Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
cvtdsp.pl Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
find_apr.m4 Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
fixwin32mak.pl Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
gen-build.py python3-hashbang 2023-01-16 15:55:44 +08:00
get-version.sh Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
install.sh Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
jlibtool.c Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
libaprapp.dep Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
libaprapp.dsp Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
libaprapp.mak Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
libtool.m4 Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
lineends.pl Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
ltmain.sh Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
ltoptions.m4 Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
ltsugar.m4 Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
ltversion.m4 Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
lt~obsolete.m4 Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
make_exports.awk Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
make_nw_export.awk Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
make_var_export.awk Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
mkdir.sh Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
nw_export.inc Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
nw_make_header.awk Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
nw_ver.awk Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
preaprapp.dsp Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
prelibaprapp.dsp Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
run-gcov.sh Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00
win32ver.awk Import Upstream version 1.7.0 2023-01-16 15:55:43 +08:00