summaryrefslogtreecommitdiff
path: root/lib/m4
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-11-03 11:06:27 +0100
committerSimon Josefsson <simon@josefsson.org>2008-11-03 11:06:27 +0100
commit7738123d510833d4747798a9c9e3662f95126bb5 (patch)
tree440d1417ed4ff5272e498ef664faf86c8af63011 /lib/m4
parent1f0d8eb4a7f52127b94f20692982d13ea3c0559f (diff)
downloadgnutls-7738123d510833d4747798a9c9e3662f95126bb5.tar.gz
Check for C99 macros.
Diffstat (limited to 'lib/m4')
-rw-r--r--lib/m4/hooks.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/m4/hooks.m4 b/lib/m4/hooks.m4
index d02d4181e2..24d5499230 100644
--- a/lib/m4/hooks.m4
+++ b/lib/m4/hooks.m4
@@ -79,6 +79,21 @@ AC_DEFUN([LIBGNUTLS_HOOKS],
AC_MSG_RESULT($included_libtasn1)
AM_CONDITIONAL(ENABLE_MINITASN1, test "$included_libtasn1" = "yes")
+ AC_MSG_CHECKING([whether C99 macros are supported])
+ AC_TRY_COMPILE(,
+ [
+ #define test_mac(...)
+ int z,y,x;
+ test_mac(x,y,z);
+ return 0;
+ ], [
+ AC_DEFINE(C99_MACROS, 1, [C99 macros are supported])
+ AC_MSG_RESULT(yes)
+ ], [
+ AC_MSG_RESULT(no)
+ AC_MSG_WARN([C99 macros not supported. This may affect compiling.])
+ ])
+
AC_MSG_CHECKING([whether to enable Opaque PRF input support])
AC_ARG_ENABLE(opaque-prf-input,
AS_HELP_STRING([--enable-opaque-prf-input=DD],