2 |
|
|
3 |
AT_BANNER([C low level compiling/preprocessing macros.]) |
AT_BANNER([C low level compiling/preprocessing macros.]) |
4 |
|
|
5 |
# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. |
# Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
6 |
# |
# |
7 |
# This program is free software; you can redistribute it and/or modify |
# This program is free software; you can redistribute it and/or modify |
8 |
# it under the terms of the GNU General Public License as published by |
# it under the terms of the GNU General Public License as published by |
74 |
## C keywords. ## |
## C keywords. ## |
75 |
## ------------ ## |
## ------------ ## |
76 |
|
|
77 |
# GCC supports `const', `volatile', and `inline'. |
# GCC supports `const', `inline', `restrict', and `volatile'. |
78 |
AT_CHECK_MACRO([C keywords], |
AT_CHECK_MACRO([C keywords], |
79 |
[[AC_PROG_CC |
[[AC_PROG_CC |
80 |
AC_C_CONST |
AC_C_CONST |
81 |
AC_C_INLINE |
AC_C_INLINE |
82 |
|
AC_C_RESTRICT |
83 |
AC_C_VOLATILE |
AC_C_VOLATILE |
84 |
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 |
85 |
yes,*no*) |
yes,*no*) |
86 |
AC_MSG_ERROR([failed to detect `const', `inline' or `volatile' support]);; |
AC_MSG_ERROR([failed to detect `const', `inline', `restrict', or `volatile' support]);; |
87 |
esac |
esac |
88 |
]]) |
]]) |
89 |
|
|