bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

autoconf 2.49c AC_C_INLINE mishandles Encore Umax-3.0.9.16b cc


From: Paul Eggert
Subject: autoconf 2.49c AC_C_INLINE mishandles Encore Umax-3.0.9.16b cc
Date: Tue, 13 Feb 2001 18:41:49 -0800 (PST)

A GNU tar 1.13.18 installer on an Encore-91 running Encore's
Umax-3.0.9.16b (now _that_'s a blast from the past!) reports the
following problem:

        "names.c", line 220: Two storage classes specified

Line 220 of names.c looks roughly like this:

        static inline int is_pattern (const char *string) ...

The problem is that this old compiler supports "inline", but not
"static inline".

Here is a proposed patch to autoconf to detect this problem.

2001-02-13  Paul Eggert  <address@hidden>

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

--- aclang.m4   Tue Jan 23 23:50:19 2001
+++ /tmp/aclang.m4      Tue Feb 13 18:35:46 2001
@@ -1494,6 +1494,7 @@
 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
 ])],



reply via email to

[Prev in Thread] Current Thread [Next in Thread]