File: mkc_imp.f_SLIST.mk

package info (click to toggle)
mk-configure 0.37.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 4,112 kB
  • sloc: ansic: 5,441; makefile: 1,412; sh: 1,086; cpp: 200; perl: 101; yacc: 85; lex: 21
file content (38 lines) | stat: -rw-r--r-- 706 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright (c) 2014 by Aleksey Cheusov
#
# See LICENSE file in the distribution.
############################################################
.ifndef _MKC_IMP_F_SYSQUEUE_MK
_MKC_IMP_F_SYSQUEUE_MK := 1

.include <mkc.conf.mk>

_macro = SLIST SIMPLEQ STAILQ LIST TAILQ TAILQ

.for m in ${_macro}
MKC_CHECK_DEFINES +=	${m}_ENTRY:sys/queue.h
_macro.${m}        =	1
.endfor

.include <mkc.conf.mk>

.for f in ${MKC_FEATURES}
.if defined(_macro.${f}) && !${HAVE_DEFINE.${m}_ENTRY.sys/queue.h:U0}
bad=1
.endif
.endfor

.ifndef bad
CFLAGS+=	-DMKC_SYS_QUEUE_IS_FINE=1
.endif

.for m in ${_macro}
.undef _macro.${m}
.endfor

.undef bad
.undef _macro

CPPFLAGS +=	-D_MKC_CHECK_SLIST

.endif # _MKC_IMP_F_SYSQUEUE_MK