[sr #110660] AC_LANG_INT_SAVE (used by AC_CHECK_SIZEOF) includes stdlib.h without checking whether it actually exists

Paul Eggert <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
Update of sr #110660 (project autoconf):

                Priority:              5 - Normal => 3 - Low                
                Severity:              3 - Normal => 1 - Wish               

    _______________________________________________________

Follow-up Comment #3:

> This fails if stdlib.h doesn't actually exist.
Yes, and that's documented behavior. The Autoconf manual says:

> If your program needs to be portable to a _freestanding_
> environment, such as an embedded OS that doesn't provide all of the
> facilities of the C90 standard library, you may need to test for some of
> the above headers as well.  Note that many Autoconf macros internally
> assume that the complete set of C90 headers are available.
It'd be nice if Autoconf also worked for freestanding programs too. That'd
require a bit of work though. In the meantime I'll mark this as a wishlist
item.


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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.