#54 improve handling of configure results regarding alloca

closed-fixed
nobody
None
5
2009-07-02
2009-05-28
No

There are unix systems (like FreeBSD) that provide an alloca function
in their libc but don't have a header file alloca.h . alloca is
declared in some other header file (stdlib.h, for example). The
autoconf macro AC_FUNC_ALLOCA handles this situation by defining
HAVE_ALLOCA but not HAVE_ALLOCA_H.

On these systems, alloca is currently redefined in src/nconfig.h
because HAVE_ALLOCA is not checked there.

The attached patch modifies src/nconfig.h so that alloca is only
defined there if alloca.h is absent and alloca is not found by the
configure script.

Discussion

  • David Gay

    David Gay - 2009-07-02

    Patch incorporated in 1.3.1. Thanks!

     
  • David Gay

    David Gay - 2009-07-02
    • status: open --> closed-fixed