summaryrefslogtreecommitdiff
path: root/m4/ax_c99_inline.m4
Commit message (Collapse)AuthorAgeFilesLines
* AX_C99_INLINE: fix -Wstrict-prototypesSam James2022-10-301-5/+5
| | | | | | Preparation for Clang 16. Signed-off-by: Sam James <sam@gentoo.org>
* switch gnu.org sites to httpsMike Frysinger2017-02-081-2/+2
|
* ALL: update web site URL to ↵Peter Simons2010-03-011-2/+2
| | | | http://www.gnu.org/software/autoconf-archive/MACRO-NAME.html
* Assigned all macros a unique serial number.Peter Simons2010-01-251-0/+2
| | | | | | | The serial number corresponds to the number of commits that have modified the macro in the Archive's Git repository. Refer to http://www.gnu.org/software/libtool//manual/automake/Serials.html to find out why these numbers are useful.
* Augmented the text of the all-permissive license by an express warranty ↵Peter Simons2010-01-051-1/+2
| | | | | | disclaimer. This has been suggested by the FSF on http://www.gnu.org/prep/maintain/html_node/License-Notices-for-Other-Files.html.
* all: macro home pages now reside on savannah (but old links still work)Peter Simons2009-04-281-1/+1
|
* ALL: consistency edits (see NEWS)Peter Simons2009-04-261-5/+1
| | | | | | | | | | * Consistently refer to this project as Autoconf Archive. * Removed the LAST MODIFICATION section, because that information is redundant in the presence of Git. * COPYLEFT has been renamed to LICENSE: some licenses, like all-permissive, are no copylefts.
* Synchronize last-modified-date with GIT repository.Peter Simons2009-04-201-1/+1
| | | | | | | | The last-modified-date of these macros didn't match their respective last-modified-date in the GIT repository. A version bump remedies this inconsistency. In hindsight, these dates should have bumped when the distribution format changed; all macros had to be touched at this point anyway.
* AX_C99_INLINE: initial versionMichael McMaster2009-04-191-0/+65
The macro determines whether the "inline" keyword of a C99 compiler is standards compliant or not.  I am using this macro support differences between gcc 4.2 (and earlier) and gcc 4.3 (and later) when using the "-std= c99" option.  It may also be useful for other compilers.  (For details of the differences between the compiler versions refer to http:// gcc.gnu.org/gcc-4.3/porting_to.html "Sematic change of extern inline") Example configure.ac: AC_INIT([foo], [0.1]) AM_INIT_AUTOMAKE AC_PROG_CC AC_PROG_CC_C99 if test "$ac_cv_prog_cc_c99" == "no"; then AC_MSG_ERROR([A C99 compiler is required.]) fi AX_C99_INLINE AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT Example source file foo.h: #ifdef HAVE_C99_INLINE inline int myFunction(int a) { return a + 1; } #else static inline int myFunction(int a) { return a + 1; } #endif Example source foo.c: extern inline int myFunction(int a);