From: Jim Meyering Date: Sat, 12 Apr 2003 20:53:19 +0000 (+0000) Subject: Test AC_C_RESTRICT. X-Git-Tag: AUTOCONF-2.57a~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4dbc616c6db82af02c7f1eb0da708543ad76c4e;p=thirdparty%2Fautoconf.git Test AC_C_RESTRICT. --- diff --git a/tests/c.at b/tests/c.at index a2df6a2c1..8ddc2b413 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 Free Software Foundation, Inc. +# Copyright (C) 2000, 2001, 2002, 2003 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,15 +74,16 @@ AT_CLEANUP ## C keywords. ## ## ------------ ## -# GCC supports `const', `volatile', and `inline'. +# GCC supports `const', `inline', `restrict', 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_volatile in +case $GCC,$ac_cv_c_const,$ac_cv_c_inline,$ac_cv_c_restrict,$ac_cv_c_volatile in yes,*no*) - AC_MSG_ERROR([failed to detect `const', `inline' or `volatile' support]);; + AC_MSG_ERROR([failed to detect `const', `inline', `restrict', or `volatile' support]);; esac ]])