diff options
author | Guido van Rossum <guido@python.org> | 1996-08-30 20:58:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-08-30 20:58:11 (GMT) |
commit | 3f13e484842dc662321e67273d0974bf9e0b27bf (patch) | |
tree | 11b762007210b5eb7bfe1e1e4efa3a4f5cea3d02 | |
parent | 6eed906533771c244472485cb5f5bf14dd8784f7 (diff) | |
download | cpython-3f13e484842dc662321e67273d0974bf9e0b27bf.zip cpython-3f13e484842dc662321e67273d0974bf9e0b27bf.tar.gz cpython-3f13e484842dc662321e67273d0974bf9e0b27bf.tar.bz2 |
More thorough test for working <stdarg.h>.
-rw-r--r-- | configure.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.in b/configure.in index bc82b06..2e90bdc 100644 --- a/configure.in +++ b/configure.in @@ -376,8 +376,15 @@ works=no AC_MSG_CHECKING(for variable length prototypes and stdarg.h) AC_TRY_COMPILE([ #include <stdarg.h> -int foo(int x, ...) { return 0; } -], [return foo(10, 11, 12);], +int foo(int x, ...) { + va_list va; + va_start(va, x); + va_arg(va, int); + va_arg(va, char *); + va_arg(va, double); + return 0; +} +], [return foo(10, "", 3.14);], AC_DEFINE(HAVE_STDARG_PROTOTYPES) works=yes) AC_MSG_RESULT($works) |