summaryrefslogtreecommitdiffstats
path: root/third_party/heimdal/cf/check-type-extra.m4
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/heimdal/cf/check-type-extra.m4')
-rw-r--r--third_party/heimdal/cf/check-type-extra.m423
1 files changed, 23 insertions, 0 deletions
diff --git a/third_party/heimdal/cf/check-type-extra.m4 b/third_party/heimdal/cf/check-type-extra.m4
new file mode 100644
index 0000000..f881120
--- /dev/null
+++ b/third_party/heimdal/cf/check-type-extra.m4
@@ -0,0 +1,23 @@
+dnl $Id$
+dnl
+dnl ac_check_type + extra headers
+
+dnl AC_CHECK_TYPE_EXTRA(TYPE, DEFAULT, HEADERS)
+AC_DEFUN([AC_CHECK_TYPE_EXTRA],
+[AC_REQUIRE([AC_HEADER_STDC])dnl
+AC_MSG_CHECKING(for $1)
+AC_CACHE_VAL(ac_cv_type_$1,
+[AC_EGREP_CPP(dnl
+changequote(<<,>>)dnl
+<<$1[^a-zA-Z_0-9]>>dnl
+changequote([,]), [#include <sys/types.h>
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
+$3], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
+AC_MSG_RESULT($ac_cv_type_$1)
+if test $ac_cv_type_$1 = no; then
+ AC_DEFINE($1, $2, [Define this to what the type $1 should be.])
+fi
+])