Lines Matching defs:teaish
16 # private/internal APIs. Those with a prefix of teaish- are
20 # @teaish-check-libz
26 proc teaish-check-libz {} {
27 teaish-check-cached "Checking for libz" {
30 teaish-ldflags-prepend [define LDFLAGS_LIBZ [get-define lib_deflate]]
38 # @teaish-check-librt ?funclist?
41 # so, appends -lrt via [teaish-ldflags-prepend] and returns 1, else
47 proc teaish-check-librt {{funclist {fdatasync nanosleep}}} {
48 teaish-check-cached -nostatus "Checking whether ($funclist) need librt" {
55 teaish-ldflags-prepend -r [define LDFLAGS_LIBRT $ldrt]
69 # @teaish-check-stdint
75 proc teaish-check-stdint {} {
76 teaish-check-cached "Checking for stdint.h" {
83 # @teaish-is-mingw
86 proc teaish-is-mingw {} {
93 # @teaish-check-libdl
98 # teaish-ldflags-prepend. It unconditionally defines HAVE_DLOPEN to 0
100 proc teaish-check-dlopen {} {
101 teaish-check-cached -nostatus "Checking for dlopen()" {
120 teaish-ldflags-prepend [define LDFLAGS_DLOPEN $lfl]
126 # @teaish-check-libmath
130 proc teaish-check-libmath {} {
131 teaish-check-cached "Checking for libc math library" {
138 teaish-ldflags-prepend $lfl
146 # @teaish-import-features ?-flags? feature-names...
150 # use teaish/feature/$name
154 # By default, if a proc named teaish-check-${name}-options is defined
162 # teaish-check-NAME-options,
164 # -run: if the function teaish-check-NAME exists after importing
166 # function from teaish-options. This trumps both -pre and -post.
168 # -pre: if the function teaish-check-NAME exists after importing
169 # then it is passed to [teaish-checks-queue -pre].
171 # -post: works like -pre but instead uses[teaish-checks-queue -post].
172 proc teaish-import-features {args} {
184 # remember whether or not any teaish-check-${arg}* procs have been
193 uplevel "use teaish/feature/$arg"
195 set n "teaish-check-${arg}-options"
203 set n "teaish-check-${arg}"
208 set n "teaish-check-${arg}"
210 teaish-checks-queue {*}$pk $n