From bdfd64b32542446b90c5aa6f18cac7681be6f588 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 19 Feb 2001 15:11:52 +0000 Subject: [PATCH] * aclang.m4 (AC_C_INLINE): Define "inline" to empty if the compiler doesn't support 'static inline'. This is needed for Encore Umax-3.0.9.16b. --- ChangeLog | 6 ++++++ aclang.m4 | 1 + lib/autoconf/c.m4 | 1 + lib/autoconf/fortran.m4 | 1 + lib/autoconf/lang.m4 | 1 + 5 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index f1cdb3b7..acef4e67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-02-19 Paul Eggert + + * aclang.m4 (AC_C_INLINE): Define "inline" to empty if the + compiler doesn't support 'static inline'. This is needed for + Encore Umax-3.0.9.16b. + 2001-02-19 Akim Demaille * aclang.m4 (_AC_LANG_COMPILER_WORKS): Rename as... diff --git a/aclang.m4 b/aclang.m4 index 61e01a9d..dbd7530d 100644 --- a/aclang.m4 +++ b/aclang.m4 @@ -1533,6 +1533,7 @@ AC_CACHE_CHECK([for inline], ac_cv_c_inline, for ac_kw in inline __inline__ __inline; do AC_COMPILE_IFELSE([AC_LANG_SOURCE( [#ifndef __cplusplus +static $ac_kw int static_foo () {return 0; } $ac_kw int foo () {return 0; } #endif ])], diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index 61e01a9d..dbd7530d 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -1533,6 +1533,7 @@ AC_CACHE_CHECK([for inline], ac_cv_c_inline, for ac_kw in inline __inline__ __inline; do AC_COMPILE_IFELSE([AC_LANG_SOURCE( [#ifndef __cplusplus +static $ac_kw int static_foo () {return 0; } $ac_kw int foo () {return 0; } #endif ])], diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index 61e01a9d..dbd7530d 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -1533,6 +1533,7 @@ AC_CACHE_CHECK([for inline], ac_cv_c_inline, for ac_kw in inline __inline__ __inline; do AC_COMPILE_IFELSE([AC_LANG_SOURCE( [#ifndef __cplusplus +static $ac_kw int static_foo () {return 0; } $ac_kw int foo () {return 0; } #endif ])], diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index 61e01a9d..dbd7530d 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.m4 @@ -1533,6 +1533,7 @@ AC_CACHE_CHECK([for inline], ac_cv_c_inline, for ac_kw in inline __inline__ __inline; do AC_COMPILE_IFELSE([AC_LANG_SOURCE( [#ifndef __cplusplus +static $ac_kw int static_foo () {return 0; } $ac_kw int foo () {return 0; } #endif ])],