git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Autoconf: Disable inline for compilers that don't support it.

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 14, 2009, 20:46 UTC
Message-ID
<7vy6v7al37.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20090314010421.GA6642@linux.vnet>
Allan Caffee <allan.caffee@gmail.com> writes:
> The Autoconf macro AC_C_INLINE will redefine the inline keyword to whatever the
> current compiler supports (including possibly nothing).
>
> Signed-off-by: Allan Caffee <allan.caffee@gmail.com>

As far as I can tell, this makes scriptlet to set ac_cv_c_inline and then the result is written to confdefs.h:

    case $ac_cv_c_inline in
      inline | yes) ;;
      *)
        case $ac_cv_c_inline in
          no) ac_val=;;
          *) ac_val=$ac_cv_c_inline;;
        esac
        cat >>confdefs.h <<_ACEOF
    #ifndef __cplusplus
    #define inline $ac_val
    #endif
    _ACEOF
        ;;
    esac

which is used only during the ./configure run but not during the actual build.

What am I missing?
Previous: Allan CaffeeNext: Allan Caffee
Message 4 of 7 in “Compiler requirements for git?”
  1. Corey StupJan 14, 2009
  2. Miklos VajnaJan 14, 2009
  3. Autoconf: Disable inline for compilers that don't support it.Allan Caffee, Mar 14, 2009
  4. Junio C HamanoMar 14, 2009
  5. Allan CaffeeMar 15, 2009
  6. Junio C HamanoMar 15, 2009
  7. Allan CaffeeMar 16, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.