-#----------------------------------------
-# Check headers and macros for circle queues
-AS_IF(
- [test "$need_circleq" = "yes" -o "$need_circleq" = "auto"],
- [AC_CHECK_HEADERS(
- [sys/queue.h],
- [AC_MSG_CHECKING([for CIRCLEQ_XXX macros in sys/queue.h])
- AC_PREPROC_IFELSE(
- [AC_LANG_PROGRAM(
- [[#include <sys/queue.h>
- #ifndef CIRCLEQ_HEAD
- #error no
- #endif]]
- [[]])],
- [AC_MSG_RESULT([yes])
- has_circleq=yes],
- [AC_MSG_RESULT([no])
- AS_IF(
- [test "$need_circleq" = "yes"],
- [AC_MSG_ERROR([CIRCLEQ_XXX macros not defined in sys/queue.h (frontend: mconf)])],
- [has_circleq=no])])],
- [AS_IF(
- [test "$need_circleq" = "yes"],
- [AC_MSG_ERROR([could not find sys/queue.h header (frontend: mconf)])],
- [has_circleq=no])])])
-
-AS_IF(
- [test "$has_circleq" = "no"],
- [enable_mconf=no])
-