-
Notifications
You must be signed in to change notification settings - Fork 6
/
configure.ac
2589 lines (2158 loc) · 74.3 KB
/
configure.ac
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
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.60)
AC_INIT(libminigui, 3.2.0)
AC_CONFIG_SRCDIR(src/main/main.c)
dnl Set various version strings - taken gratefully from the SDL sources
#
# Making releases:
# Change the version, then:
# MINIGUI_MICRO_VERSION += 1;
# MINIGUI_INTERFACE_AGE += 1;
# MINIGUI_BINARY_AGE += 1;
# if any functions have been added, set MINIGUI_INTERFACE_AGE to 0.
# if backwards compatibility has been broken,
# set MINIGUI_BINARY_AGE and MINIGUI_INTERFACE_AGE to 0.
#
MINIGUI_MAJOR_VERSION=3
MINIGUI_MINOR_VERSION=2
MINIGUI_MICRO_VERSION=0
MINIGUI_INTERFACE_AGE=0
MINIGUI_BINARY_AGE=0
MINIGUI_VERSION=$MINIGUI_MAJOR_VERSION.$MINIGUI_MINOR_VERSION.$MINIGUI_MICRO_VERSION
AC_SUBST(MINIGUI_MAJOR_VERSION)
AC_SUBST(MINIGUI_MINOR_VERSION)
AC_SUBST(MINIGUI_MICRO_VERSION)
AC_SUBST(MINIGUI_INTERFACE_AGE)
AC_SUBST(MINIGUI_BINARY_AGE)
AC_SUBST(MINIGUI_VERSION)
dnl ========================================================================
dnl libtool versioning
LT_RELEASE=$MINIGUI_MAJOR_VERSION.$MINIGUI_MINOR_VERSION
LT_CURRENT=`expr $MINIGUI_MICRO_VERSION - $MINIGUI_INTERFACE_AGE`
LT_REVISION=$MINIGUI_INTERFACE_AGE
LT_AGE=`expr $MINIGUI_BINARY_AGE - $MINIGUI_INTERFACE_AGE`
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
AC_CANONICAL_SYSTEM
dnl ========================================================================
dnl Init automake
AM_INIT_AUTOMAKE
AC_CONFIG_HEADER(mgconfig.h)
dnl ========================================================================
dnl Check for tools
AC_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_LD
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
dnl ========================================================================
dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_DIRENT
AC_CHECK_HEADERS(sys/types.h sys/time.h termio.h unistd.h math.h locale.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
dnl Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_MEMCMP
AC_FUNC_MMAP
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(time mktime localtime strdup strcasecmp strncasecmp strerror setlocale getpt)
dnl ========================================================================
dnl User selectable options
dnl System wide options
devel_mode="no"
detail_debug="no"
trace_message="no"
message_string="no"
runtime_mode="procs"
stand_alone="no"
incore_res="no"
use_miniguientry="no"
fixed_math="yes"
double_click="yes"
build_cursor_support="yes"
build_clipboard="yes"
use_own_stdio="no"
use_own_malloc="no"
use_own_pthread="no"
build_adv2dapi="yes"
build_minimalgdi="no"
dnl Options for look and feel renderer
with_flat_lf="yes"
with_skin_lf="yes"
dnl IAL engine-specific options
dnl software IAL engines
build_dummy_ial_engine="yes"
build_auto_ial_engine="no"
build_random_ial_engine="no"
build_net_ial_engine="no"
dnl common IAL engines
build_console_ial_engine="yes"
build_console_ps2="yes"
build_console_imps2="yes"
build_console_ms="yes"
build_console_ms3="yes"
build_console_gpm="no"
build_text_mode="yes"
dnl the customized ial engine
build_dlcustom_ial_engine="no"
build_custom_ial_engine="no"
build_comm_ial_engine="no"
dnl ial engines for simulaters
build_qvfb_ial_engine="no"
build_wvfb_ial_engine="no"
build_dfb_ial_engine="no"
build_qemu_ial_engine="no"
dnl ial engines for real hardware
build_cisco_touchpad_ial_engine="no"
build_mstar_ial_engine="no"
build_ipaq_h3600_ial_engine="no"
build_nexus_ial_engine="no"
build_ipaq_h5400_ial_engine="no"
build_tslib_ial_engine="no"
build_jz4740_ial_engine="no"
build_lide_ial_engine="no"
build_2440_ial_engine="no"
build_davinci6446_ial_engine="no"
dnl Font related options
build_rbf_support="yes"
build_incorerbf_vgaoem="yes"
build_incorerbf_terminal="yes"
build_incorerbf_fixedsys="yes"
build_vbf_support="yes"
build_incorefont_sansserif="yes"
build_incorefont_courier="yes"
build_incorefont_system="yes"
build_upf_support="yes"
build_incorefont_times="yes"
build_sef_support="no"
build_qpf_support="no"
use_ttf_lib="ft2"
build_ttfcache_support="yes"
build_bmpf_support="yes"
dnl Charset related options
build_latin2_support="no"
build_latin3_support="no"
build_latin4_support="no"
build_cyrillic_support="no"
build_arabic_support="no"
build_greek_support="no"
build_hebrew_support="no"
build_latin5_support="no"
build_latin6_support="no"
build_thai_support="no"
build_latin7_support="no"
build_latin8_support="no"
build_latin9_support="yes"
build_latin10_support="no"
build_gb_support="yes"
build_gbk_support="yes"
build_gb18030_support="no"
build_big5_support="no"
build_euckr_support="no"
build_eucjp_support="no"
build_shiftjis_support="no"
build_unicode_support="yes"
dnl Keyboard layout specific options
use_kbd_hebrewpc="no"
use_kbd_arabicpc="no"
use_kbd_frpc="no"
use_kbd_fr="no"
use_kbd_de="no"
use_kbd_delatin1="no"
use_kbd_it="no"
use_kbd_es="no"
use_kbd_escp850="no"
dnl Image related options
build_save_bitmap="yes"
build_gif_support="yes"
build_jpg_support="yes"
build_png_support="yes"
build_pcx_support="no"
build_lbm_support="no"
build_tga_support="no"
dnl Menu options
build_menu="yes"
dnl Misc options
build_misc_mousecalibrate="yes"
build_misc_aboutdlg="yes"
build_misc_savescreen="yes"
dnl Control related options
build_ctrl_static="yes"
build_ctrl_button="yes"
build_ctrl_sledit="yes"
build_ctrl_bidisledit="no"
build_ctrl_textedit_new="yes"
build_ctrl_listbox="yes"
build_ctrl_progressbar="yes"
build_ctrl_combobox="yes"
build_ctrl_propsheet="yes"
build_ctrl_trackbar="yes"
build_ctrl_scrollbar="yes"
build_ctrl_newtoolbar="yes"
build_ctrl_menubutton="yes"
build_ctrl_scrollview="yes"
build_ctrl_textedit="no"
build_ctrl_monthcal="no"
build_ctrl_treeview="no"
build_ctrl_treeview_rdr="no"
build_ctrl_spinbox="yes"
build_ctrl_coolbar="no"
build_ctrl_listview="yes"
build_ctrl_iconview="no"
build_ctrl_gridview="no"
build_ctrl_animation="yes"
enable_video_dummy="yes"
enable_video_pc_xvfb="yes"
enable_video_rtos_xvfb="no"
enable_video_qvfb="no"
enable_video_wvfb="no"
enable_video_dfb="no"
enable_video_dfb_st7167="no"
enable_video_stgfb="no"
enable_video_fbcon="yes"
enable_video_commlcd="no"
enable_video_shadow="no"
enable_video_mlshadow="no"
enable_video_em86gfx="no"
enable_video_em85xxyuv="no"
enable_video_em85xxosd="no"
enable_video_svpxxosd="no"
enable_video_bf533="no"
enable_video_mb93493="no"
enable_video_utpmc="no"
enable_video_hi35xx="no"
enable_video_hi3560a="no"
enable_video_nexus="no"
enable_video_s3c6410="no"
enable_video_sigma8654="no"
enable_video_mstar="no"
enable_video_custom="no"
enable_video_drmcon="no"
dnl settings for license management
build_productid="no"
build_splash="yes"
build_screensaver="no"
AC_ARG_ENABLE(develmode,
[ --enable-develmode developer mode <default=no>],
devel_mode=$enableval)
AC_ARG_ENABLE(detaildebug,
[ --enable-detaildebug detailed debug info <default=no>],
detail_debug=$enableval)
AC_ARG_ENABLE(tracemsg,
[ --enable-tracemsg trace messages of MiniGUI <default=no>],
trace_message=$enableval)
AC_ARG_ENABLE(msgstr,
[ --enable-msgstr include symbol name of message <default=no>],
message_string=$enableval)
AC_ARG_WITH(runmode,
[ --with-runmode=procs/ths/sa the MiniGUI runtime mode <default=procs>],
runtime_mode=$withval)
AC_ARG_ENABLE(standalone,
[ --enable-standalone build MiniGUI-Standalone version <default=no>],
stand_alone=$enableval)
AC_ARG_ENABLE(incoreres,
[ --enable-incoreres use incore resource instead file IO to initialize MiniGUI <default=no>],
incore_res=$enableval)
AC_ARG_ENABLE(miniguientry,
[ --enable-miniguientry use minigui_entry function in MiniGUI <default=no>],
use_miniguientry=$enableval)
AC_ARG_ENABLE(fixedmath,
[ --enable-fixedmath include fixed math routines <default=yes>],
fixed_math=$enableval)
AC_ARG_ENABLE(dblclk,
[ --enable-dblclk mouse button can do double click <default=yes>],
double_click=$enableval)
AC_ARG_ENABLE(cursor,
[ --enable-cursor include cursor support <default=yes>],
build_cursor_support=$enableval)
AC_ARG_ENABLE(clipboard,
[ --enable-clipboard include clipboard support <default=yes>],
build_clipboard=$enableval)
AC_ARG_ENABLE(ownstdio,
[ --enable-ownstdio use own implementation of stdio functions <default=no>],
use_own_stdio=$enableval)
AC_ARG_ENABLE(ownmalloc,
[ --enable-ownmalloc use own implementation of malloc functions <default=no>],
use_own_malloc=$enableval)
AC_ARG_ENABLE(ownpthread,
[ --enable-ownpthread use own implementation of pthread functions <default=no>],
use_own_pthread=$enableval)
AC_ARG_ENABLE(adv2dapi,
[ --enable-adv2dapi include advanced 2D graphics APIs <default=yes>],
build_adv2dapi=$enableval)
AC_ARG_ENABLE(minimalgdi,
[ --enable-minimalgdi build a minimal GDI library only <default=no>],
build_minimalgdi=$enableval)
AC_ARG_ENABLE(productid,
[ --enable-productid insert a productid into the library file <default=no>],
build_productid=$enableval)
AC_ARG_ENABLE(splash,
[ --enable-splash enable splash <default=yes>],
build_splash=$enableval)
AC_ARG_ENABLE(screensaver,
[ --enable-screensaver enable screensaver <default=no>],
build_screensaver=$enableval)
AC_ARG_ENABLE(flatlf,
[ --enable-flatlf include flat Look and Feel renderer <default=yes>],
with_flat_lf=$enableval)
AC_ARG_ENABLE(skinlf,
[ --enable-skinlf include skin Look and Feel renderer <default=yes>],
with_skin_lf=$enableval)
AC_ARG_ENABLE(customial,
[ --enable-customial build the customer IAL engine <default=no>],
build_custom_ial_engine=$enableval)
AC_ARG_ENABLE(dlcustomial,
[ --enable-dlcustomial build the dlcustom IAL engine <default=no>],
build_dlcustom_ial_engine=$enableval)
AC_ARG_ENABLE(netial,
[ --enable-netial build the IAL engine for net <default=no>],
build_net_ial_engine=$enableval)
AC_ARG_ENABLE(cisco_touchpad_ial,
[ --enable-cisco_touchpad_ial build the IAL engine for Cisco Touchpad <default=no>],
build_cisco_touchpad_ial_engine=$enableval)
AC_ARG_ENABLE(mstar_ial,
[ --enable-mstar_ial build the IAL engine for MStar <default=no>],
build_mstar_ial_engine=$enableval)
AC_ARG_ENABLE(ipaqh3600ial,
[ --enable-ipaqh3600ial build the IAL engine for iPAQ H3600 <default=no>],
build_ipaq_h3600_ial_engine=$enableval)
AC_ARG_ENABLE(nexusial,
[ --enable-nexusial build the IAL engine for Nexus <default=no>],
build_nexus_ial_engine=$enableval)
AC_ARG_ENABLE(ipaqh5400ial,
[ --enable-ipaqh5400ial build the IAL engine for iPAQ H5400 <default=no>],
build_ipaq_h5400_ial_engine=$enableval)
AC_ARG_ENABLE(tslibial,
[ --enable-tslibial build the IAL engine for TSLIB <default=no>],
build_tslib_ial_engine=$enableval)
AC_ARG_ENABLE(dummyial,
[ --enable-dummyial build the Dummy IAL engine <default=yes>],
build_dummy_ial_engine=$enableval)
AC_ARG_ENABLE(autoial,
[ --enable-autoial build the Automatic IAL engine <default=no>],
build_auto_ial_engine=$enableval)
AC_ARG_ENABLE(randomial,
[ --enable-randomial build the Random IAL engine <default=no>],
build_random_ial_engine=$enableval)
AC_ARG_ENABLE(commial,
[ --enable-commial build the COMM IAL engine <default=no>],
build_comm_ial_engine=$enableval)
AC_ARG_ENABLE(qvfbial,
[ --enable-qvfbial build the QVFB IAL engine <default=no>],
build_qvfb_ial_engine=$enableval)
AC_ARG_ENABLE(qemuial,
[ --enable-qemuial build the QEMU IAL engine <default=no>],
build_qemu_ial_engine=$enableval)
AC_ARG_ENABLE(wvfbial,
[ --enable-wvfbial build the WVFB IAL engine <default=no>],
build_wvfb_ial_engine=$enableval)
AC_ARG_ENABLE(jz4740ial,
[ --enable-jz4740ial build the JZ4740 IAL engine <default=no>],
build_jz4740_ial_engine=$enableval)
AC_ARG_ENABLE(lide,
[ --enable-lide build the lide IAL engine <default=no>],
build_lide_ial_engine=$enableval)
AC_ARG_ENABLE(2440ial,
[ --enable-2440ial build the 2440 IAL engine <default=no>],
build_2440_ial_engine=$enableval)
AC_ARG_ENABLE(davinci6446ial,
[ --enable-davinci6446ial build the DAVINCI6446 IAL engine <default=no>],
build_davinci6446_ial_engine=$enableval)
AC_ARG_ENABLE(dfbial,
[ --enable-dfbial build the DFB IAL engine <default=no>],
build_dfb_ial_engine=$enableval)
AC_ARG_ENABLE(consoleial,
[ --enable-consoleial build the console (Linux console) IAL engine <default=yes>],
build_console_ial_engine=$enableval)
AC_ARG_ENABLE(consoleps2,
[ --enable-consoleps2 build the console engine subdriver for PS2 mouse <default=yes>],
build_console_ps2=$enableval)
AC_ARG_ENABLE(consoleimps2,
[ --enable-consoleimps2 build the console engine subdriver for IntelligentMouse (IMPS/2) mouse <default=yes>],
build_console_imps2=$enableval)
AC_ARG_ENABLE(consolems,
[ --enable-consolems build the console engine subdirver for old MS serial mouse <default=yes>],
build_console_ms=$enableval)
AC_ARG_ENABLE(consolems3,
[ --enable-consolems3 build the console engine subdirver for MS3 mouse <default=yes>],
build_console_ms3=$enableval)
AC_ARG_ENABLE(consolegpm,
[ --enable-consolegpm build the console engine subdirver for GPM daemon <default=no>],
build_console_gpm=$enableval)
AC_ARG_ENABLE(textmode,
[ --enable-textmode Linux system have console (text mode) on FrameBuffer <default=yes>],
build_text_mode=$enableval)
AC_ARG_ENABLE(rbfsupport,
[ --enable-rbfsupport include raw bitmap font support <default=yes>],
build_rbf_support=$enableval)
AC_ARG_ENABLE(rbfvgaoem,
[ --enable-rbfvgaoem include incore RBF font of ISO8859-1 VGAOEM (8x8) font <default=yes>],
build_incorerbf_vgaoem=$enableval)
AC_ARG_ENABLE(rbfterminal,
[ --enable-rbfterminal include incore RBF font of ISO8859-1 Terminal (8x12) font <default=yes>],
build_incorerbf_terminal=$enableval)
AC_ARG_ENABLE(rbffixedsys,
[ --enable-rbffixedsys include incore RBF font of ISO8859-1 FixedSys (8x15) font <default=yes>],
build_incorerbf_fixedsys=$enableval)
AC_ARG_ENABLE(vbfsupport,
[ --enable-vbfsupport include var bitmap font support <default=yes>],
build_vbf_support=$enableval)
AC_ARG_ENABLE(fontsserif,
[ --enable-fontsserif include incore font SansSerif (11x13) <default=yes>],
build_incorefont_sansserif=$enableval)
AC_ARG_ENABLE(fontcourier,
[ --enable-fontcourier include incore font Courier (8x13) <default=yes>],
build_incorefont_courier=$enableval)
AC_ARG_ENABLE(fontsystem,
[ --enable-fontsystem include incore font System (14x16) <default=yes>],
build_incorefont_system=$enableval)
AC_ARG_ENABLE(upfsupport,
[ --enable-upfsupport build support for FMSoft Unicode Prerendered Font (UPF) <default=yes>],
build_upf_support=$enableval)
AC_ARG_ENABLE(fonttimes,
[ --enable-fonttimes include incore Times UPF fonts (12x10 and 17x14) <default=yes>],
build_incorefont_times=$enableval)
AC_ARG_ENABLE(qpfsupport,
[ --enable-qpfsupport build support for Qt Prerendered Font (QPF) <default=no>],
build_qpf_support=$enableval)
AC_ARG_ENABLE(sefsupport,
[ --enable-sefsupport build support for koxomo scripteasy (SEF) <default=no>],
build_sef_support=$enableval)
AC_ARG_WITH(ttfsupport,
[ --with-ttfsupport=ft1/ft2/none How to support TrueType font (FreeType 1/FreeType 2/None) <default=none>],
use_ttf_lib=$withval)
AC_ARG_ENABLE(ttfcache,
[ --enable-ttfcache include ttf cache support <default=no>],
build_ttfcache_support=$enableval)
AC_ARG_ENABLE(bmpfsupport,
[ --enable-bmpfsupport build support for Bitmap Font (bmpf) <default=yes>],
build_bmpf_support=$enableval)
AC_ARG_ENABLE(latin2support,
[ --enable-latin2support include East European (Latin 2, ISO8859-2) charset support <default=no>],
build_latin2_support=$enableval)
AC_ARG_ENABLE(latin3support,
[ --enable-latin3support include South European (Latin 3, ISO8859-3) charset support <default=no>],
build_latin3_support=$enableval)
AC_ARG_ENABLE(latin4support,
[ --enable-latin4support include North European (Latin 4, ISO8859-4) charset support <default=no>],
build_latin4_support=$enableval)
AC_ARG_ENABLE(cyrillicsupport,
[ --enable-cyrillicsupport include Cyrillic (ISO8859-5) charset support <default=no>],
build_cyrillic_support=$enableval)
AC_ARG_ENABLE(arabicsupport,
[ --enable-arabicsupport include Arabic (ISO8859-6) charset support <default=no>],
build_arabic_support=$enableval)
AC_ARG_ENABLE(greeksupport,
[ --enable-greeksupport include Greek (ISO8859-7) charset support <default=no>],
build_greek_support=$enableval)
AC_ARG_ENABLE(hebrewsupport,
[ --enable-hebrewsupport include Hebrew (ISO8859-8) charset support <default=no>],
build_hebrew_support=$enableval)
AC_ARG_ENABLE(latin5support,
[ --enable-latin5support include Turkish (Latin 5, ISO8859-9) charset support <default=no>],
build_latin5_support=$enableval)
AC_ARG_ENABLE(latin6support,
[ --enable-latin6support include Nordic, Latin 6, ISO8859-10) charset support <default=no>],
build_latin6_support=$enableval)
AC_ARG_ENABLE(thaisupport,
[ --enable-thaisupport include Thai (ISO8859-11) charset support <default=yes>],
build_thai_support=$enableval)
AC_ARG_ENABLE(latin7support,
[ --enable-latin7support include Latin 7 (ISO8859-13) charset support <default=no>],
build_latin7_support=$enableval)
AC_ARG_ENABLE(latin8support,
[ --enable-latin8support include Latin 8 (ISO8859-14) charset support <default=no>],
build_latin8_support=$enableval)
AC_ARG_ENABLE(latin9support,
[ --enable-latin9support include Latin 9 (ISO8859-15, West Extended) charset support <default=yes>],
build_latin9_support=$enableval)
AC_ARG_ENABLE(latin10support,
[ --enable-latin10support include Latin 10 (ISO8859-16, Romanian) charset support <default=no>],
build_latin10_support=$enableval)
AC_ARG_ENABLE(gbsupport,
[ --enable-gbsupport include EUC encoding of GB2312 charset support <default=yes>],
build_gb_support=$enableval)
AC_ARG_ENABLE(gbksupport,
[ --enable-gbksupport include GBK charset support <default=yes>],
build_gbk_support=$enableval)
AC_ARG_ENABLE(gb18030support,
[ --enable-gb18030support include GB18030-0 charset support <default=no>],
build_gb18030_support=$enableval)
AC_ARG_ENABLE(big5support,
[ --enable-big5support include BIG5 charset support <default=no>],
build_big5_support=$enableval)
AC_ARG_ENABLE(euckrsupport,
[ --enable-euckrsupport include support for EUC encoding of KSC5636 and KSC5601 charsets <default=no>],
build_euckr_support=$enableval)
AC_ARG_ENABLE(eucjpsupport,
[ --enable-eucjpsupport include support for EUC encoding of JISX0201 and JISX0208 charsets <default=no>],
build_eucjp_support=$enableval)
AC_ARG_ENABLE(shiftjissupport,
[ --enable-shiftjissupport include support for Shift-JIS encoding of JISX0201 and JISX0208 charsets <default=no>],
build_shiftjis_support=$enableval)
AC_ARG_ENABLE(unicodesupport,
[ --enable-unicodesupport include UNICODE (ISO-10646-1 and UTF-8 encoding) support <default=yes>],
build_unicode_support=$enableval)
AC_ARG_ENABLE(kbdhebrewpc,
[ --enable-kbdhebrewpc include keyboard layout for Hebrew PC keyboard <default=no>],
use_kbd_hebrewpc=$enableval)
AC_ARG_ENABLE(kbdarabicpc,
[ --enable-kbdarabicpc include keyboard layout for Arabic PC keyboard <default=no>],
use_kbd_arabicpc=$enableval)
AC_ARG_ENABLE(kbdfrpc,
[ --enable-kbdfrpc include keyboard layout for French PC keyboard (non-US 102 keys) <default=no>],
use_kbd_frpc=$enableval)
AC_ARG_ENABLE(kbdfr,
[ --enable-kbdfr include keyboard layout for French <default=no>],
use_kbd_fr=$enableval)
AC_ARG_ENABLE(kbdde,
[ --enable-kbdde include keyboard layout for German <default=no>],
use_kbd_de=$enableval)
AC_ARG_ENABLE(kbddelatin1,
[ --enable-kbddelatin1 include keyboard layout for German Latin1 <default=no>],
use_kbd_delatin1=$enableval)
AC_ARG_ENABLE(kbdit,
[ --enable-kbdit include keyboard layout for Italian <default=no>],
use_kbd_it=$enableval)
AC_ARG_ENABLE(kbdes,
[ --enable-kbdes include keyboard layout for Spanish <default=no>],
use_kbd_es=$enableval)
AC_ARG_ENABLE(kbdescp850,
[ --enable-kbdescp850 include keyboard layout for Spanish CP850 <default=no>],
use_kbd_escp850=$enableval)
AC_ARG_ENABLE(savebitmap,
[ --enable-savebitmap include SaveBitmap-related functions <default=yes>],
build_save_bitmap=$enableval)
AC_ARG_ENABLE(pcxsupport,
[ --enable-pcxsupport include PCX file support <default=no>],
build_pcx_support=$enableval)
AC_ARG_ENABLE(lbmsupport,
[ --enable-lbmsupport include LBM/PBM file support <default=no>],
build_lbm_support=$enableval)
AC_ARG_ENABLE(tgasupport,
[ --enable-tgasupport include TGA file support <default=no>],
build_tga_support=$enableval)
AC_ARG_ENABLE(gifsupport,
[ --enable-gifsupport include GIF file support <default=yes>],
build_gif_support=$enableval)
AC_ARG_ENABLE(jpgsupport,
[ --enable-jpgsupport include JPG file support <default=yes>],
build_jpg_support=$enableval)
AC_ARG_ENABLE(pngsupport,
[ --enable-pngsupport include PNG file support <default=yes>],
build_png_support=$enableval)
AC_ARG_ENABLE(menu,
[ --enable-menu include menu support <default=yes>],
build_menu=$enableval)
AC_ARG_ENABLE(mousecalibrate,
[ --enable-mousecalibrate include code doing mouse calibration <default=yes>],
build_misc_mousecalibrate=$enableval)
AC_ARG_ENABLE(aboutdlg,
[ --enable-aboutdlg include About Dialog Box <default=yes>],
build_misc_aboutdlg=$enableval)
AC_ARG_ENABLE(savescreen,
[ --enable-savescreen include code for screenshots <default=yes>],
build_misc_savescreen=$enableval)
AC_ARG_ENABLE(ctrlstatic,
[ --enable-ctrlstatic include STATIC control <default=yes>],
build_ctrl_static=$enableval)
AC_ARG_ENABLE(ctrlbutton,
[ --enable-ctrlbutton include BUTTON control <default=yes>],
build_ctrl_button=$enableval)
AC_ARG_ENABLE(ctrlsledit,
[ --enable-ctrlsledit include Single-Line EDIT control <default=yes>],
build_ctrl_sledit=$enableval)
AC_ARG_ENABLE(ctrlbidisledit,
[ --enable-ctrlbidisledit include Single-Line BIDI EDIT control <default=no>],
build_ctrl_bidisledit=$enableval)
dnl enable new textedit
AC_ARG_ENABLE(newtextedit,
[ --enable-ctrlnewtextedit include the new implementation of TEXTEDIT control <default=yes>],
build_ctrl_textedit_new=$enableval)
AC_ARG_ENABLE(ctrllistbox,
[ --enable-ctrllistbox include LISTBOX control <default=yes>],
build_ctrl_listbox=$enableval)
AC_ARG_ENABLE(ctrlpgbar,
[ --enable-ctrlpgbar include PROGRESSBAR control <default=yes>],
build_ctrl_progressbar=$enableval)
AC_ARG_ENABLE(ctrlcombobox,
[ --enable-ctrlcombobox include COMBOBOX control <default=yes>],
build_ctrl_combobox=$enableval)
AC_ARG_ENABLE(ctrlpropsheet,
[ --enable-ctrlpropsheet include PROPSHEET control <default=yes>],
build_ctrl_propsheet=$enableval)
AC_ARG_ENABLE(ctrltrackbar,
[ --enable-ctrltrackbar include TRACKBAR control <default=no>],
build_ctrl_trackbar=$enableval)
AC_ARG_ENABLE(ctrlscrollbar,
[ --enable-ctrlscrollbar include SCROLLBAR control <default=no>],
build_ctrl_scrollbar=$enableval)
AC_ARG_ENABLE(ctrlnewtoolbar,
[ --enable-ctrlnewtoolbar include NEWTOOLBAR control <default=yes>],
build_ctrl_newtoolbar=$enableval)
AC_ARG_ENABLE(ctrlmenubtn,
[ --enable-ctrlmenubtn include MENUBUTTON control <default=yes>],
build_ctrl_menubutton=$enableval)
AC_ARG_ENABLE(ctrlscrollview,
[ --enable-ctrlscrollview include SCROLLVIEW and SCROLLWINDOW controls <default=no>],
build_ctrl_scrollview=$enableval)
AC_ARG_ENABLE(ctrltextedit,
[ --enable-ctrltextedit include old TEXTEDIT control implementation <default=no>],
build_ctrl_textedit=$enableval)
AC_ARG_ENABLE(ctrlmonthcal,
[ --enable-ctrlmonthcal include MONTHCALENDAR control <default=no>],
build_ctrl_monthcal=$enableval)
AC_ARG_ENABLE(ctrltreeview,
[ --enable-ctrltreeview include TREEVIEW control <default=no>],
build_ctrl_treeview=$enableval)
AC_ARG_ENABLE(ctrltreeview-rdr,
[ --enable-ctrltreeview-rdr include TREEVIEWRDR control using LFRDR <default=no>],
build_ctrl_treeview_rdr=$enableval)
AC_ARG_ENABLE(ctrlspinbox,
[ --enable-ctrlspinbox include SPINBOX control <default=yes>],
build_ctrl_spinbox=$enableval)
AC_ARG_ENABLE(ctrlcoolbar,
[ --enable-ctrlcoolbar include COOLBAR control <default=no>],
build_ctrl_coolbar=$enableval)
AC_ARG_ENABLE(ctrllistview,
[ --enable-ctrllistview include LISTVIEW control <default=yes>],
build_ctrl_listview=$enableval)
AC_ARG_ENABLE(ctrliconview,
[ --enable-ctrliconview include ICONVIEW control <default=no>],
build_ctrl_iconview=$enableval)
AC_ARG_ENABLE(ctrlgridview,
[ --enable-ctrlgridview include GRIDVIEW control (test) <default=no>],
build_ctrl_gridview=$enableval)
AC_ARG_ENABLE(ctrlanimation,
[ --enable-ctrlanimation include ANIMATION control and GIF87a/GIF89a support <default=yes>],
build_ctrl_animation=$enableval)
dnl Set up the Null video driver.
CheckDummyVideo()
{
AC_ARG_ENABLE(videodummy,
[ --enable-videodummy include dummy NEWGAL engine <default=yes>],
enable_video_dummy=$enableval)
if test "x$enable_video_dummy" = "xyes"; then
AC_DEFINE(_MGGAL_DUMMY, 1,
[Define if include dummy NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS dummy"
VIDEO_DRIVERS="$VIDEO_DRIVERS dummy/libvideo_null.la"
fi
}
dnl Find the framebuffer console includes
CheckFBCON()
{
AC_ARG_ENABLE(videofbcon,
[ --enable-videofbcon include FrameBuffer console NEWGAL engine <default=yes>],
enable_video_fbcon=$enableval)
if test x$enable_video_fbcon = xyes; then
AC_MSG_CHECKING(for FrameBuffer console support)
video_fbcon=no
AC_TRY_COMPILE([
#include <linux/fb.h>
#include <linux/kd.h>
#include <linux/keyboard.h>
],[
],[
video_fbcon=yes
])
AC_MSG_RESULT($video_fbcon)
if test x$video_fbcon = xyes; then
AC_DEFINE(_MGGAL_FBCON, 1,
[Define if include FrameBuffer console NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS fbcon"
VIDEO_DRIVERS="$VIDEO_DRIVERS fbcon/libvideo_fbcon.la"
have_pciaccess="yes"
AC_CHECK_LIB(pciaccess, pci_system_init,
DEP_LIBS="$DEP_LIBS -lpciaccess", have_pciaccess="no")
if test x$have_pciaccess = xyes; then
AC_DEFINE(_MGHAVE_PCIACCESS, 1,
[Define if PCIAccess lib is available])
LDFLAGS="$LDFLAGS -lpciaccess"
fi
fi
fi
}
dnl Find the drm console includes
CheckDRMCON()
{
AC_ARG_ENABLE(videodrmcon,
[ --enable-videodrmcon include DRM console NEWGAL engine <default=yes>],
enable_video_drmcon=$enableval)
if test x$enable_video_drmcon = xyes; then
AC_MSG_CHECKING(for DRM console support)
video_drmcon=yes
AC_MSG_RESULT($video_drmcon)
if test x$video_drmcon = xyes; then
AC_DEFINE(_MGGAL_DRMCON, 1,
[Define if include DRM console NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS drmcon"
VIDEO_DRIVERS="$VIDEO_DRIVERS drmcon/libvideo_drmcon.la"
have_pciaccess="yes"
AC_CHECK_LIB(pciaccess, pci_system_init,
DEP_LIBS="$DEP_LIBS -lpciaccess", have_pciaccess="no")
if test x$have_pciaccess = xyes; then
AC_DEFINE(_MGHAVE_PCIACCESS, 1,
[Define if PCIAccess lib is available])
LDFLAGS="$LDFLAGS -lpciaccess"
fi
fi
fi
}
dnl Check Qt Virtual FrameBuffer
CheckQVFB()
{
AC_ARG_ENABLE(videoqvfb,
[ --enable-videoqvfb include Qt Virtual FrameBuffer NEWGAL engine <default=yes>],
enable_video_qvfb=$enableval)
if test "x$enable_video_qvfb" = "xyes"; then
AC_DEFINE(_MGGAL_QVFB, 1,
[Define if include Qt Virtual FrameBuffer NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS qvfb"
VIDEO_DRIVERS="$VIDEO_DRIVERS qvfb/libvideo_qvfb.la"
fi
}
dnl Check X Virtual FrameBuffer
CheckXVFB()
{
AC_ARG_ENABLE(videopcxvfb,
[ --enable-videopcxvfb include PC Virtual FrameBuffer NEWGAL engine, such as qvfb, mvfb, gvfb or wvfb <default=yes>],
enable_video_pc_xvfb=$enableval)
AC_ARG_ENABLE(videortosxvfb,
[ --enable-videortosxvfb include RTOS Virtual FrameBuffer NEWGAL engine <default=no>. Please disable pcxvfb to enable rtosxvfb],
enable_video_rtos_xvfb=$enableval)
if test "x$enable_video_pc_xvfb" = "xyes"; then
dnl CheckPCXVFB
AC_DEFINE(_MGGAL_PCXVFB, 1,
[Define if include PC Virtual FrameBuffer NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS pcxvfb"
VIDEO_DRIVERS="$VIDEO_DRIVERS pcxvfb/libvideo_pcxvfb.la"
else
if test "x$enable_video_rtos_xvfb" = "xyes"; then
dnl CheckRTOSXVFB
AC_DEFINE(_MGGAL_RTOSXVFB, 1,
[Define if include RTOS Virtual FrameBuffer NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS rtos_xvfb"
VIDEO_DRIVERS="$VIDEO_DRIVERS rtos_xvfb/libvideo_rtos_xvfb.la"
fi
fi
}
dnl Check Windows Virtual FrameBuffer
CheckWVFB()
{
AC_ARG_ENABLE(videowvfb,
[ --enable-videowvfb include Windows Virtual FrameBuffer NEWGAL engine <default=no>],
enable_video_wvfb=$enableval)
if test "x$enable_video_wvfb" = "xyes"; then
AC_DEFINE(_MGGAL_WVFB, 1,
[Define if include windows Virtual FrameBuffer NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS wvfb"
VIDEO_DRIVERS="$VIDEO_DRIVERS wvfb/libvideo_wvfb.la"
dnl AC_DEFINE(_WVFB_IAL, 1, [Define if include wvfb ial support])
fi
}
dnl Set up the Common LCD video driver.
CheckCOMMLCD()
{
AC_ARG_ENABLE(videocommlcd,
[ --enable-videocommlcd include NEWGAL engine for Common LCD <default=no>],
enable_video_commlcd=$enableval)
if test "x$enable_video_commlcd" = "xyes"; then
AC_DEFINE(_MGGAL_COMMLCD, 1,
[Define if include NEWGAL engine for Common LCD])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS commlcd"
VIDEO_DRIVERS="$VIDEO_DRIVERS commlcd/libvideo_commlcd.la"
fi
}
dnl Set up the MLShadow video driver.
CheckMLShadowVideo()
{
AC_ARG_ENABLE(videomlshadow,
[ --enable-videomlshadow include MLShadow NEWGAL engine <default=no>],
enable_video_mlshadow=$enableval)
if test "x$enable_video_mlshadow" = "xyes"; then
AC_DEFINE(_MGGAL_MLSHADOW, 1,
[Define if include MLShadow NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS mlshadow"
VIDEO_DRIVERS="$VIDEO_DRIVERS mlshadow/libvideo_mlshadow.la"
DEP_LIBS="$DEP_LIBS -lpthread"
fi
}
dnl Set up the Shadow video driver.
CheckShadowVideo()
{
AC_ARG_ENABLE(videoshadow,
[ --enable-videoshadow include Shadow NEWGAL engine <default=no>],
enable_video_shadow=$enableval)
if test "x$enable_video_shadow" = "xyes"; then
AC_DEFINE(_MGGAL_SHADOW, 1,
[Define if include Shadow NEWGAL engine])
VIDEO_SUBDIRS="$VIDEO_SUBDIRS shadow"
VIDEO_DRIVERS="$VIDEO_DRIVERS shadow/libvideo_shadow.la"
DEP_LIBS="$DEP_LIBS -lpthread"
fi
}