[sr #110399] turning off preference for newest supported C?

Paul Eggert <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
Follow-up Comment #4, sr #110399 (project autoconf):

For what it's worth, I ran into a similar problem on Fedora 33 with Gnulib,
and found that it occurred because the Gnulib stdint module assumed that
AC_INCLUDES_DEFAULT was being called and that it set ac_cv_header_inttypes_h
and ac_cv_header_sys_types_h. This assumption is no longer true in Autoconf
2.70 (not sure whether that was intended). I fixed the problem by calling
AC_CHECK_HEADERS_ONCE([inttypes.h]) before using ac_cv_header_inttypes_h, and
by calling AC_CHECK_HEADERS_ONCE([sys/types.h]) before using
ac_cv_header_sys_types_h; see:

https://lists.gnu.org/r/bug-gnulib/2020-12/msg00118.html

I notice at least one similar issue in texlive, namely
texk/dvipng/dvipng-src/configure.ac uses ac_cv_header_inttypes_h without
invoking AC_CHECK_HEADERS([inttypes.h]). There may be other occurrences of the
problem.

I can't easily test the obvious fix for texk/dvipng/dvipng-src/configure.ac,
as texlive doesn't build for me on Fedora 33 (with the old Autoconf, not that
this matters when building without changing configure.ac etc.); the build
fails as follows:


checking for FT_Init_FreeType... no
configure: error: libfreetype2 not found
=== configuring in gd failed
make[2]: *** [Makefile:918: recurse] Error 1
make[2]: Leaving directory '/home/eggert/src/tug/source/Work/libs'
make[1]: *** [Makefile:488: all-recursive] Error 1
make[1]: Leaving directory '/home/eggert/src/tug/source/Work/libs'
make: *** [Makefile:582: all-recursive] Error 1



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?110399>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.