diff options
Diffstat (limited to 'm4/typeof.m4')
-rw-r--r-- | m4/typeof.m4 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/m4/typeof.m4 b/m4/typeof.m4 new file mode 100644 index 0000000..d9735e1 --- /dev/null +++ b/m4/typeof.m4 @@ -0,0 +1,8 @@ +dnl check typeof() support +AC_DEFUN([CM_TYPEOF],[ +AC_CACHE_CHECK([for typeof], [cm_cv_typeof], + [AC_TRY_COMPILE([int i; typeof(i) j;], [], + [cm_cv_typeof=yes], [cm_cv_typeof=no])]) +AS_IF([test x"$cm_cv_typeof" = xyes], + [AC_DEFINE(HAVE_TYPEOF,1, + [Define to 1 if your compiler supports typeof])])]) |