The issue was that the code generated by AC_LANG_PROGRAM
produces warnings, and hence -Werror makes detection fail:
$ gcc -x c -Werror -Wstrict-prototypes - <<<'int main() {}'; echo $?
<stdin>:1:5: error: function declaration isn’t a prototype [-Werror=strict-prototypes]
cc1: all warnings being treated as errors
1
- replaced the contents of buildconf.sh with instructions to run "autoreconf -fvi")
- some build files were removed, like config.guess, config.sub and install-sh,
as autoreconf will re-create them.
- clean-up modified to remove files that autoreconf re-created
* add Apache's version of config.guess and config.sub, which are both
recent, and have some helpful mods
* buildconf.sh: tweak call to libtoolize to avoid overwriting the above
* conftools/.cvsignore: the new files are supposed to be there
* Makefile.in: tweak to use $(prefix) for the manual page so that it
picks up install-time prefix changes. tossed an old comment. tweak
the 'extraclean' rule to avoid tossing the added config.* files.
* Makefile.in:
- from cygwin: add -no-undefined to the library link line
* conftools/get-version.sh: (new file)
- script to extract the version number from expat.h
* configure.in:
(some from the cygwin patch)
- update the prereq to 2.52 instead of just 2.50
- update the AC_INIT line to 2.52 standards: include the package
name, version (with a lot of gunk to get this), and where to send
bugs)
- update the output file generation to 2.52 standards
* make-release.sh:
- update to use the new get-version.sh script
* lib/expat.h:
- from cygwin: add a little define for CYGWIN
configure script. don't "clean" it and remove it from .cvsignore.
Note: to avoid problems in developer dirs, we nuke the file in
buildconf.sh for now; we'll stop doing that at some future time.
[idea from ASF]
* look for glibtoolize, in addition to libtoolize (e.g. the MacOS X platform
names it differently). [patch from ASF]
* conftools/missing is not needed
* use "exit 0" in buildconf.sh to help calling scripts. [patch from ASF]
* minor output cleanup in "make clean"
were out of date, and we've previously seen expat.h out of sync).
*) Use new script "buildconf.sh" to create the set of generated files
(aclocal.m4, config.h.in, configure). This is intended to be used by
developers (rerun when configure.in changes) and just before a release
(releases include these outputs).
Developers now need the "autoconf" and "libtool" packages.
*) config.h.in is now built by autoheader and includes bits from acconfig.h
rather than manual construction/maintenance. (renamed from config.hin)
*) added conftools/PrintPath from the ASF; it is a portable "which"
*) added "extraclean" target to top-level Makefile to get rid of all
generated files (return to pure CVS state; before buildconf.sh)
*) updates various bits for config.hin -> config.h.in rename
*) no longer need to delete the ".deps" subdir since we don't create it
anymore (dependencies are explicit rather than auto-generated).