Last change
on this file since 4 was 1, checked in by Paul Smedley, 10 years ago |
Initial commit of Heimdal 1.5.3
|
File size:
456 bytes
|
Line | |
---|
1 | dnl
|
---|
2 | dnl $Id$
|
---|
3 | dnl
|
---|
4 | dnl Test for variable size arrays.
|
---|
5 | dnl
|
---|
6 |
|
---|
7 | AC_DEFUN([rk_C_VARARRAY], [
|
---|
8 | AC_CACHE_CHECK([if the compiler supports variable-length arrays],[rk_cv_c_vararray],[
|
---|
9 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[int x = 0; { int y[x]; }]])],
|
---|
10 | [rk_cv_c_vararray=yes],
|
---|
11 | [rk_cv_c_vararray=no])])
|
---|
12 | if test "$rk_cv_c_vararray" = yes; then
|
---|
13 | AC_DEFINE([HAVE_VARIABLE_LENGTH_ARRAY], [1],
|
---|
14 | [Define if your compiler supports variable-length arrays.])
|
---|
15 | fi
|
---|
16 | ])
|
---|
Note:
See
TracBrowser
for help on using the repository browser.