portable: configure: use config.h
commit47dc83f5bed376c49b704738968d3f44c8e01d1e
authorThomas Adam <thomas@xteddy.org>
Mon, 27 Feb 2023 11:36:29 +0000 (27 11:36 +0000)
committerThomas Adam <thomas@xteddy.org>
Wed, 8 Mar 2023 09:27:14 +0000 (8 09:27 +0000)
treebd747af3747ac9af9835bcb61bdc92f7bfeaee73
parent7f0ff4a55b1edcc332a395004bc76356777e30d8
portable: configure: use config.h

So that the command-line flags to CC don't get drowned out with copious
-D flags, move this detection to config.h instead.

Note that to reduce the code churn, the existing include/got_compat.h
header file has been renamed, and the generated file replaces it, but
with the contents of the original header file included.

Eventually, we might want to move some od the logic in
include/got_compat2.h into AH_VERBATIM() blocks, but for now, this is a
good compromise.
.gitignore
configure.ac
include/got_compat2.h [moved from include/got_compat.h with 99% similarity]