From: Paul Eggert Date: Tue, 20 Apr 2004 20:14:52 +0000 (+0000) Subject: (C keywords): Don't assume that GCC supports X-Git-Tag: AUTOCONF-2.59c~714 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f94dae24237c3eb2bdb20964ef29bde54aede21;p=thirdparty%2Fautoconf.git (C keywords): Don't assume that GCC supports "restrict" and "inline". --- diff --git a/tests/c.at b/tests/c.at index 8ddc2b413..2ba29f05a 100644 --- a/tests/c.at +++ b/tests/c.at @@ -2,7 +2,7 @@ AT_BANNER([C low level compiling/preprocessing macros.]) -# Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +# Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -74,16 +74,14 @@ AT_CLEANUP ## C keywords. ## ## ------------ ## -# GCC supports `const', `inline', `restrict', and `volatile'. +# GCC supports `const' and `volatile'. AT_CHECK_MACRO([C keywords], [[AC_PROG_CC AC_C_CONST -AC_C_INLINE -AC_C_RESTRICT AC_C_VOLATILE -case $GCC,$ac_cv_c_const,$ac_cv_c_inline,$ac_cv_c_restrict,$ac_cv_c_volatile in +case $GCC,$ac_cv_c_const,$ac_cv_c_volatile in yes,*no*) - AC_MSG_ERROR([failed to detect `const', `inline', `restrict', or `volatile' support]);; + AC_MSG_ERROR([failed to detect `const' or `volatile' support]);; esac ]])