-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.sh
executable file
·399 lines (362 loc) · 16.6 KB
/
configure.sh
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
#!/bin/sh
HAVE_SDL=0
HAVE_BABL=0
HAVE_HARFBUZZ=0
HAVE_LIBCURL=0
HAVE_ALSA=0
HAVE_KMS=0
HAVE_PL_MPEG=1
HAVE_STB_TT=0 # deprecated in favor of harfbuzz for font building
HAVE_STB_IMAGE=1
ENABLE_IMAGE_WRITE=1
ENABLE_FB=1
ENABLE_VT=1
ENABLE_SCREENSHOT=1
ENABLE_BRAILLE_TEXT=1
ENABLE_PDF=1
ENABLE_INLINED_NORMAL=1
ENABLE_STATIC_FONTS=1
ENABLE_FONTS_FROM_FILE=1
ENABLE_FONT_CTX_FS=0
ENABLE_TINYVG=1
ENABLE_TERM=1
ENABLE_TERMIMG=1
ENABLE_AUDIO=1
ENABLE_RASTERIZER=1
ENABLE_PARSER=1
ENABLE_FORMATTER=1
ENABLE_CMYK=1
ENABLE_ONLY_RGBA8=0
ENABLE_DITHER=0
ENABLE_CSS=1
ENABLE_EVENTS=1
ENABLE_FRAGMENT_SPECIALIZE=1
ENABLE_FAST_FILL_RECT=1
ENABLE_SWITCH_DISPATCH=1
pkg-config sdl2 && HAVE_SDL=1
pkg-config babl && HAVE_BABL=1
pkg-config libcurl && HAVE_LIBCURL=1
pkg-config alsa && HAVE_ALSA=1
pkg-config libdrm && HAVE_KMS=1
pkg-config harfbuzz && HAVE_HARFBUZZ=1
ARCH=`uname -m`
case "$ARCH" in
"x86_64") HAVE_SIMD=1 ;;
"armv7l") HAVE_SIMD=1 ;;
"aarch64") HAVE_SIMD=0; ;;
*) HAVE_SIMD=0 ;;
esac
HAVE_STATIC=0
CFLAGS_BACKEND=''
if [ x"$CFLAGS" = x"" ];then
CFLAGS='-O2 -g'
case "$ARCH" in
"aarch64") CFLAGS="$CFLAGS -ftree-vectorize" ;;
*)
esac
fi
while test $# -gt 0
do
case "$1" in
"--debug") CFLAGS=' -g ' ; HAVE_SIMD=0 ;;
"--static") HAVE_STB_TT=0 HAVE_PL_MPEG=0 HAVE_SIMD=0 HAVE_SDL=0 HAVE_BABL=0 HAVE_LIBCURL=0 HAVE_ALSA=0 HAVE_HARFBUZZ=0 HAVE_STATIC=1;;
"--asan") CFLAGS=" -fsanitize=address -g";LIBS=' -lasan -g ' ;;
"--ubsan") CFLAGS=" -fsanitize=undefined -g";LIBS=' -lasan -g ' ;;
"--enable-kms") HAVE_KMS=1 ;;
"--disable-sdl") HAVE_SDL=0 ;;
"--enable-SDL2") HAVE_SDL=1 ;;
"--disable-SDL2") HAVE_SDL=0 ;;
"--enable-sdl") HAVE_SDL=1 ;;
"--enable-babl") HAVE_BABL=1 ;;
"--enable-alsa") HAVE_ALSA=1 ;;
"--enable-libcurl") HAVE_LIBCURL=1 ;;
"--enable-harfbuzz") HAVE_HARFBUZZ=1 ;;
"--enable-fb") ENABLE_FB=1 ;;
"--enable-vt") ENABLE_VT=1 ;;
"--enable-screenshot") ENABLE_SCREENSHOT=1 ;;
"--enable-braille_text") ENABLE_BRAILLE_TEXT=1 ;;
"--enable-audio") ENABLE_AUDIO=1 ;;
"--enable-cmyk") ENABLE_CMYK=1 ;;
"--enable-CMYK") ENABLE_CMYK=1 ;;
"--enable-tinyvg") ENABLE_TINYVG=1 ;;
"--enable-pdf") ENABLE_PDF=1 ;;
"--enable-inlined_normal") ENABLE_INLINED_NORMAL=1 ;;
"--enable-static_fonts") ENABLE_STATIC_FONTS=1 ;;
"--enable-fragment_specialize") ENABLE_FRAGMENT_SPECIALIZE=1 ;;
"--enable-fast_fill_rect") ENABLE_FAST_FILL_RECT=1 ;;
"--enable-switch_dispatch") ENABLE_SWITCH_DISPATCH=1 ;;
"--enable-only_rgba8") ENABLE_ONLY_RGBA8=1 ;;
"--enable-rasterizer") ENABLE_RASTERIZER=1 ;;
"--enable-parser") ENABLE_PARSER=1 ;;
"--enable-formatter") ENABLE_FORMATTER=1 ;;
"--enable-fonts_from_file") ENABLE_FONTS_FROM_FILE=1 ;;
"--enable-font_ctx_fs") ENABLE_FONT_CTX_FS=1 ;;
"--enable-dither") ENABLE_DITHER=1 ;;
"--enable-css") ENABLE_CSS=1 ;;
"--enable-events") ENABLE_EVENTS=1 ;;
"--enable-term") ENABLE_TERM=1 ;;
"--enable-termimg") ENABLE_TERMIMG=1 ;;
"--enable-stb_image") HAVE_STB_IMAGE=1 ;;
"--enable-stb_tt") HAVE_STB_TT=1 ;;
"--enable-image_write") ENABLE_IMAGE_WRITE=1 ;;
"--enable-simd") HAVE_SIMD=1 ;;
"--disable-term") ENABLE_TERM=0 ;;
"--disable-termimg") ENABLE_TERMIMG=0 ;;
"--disable-pl-mpeg") HAVE_PL_MPEG=0 ;;
"--disable-stb_tt") HAVE_STB_TT=0 ;;
"--disable-stb_image") HAVE_STB_IMAGE=0 ;;
"--disable-image_write") ENABLE_IMAGE_WRITE=0 ;;
"--disable-pdf") ENABLE_PDF=0 ;;
"--disable-inlined_normal") ENABLE_INLINED_NORMAL=0 ;;
"--disable-static_fonts") ENABLE_STATIC_FONTS=0 ;;
"--disable-fragment_specialize") ENABLE_FRAGMENT_SPECIALIZE=0 ;;
"--disable-fast_fill_rect") ENABLE_FAST_FILL_RECT=0 ;;
"--disable-switch_dispatch") ENABLE_SWITCH_DISPATCH=0 ;;
"--disable-only_rgba8") ENABLE_ONLY_RGBA8=0 ;;
"--disable-rasterizer") ENABLE_RASTERIZER=0 ;;
"--disable-parser") ENABLE_PARSER=0 ;;
"--disable-formatter") ENABLE_FORMATTER=0 ;;
"--disable-fonts_from_file") ENABLE_FONTS_FROM_FILE=0 ;;
"--disable-font-ctx-fs") ENABLE_FONT_CTX_FS=0 ;;
"--disable-dither") ENABLE_DITHER=0 ;;
"--disable-css") ENABLE_CSS=0 ;;
"--disable-events") ENABLE_EVENTS=0 ;;
"--disable-kms") HAVE_KMS=0 ;;
"--disable-vt") ENABLE_VT=0 ;;
"--disable-screenshot") ENABLE_SCREENSHOT=0 ;;
"--disable-braille_text") ENABLE_BRAILLE_TEXT=0 ;;
"--disable-audio") ENABLE_AUDIO=0 ;;
"--disable-cmyk") ENABLE_CMYK=0 ;;
"--disable-CMYK") ENABLE_CMYK=0 ;;
"--disable-tinyvg") ENABLE_TINYVG=0 ;;
"--disable-simd") HAVE_SIMD=0 ;;
"--disable-fb") ENABLE_FB=0 ;;
"--disable-babl") HAVE_BABL=0 ;;
"--disable-harfbuzz") HAVE_HARFBUZZ=0 ;;
"--disable-alsa") HAVE_ALSA=0 ;;
"--disable-libcurl") HAVE_LIBCURL=0 ;;
"--disable-all")
HAVE_LIBCURL=0
HAVE_KMS=0
HAVE_SIMD=0
ENABLE_FB=0
ENABLE_VT=0
ENABLE_SCREENSHOT=0
ENABLE_BRAILLE_TEXT=0
ENABLE_AUDIO=0
ENABLE_CMYK=0
ENABLE_TINYVG=0
ENABLE_PDF=0
ENABLE_INLINED_NORMAL=0
ENABLE_STATIC_FONTS=0
ENABLE_FRAGMENT_SPECIALIZE=0
ENABLE_FAST_FILL_RECT=0
ENABLE_SWITCH_DISPATCH=0
ENABLE_ONLY_RGBA8=0
ENABLE_FORMATTER=0
ENABLE_PARSER=1
#ENABLE_RASTERIZER=0
#ENABLE_FONTS_FROM_FILE=0
ENABLE_FONT_CTX_FS=0
ENABLE_DITHER=0
ENABLE_CSS=0
ENABLE_TERM=0
ENABLE_TERMIMG=0
HAVE_BABL=0
HAVE_SDL=0
HAVE_HARFBUZZ=0
HAVE_ALSA=0
HAVE_LIBCURL=0
HAVE_LIBCURL=0
HAVE_PL_MPEG=0
HAVE_STB_TT=0
HAVE_STB_IMAGE=0
ENABLE_IMAGE_WRITE=0
;;
*|"--help")
if [ "x$1" != "x--help" ]; then echo unrecognized option $1 ; fi
echo "usage: ./configure [options]"
echo "Where recognized options are: "
echo " --enable-FEATURE where FEATURE is one of the feature names listed in the output summary"
echo " --disable-FEATURE "
echo ""
echo " --disable-all disable all features, to be used before enabling"
echo " features individually"
echo " --static configure for a static build (makes the binaries built statically linked)"
echo " --asan do an asan build"
echo " --ubsan do an ubsan build"
echo " --debug do a debug build (faster)"
exit 0
;;
esac
shift
done
echo > build.conf
echo "#ifndef CTX_LOCAL_CONF" > local.conf
echo "#define CTX_LOCAL_CONF" >> local.conf
if [ $HAVE_SDL = 1 ];then
echo "#define CTX_SDL 1 " >> local.conf
echo "CTX_CFLAGS+= `pkg-config sdl2 --cflags` " >> build.conf
echo "CTX_LIBS+= `pkg-config sdl2 --libs`" >> build.conf
else
echo "#define CTX_SDL 0 " >> local.conf
fi
echo >> build.conf
if [ $HAVE_BABL = 1 ];then
echo "#define CTX_BABL 1 " >> local.conf
echo "#define CTX_ENABLE_CM 1 " >> local.conf
echo "CTX_CFLAGS+= `pkg-config babl --cflags`" >> build.conf
echo "CTX_LIBS+= `pkg-config babl --libs` " >> build.conf
else
echo "#define CTX_BABL 0 " >> local.conf
echo "#define CTX_ENABLE_CM 0 " >> local.conf
fi
echo -n "#define CTX_AUDIO " >> local.conf; if [ $ENABLE_AUDIO = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_VT " >> local.conf; if [ $ENABLE_VT = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_SCREENSHOT " >> local.conf; if [ $ENABLE_SCREENSHOT = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_BRAILLE_TEXT " >> local.conf; if [ $ENABLE_BRAILLE_TEXT = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_ENABLE_CMYK " >> local.conf; if [ $ENABLE_CMYK = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_TINYVG " >> local.conf; if [ $ENABLE_TINYVG = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_PDF " >> local.conf; if [ $ENABLE_PDF = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_INLINED_NORMAL " >> local.conf; if [ $ENABLE_INLINED_NORMAL = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_STATIC_FONTS " >> local.conf; if [ $ENABLE_STATIC_FONTS = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_FRAGMENT_SPECIALIZE " >> local.conf; if [ $ENABLE_FRAGMENT_SPECIALIZE = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_FAST_FILL_RECT " >> local.conf; if [ $ENABLE_FAST_FILL_RECT = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_RASTERIZER_SWITCH_DISPATCH " >> local.conf; if [ $ENABLE_SWITCH_DISPATCH = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_FONTS_FROM_FILE " >> local.conf; if [ $ENABLE_FONTS_FROM_FILE = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_FONT_ENGINE_CTX_FS " >> local.conf; if [ $ENABLE_FONT_CTX_FS = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_TERM " >> local.conf; if [ $ENABLE_TERM = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_TERMIMG " >> local.conf; if [ $ENABLE_TERMIMG = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_DITHER " >> local.conf; if [ $ENABLE_DITHER = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_CSS " >> local.conf; if [ $ENABLE_CSS = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_EVENTS " >> local.conf; if [ $ENABLE_EVENTS = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_RASTERIZER " >> local.conf; if [ $ENABLE_RASTERIZER = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_PARSER " >> local.conf; if [ $ENABLE_PARSER = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "#define CTX_FORMATTER " >> local.conf; if [ $ENABLE_FORMATTER = 1 ];then echo "1" >> local.conf; else echo "0" >> local.conf; fi
echo -n "CTX_CFLAGS+= -DCTX_PL_MPEG=" >> build.conf; if [ $HAVE_PL_MPEG = 1 ];then echo "1" >> build.conf; else echo "0" >> build.conf; fi
echo -n "CTX_CFLAGS+= -DCTX_STB_TT=" >> build.conf; if [ $HAVE_STB_TT = 1 ];then echo "1" >> build.conf; else echo "0" >> build.conf; fi
echo -n "CTX_CFLAGS+= -DCTX_STB_IMAGE=" >> build.conf; if [ $HAVE_STB_IMAGE = 1 ];then echo "1" >> build.conf; else echo "0" >> build.conf; fi
echo -n "CTX_CFLAGS+= -DCTX_IMAGE_WRITE=" >> build.conf; if [ $ENABLE_IMAGE_WRITE = 1 ];then echo "1" >> build.conf; else echo "0" >> build.conf; fi
if [ $ENABLE_ONLY_RGBA8 = 1 ];then
echo "#define CTX_LIMIT_FORMATS 1 " >> local.conf
echo "#define CTX_ENABLE_RGBA8 1 " >> local.conf
echo "#define CTX_NATIVE_GRAYA8 0 " >> local.conf
echo "#define CTX_U8_TO_FLOAT_LUT 0 " >> local.conf
fi
if [ $HAVE_HARFBUZZ = 1 ];then
echo "#define CTX_HARFBUZZ 1 " >> local.conf
echo "CTX_CFLAGS+= `pkg-config harfbuzz --cflags`" >> build.conf
echo "CTX_CFLAGS+= -DCTX_HARFBUZZ=1 " >> build.conf
echo "CTX_LIBS+= `pkg-config harfbuzz --libs` " >> build.conf
else
echo "#define CTX_HARFBUZZ 0 " >> local.conf
fi
if [ $HAVE_LIBCURL = 1 ];then
echo "#define CTX_CURL 1 " >> local.conf
echo "CTX_CFLAGS+= `pkg-config libcurl --cflags`" >> build.conf
echo "CTX_LIBS+= `pkg-config libcurl --libs` " >> build.conf
else
echo "#define CTX_CURL 0 " >> local.conf
fi
if [ $HAVE_ALSA = 1 ];then
echo "#define CTX_ALSA 1 " >> local.conf
echo "CTX_CFLAGS+= `pkg-config alsa --cflags`" >> build.conf
echo "CTX_LIBS+= `pkg-config alsa --libs` " >> build.conf
else
echo "#define CTX_ALSA 0 " >> local.conf
fi
if [ $HAVE_KMS = 1 ];then
echo "#define CTX_KMS 1 " >> local.conf
echo "CTX_CFLAGS+= `pkg-config libdrm --cflags`" >> build.conf
else
echo "#define CTX_KMS 0 " >> local.conf
fi
if [ $ENABLE_FB = 1 ];then
echo "#define CTX_FB 1 " >> local.conf
else
echo "#define CTX_FB 0 " >> local.conf
fi
case "$ARCH" in
"x86_64")
echo "CTX_CFLAGS+= -DCTX_X86_64 " >> build.conf
;;
"armv7l")
echo "CTX_CFLAGS+= -DCTX_ARMV7L -march=armv7" >> build.conf
;;
*) ;;
esac
if [ $HAVE_SIMD = 1 ];then
echo "CTX_CFLAGS+= -DCTX_SIMD=1 " >> build.conf
echo "CTX_SIMD=1" >> build.conf
else
echo "CTX_CFLAGS+= -DCTX_SIMD=0 " >> build.conf
echo "CTX_SIMD=0" >> build.conf
fi
echo "CTX_ARCH=$ARCH" >> build.conf
echo "CFLAGS=$CFLAGS" >> build.conf
echo "LIBS=$LIBS" >> build.conf
#echo CCACHE=`command -v ccache` >> build.conf
#rm -f build.deps
#echo "Generating build.deps"
#make build.deps 2>/dev/null
if [ $HAVE_STATIC = 1 ]; then
echo "CTX_EXTRA_STATIC = -static" >> build.conf
fi
echo "#endif" >> local.conf
echo -n "configuration summary, architecture $(arch)"
[ $HAVE_SIMD = 1 ] && echo " SIMD multi-pass"
echo ""
echo "Backends:"
echo -n " kms "; [ $HAVE_KMS = 1 ] && echo "yes" || echo "no (libdrm-dev)"
echo -n " fb "; [ $ENABLE_FB = 1 ] && echo "yes" || echo "no"
echo -n " SDL2 "; [ $HAVE_SDL = 1 ] && echo "yes" || echo "no (libsdl2-dev)"
echo -n " pdf "; [ $ENABLE_PDF = 1 ] && echo "yes" || echo "no"
echo -n " term "; [ $ENABLE_TERM = 1 ] && echo "yes" || echo "no"
echo -n " termimg "; [ $ENABLE_TERMIMG = 1 ] && echo "yes" || echo "no"
echo ""
echo "External libraries:"
echo -n " babl "; [ $HAVE_BABL = 1 ] && echo "yes" || echo "no (libbabl-dev)"
echo -n " harfbuzz "; [ $HAVE_HARFBUZZ = 1 ] && echo "yes" || echo "no (libharfbuzz-dev) - we need a recent harfbuzz to be able to convert fonts"
echo -n " alsa "; [ $HAVE_ALSA = 1 ] && echo "yes" || echo "no (libasound-dev)"
echo -n " libcurl "; [ $HAVE_LIBCURL = 1 ] && echo "yes" || echo "no (libcurl-4-openssl-dev)"
echo ""
echo "Built-in/vendored libraries"
echo -n " pl_mpeg "; [ $HAVE_PL_MPEG = 1 ] && echo -n "yes" || echo -n "no"
echo " mpeg1 video player, works well as top-level but not as client due to lack of SHM"
echo -n " stb_tt "; [ $HAVE_STB_TT = 1 ] && echo -n "yes" || echo -n "no"
echo " optional support for using TTF/OTF fonts"
echo -n " stb_image "; [ $HAVE_STB_IMAGE = 1 ] && echo -n "yes" || echo -n "no"
echo " support for loading jpg,png,gif"
echo ""
echo "Features"
echo -n " image_write "; [ $ENABLE_IMAGE_WRITE = 1 ] && echo -n "yes" || echo -n "no"
echo " support for writing PNG files/screenshots/thumbnails, using miniz - and lots of heap"
echo -n " vt "; [ $ENABLE_VT = 1 ] && echo -n "yes" || echo -n "no" ;
echo " DEC+ctx terminal engine"
echo -n " braille_text "; [ $ENABLE_BRAILLE_TEXT = 1 ] && echo -n "yes" || echo -n "no" ;
echo " use of text overrides in unicode graphics backend"
echo -n " audio "; [ $ENABLE_AUDIO = 1 ] && echo -n "yes" || echo -n "no" ;
echo " audio handling (both alsa and ctx backend)"
echo -n " screenshot "; [ $ENABLE_SCREENSHOT = 1 ] && echo -n "yes" || echo -n "no" ;
echo " code for saving PNG"
echo -n " tinyvg "; [ $ENABLE_TINYVG = 1 ] && echo -n "yes" || echo -n "no"
echo " tinyvg viewer"
echo -n " CMYK "; [ $ENABLE_CMYK = 1 ] && echo -n "yes" || echo -n "no" ;
echo " extra code for handling CMYK color space"
echo -n " dither "; [ $ENABLE_DITHER = 1 ] && echo "yes" || echo "no"
echo -n " css "; [ $ENABLE_CSS = 1 ] && echo -n "yes" || echo -n "no" ; echo " SVG/epub parsing"
echo -n " events "; [ $ENABLE_EVENTS = 1 ] && echo -n "yes" || echo -n "no" ; echo " build (lib) without event handling"
echo -n " font_ctx_fs "; [ $ENABLE_FONT_CTX_FS = 1 ] && echo "yes" || echo "no"
echo -n " fonts_from_file "; [ $ENABLE_FONTS_FROM_FILE = 1 ] && echo "yes" || echo "no"
echo -n " rasterizer "; [ $ENABLE_RASTERIZER = 1 ] && echo "yes" || echo "no"
echo -n " parser "; [ $ENABLE_PARSER = 1 ] && echo "yes" || echo "no"
echo -n " formatter "; [ $ENABLE_FORMATTER = 1 ] && echo "yes" || echo "no"
echo -n " only_rgba8 "; [ $ENABLE_ONLY_RGBA8 = 1 ] && echo "yes" || echo "no"
echo -n " fragment_specialize "; [ $ENABLE_FRAGMENT_SPECIALIZE = 1 ] && echo "yes" || echo "no"
echo -n " fast_fill_rect "; [ $ENABLE_FAST_FILL_RECT = 1 ] && echo "yes" || echo "no"
echo -n " switch_dispatch "; [ $ENABLE_SWITCH_DISPATCH = 1 ] && echo "yes" || echo "no"
echo -n " static_fonts "; [ $ENABLE_STATIC_FONTS = 1 ] && echo "yes" || echo "no"
echo -n " inlined_normal "; [ $ENABLE_INLINED_NORMAL = 1 ] && echo "yes" || echo "no"
echo
echo CFLAGS=$CFLAGS
echo