-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathconfigure.ac
1020 lines (866 loc) · 27.4 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
AC_INIT(include/h323.h)
AC_PROG_CXX
AC_HEADER_STDC
dnl this must be updated for every minor revision, and for
dnl builds when and as necessary
REQUIRED_PTLIB_MAJOR=2
REQUIRED_PTLIB_MINOR=6
REQUIRED_PTLIB_BUILD=4
dnl ########################################################################
dnl set the OpenH323 directory to the current directory
OPENH323DIR=`pwd`
AC_SUBST(OPENH323DIR)
dnl ########################################################################
dnl set the PREFIX accordingly
if test "x$prefix" = "xNONE"; then
INSTALLPREFIX="/usr/local"
else
INSTALLPREFIX="${prefix}"
fi
AC_SUBST(INSTALLPREFIX)
dnl ########################################################################
dnl set LIBDIR accordingly
LIBDIR="${libdir}"
AC_SUBST(LIBDIR)
dnl ########################################################################
dnl extract the OpenH323 version
dnl MSWIN_DISPLAY version,Version
dnl MSWIN_VERSION version,OPENH323_MAJOR=MAJOR_VERSION
dnl MSWIN_VERSION version,OPENH323_MINOR=MINOR_VERSION
dnl MSWIN_VERSION version,OPENH323_BUILD=BUILD_NUMBER
dnl MSWIN_VERSION version,OPENH323_VERSION=VERSION
MAJOR_VERSION=`cat ${OPENH323DIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
MINOR_VERSION=`cat ${OPENH323DIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
BUILD_NUMBER=`cat ${OPENH323DIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
OPENH323_VERSION="${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER}"
AC_SUBST(MAJOR_VERSION)
AC_SUBST(MINOR_VERSION)
AC_SUBST(BUILD_NUMBER)
AC_SUBST(OPENH323_VERSION)
AC_SUBST(MAJOR_VERSION, $MAJOR_VERSION)
AC_SUBST(MINOR_VERSION, $MINOR_VERSION)
AC_SUBST(BUILD_NUMBER, $BUILD_NUMBER)
echo "OpenH323 version is ${OPENH323_VERSION}"
AC_DEFINE_UNQUOTED(OPENH323_MAJOR, ${MAJOR_VERSION}, [Major version])
AC_DEFINE_UNQUOTED(OPENH323_MINOR, ${MINOR_VERSION}, [Minor version])
AC_DEFINE_UNQUOTED(OPENH323_BUILD, ${BUILD_NUMBER}, [Build number])
AC_DEFINE_UNQUOTED(OPENH323_VERSION, "$OPENH323_VERSION", [Full version number])
dnl ########################################################################
dnl look for ptlib, use a preference order of explicit PTLIBDIR, directory
dnl at same level, home directory, /usr/local or /usr, pkgconfig.
if test "${PTLIBDIR:-unset}" != "unset" ; then
AC_CHECK_HEADER(${PTLIBDIR}/version.h, HAS_PTLIB=1)
fi
if test "${HAS_PTLIB:-unset}" = "unset" ; then
AC_CHECK_HEADER(${OPENH323DIR}/../ptlib/version.h, HAS_PTLIB=1)
if test "${HAS_PTLIB:-unset}" != "unset" ; then
PTLIBDIR="${OPENH323DIR}/../ptlib"
else
AC_CHECK_HEADER(${HOME}/ptlib/version.h, HAS_PTLIB=1)
if test "${HAS_PTLIB:-unset}" != "unset" ; then
PTLIBDIR="${HOME}/ptlib"
else
if test "${HAS_PTLIB:-unset}" = "unset" ; then
AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , /usr/local/bin:/usr/bin:/opt/local/bin)
else
if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , /usr/share/ptlib/make/)
else
if test "${PTLIB_CONFIG:-unset}" = "unset" ; then
AC_PATH_PROG(PTLIB_CONFIG, ptlib-config, , /usr/share/ptlib/make/)
fi
fi
fi
fi
fi
fi
if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
PTLIBDIR=`$PTLIB_CONFIG --prefix`
HAS_PTLIB=1
fi
if test "${HAS_PTLIB:-unset}" = "unset" ; then
echo "Cannot find ptlib - please install or set PTLIBDIR and try again"
exit
fi
if test "x$PTLIBDIR" = "x/usr" -o "x$PTLIBDIR" = "x/usr/"; then
PTLIBDIR="/usr/share/ptlib/"
fi
if test "x$PTLIBDIR" = "x/usr/local" -o "x$PTLIBDIR" = "x/usr/local/"; then
PTLIBDIR="/usr/local/share/ptlib/"
fi
dnl disable check for now, as it breaks cross-compilation with autoconf 2.69
dnl AC_CHECK_FILE(${PTLIBDIR}/make/lib.mak, HAS_PTLIB_LIB_MAK=1)
HAS_PTLIB_LIB_MAK=1
if test "${HAS_PTLIB_LIB_MAK:-unset}" = "unset" ; then
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES([PTLIB], [ptlib], HAS_PTLIB=1)
if test ${HAS_PTLIB}x = 1x; then
PTLIBDIR=`${PKG_CONFIG} --variable=prefix ptlib`
PTVERSION=`${PKG_CONFIG} --modversion ptlib`
target_os=`${PKG_CONFIG} --variable=target_os ptlib`
target_cpu=`${PKG_CONFIG} --variable=target_cpu ptlib`
PTLIB_CXXFLAGS=`${PKG_CONFIG} --cflags ptlib`
PT_LIBDIR=`${PKG_CONFIG} --variable=libdir ptlib`
PT_LIBDIR=${PTLIBDIR}
PT_MAJOR_VERSION=`echo $PTVERSION | cut -d'.' -f1`
PT_MINOR_VERSION=`echo $PTVERSION | cut -d'.' -f2`
PT_BUILD_NUMBER=`echo $PTVERSION | cut -d'.' -f3`
AC_SUBST(PT_LIBDIR)
AC_SUBST(target_os)
AC_SUBST(target_cpu)
AC_SUBST(PTLIB_CXXFLAGS)
AC_SUBST(PT_LIBDIR)
fi
fi
echo "PTLib prefix set to.... $PTLIBDIR"
if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
PTVERSION=`$PTLIB_CONFIG --version`
PT_MAJOR_VERSION=`echo $PTVERSION | cut -d'.' -f1`
PT_MINOR_VERSION=`echo $PTVERSION | cut -d'.' -f2`
PT_BUILD_NUMBER=`echo $PTVERSION | cut -d'.' -f3`
elif test "${PTVERSION:-unset}" = "unset" ; then
PT_MAJOR_VERSION=`cat ${PTLIBDIR}/version.h | grep MAJOR_VERSION | cut -f3 -d' '`
PT_MINOR_VERSION=`cat ${PTLIBDIR}/version.h | grep MINOR_VERSION | cut -f3 -d' '`
PT_BUILD_NUMBER=`cat ${PTLIBDIR}/version.h | grep BUILD_NUMBER | cut -f3 -d' '`
PTVERSION="${PT_MAJOR_VERSION}.${PT_MINOR_VERSION}.${PT_BUILD_NUMBER}"
fi
AC_ARG_ENABLE(versioncheck,
[ --disable-versioncheck disable PTLib version check],
PTLIB_VERSION_CHECK=$enableval)
AC_MSG_CHECKING(Checking PTLib version ${PTVERSION})
if test "${PTLIB_VERSION_CHECK}x" = "nox" ; then
AC_MSG_RESULT(check disabled)
else
if test $PT_MAJOR_VERSION -lt $REQUIRED_PTLIB_MAJOR ; then
AC_MSG_RESULT(Major version less than required $REQUIRED_PTLIB_MAJOR)
exit 1
fi
if test $PT_MAJOR_VERSION -eq $REQUIRED_PTLIB_MAJOR ; then
if test $PT_MINOR_VERSION -lt $REQUIRED_PTLIB_MINOR ; then
AC_MSG_RESULT(Minor version less than required $REQUIRED_PTLIB_MINOR)
exit 1
fi
fi
if test $PT_MAJOR_VERSION -eq $REQUIRED_PTLIB_MAJOR ; then
if test $PT_MINOR_VERSION -eq $REQUIRED_PTLIB_MINOR ; then
if test $PT_BUILD_NUMBER -lt $REQUIRED_PTLIB_BUILD ; then
AC_MSG_RESULT(Build version less than required $REQUIRED_PTLIB_BUILD)
exit 1
fi
fi
fi
AC_MSG_RESULT(ok)
fi
AC_SUBST(PTLIBDIR)
AC_SUBST(HAS_PTLIB_LIB_MAK)
AC_DEFINE_UNQUOTED(PT_MAJOR_VERSION, ${PT_MAJOR_VERSION}, [PTLib Major version])
AC_DEFINE_UNQUOTED(PT_MINOR_VERSION, ${PT_MINOR_VERSION}, [PTLib Minor version])
AC_DEFINE_UNQUOTED(PT_BUILD_NUMBER, ${PT_BUILD_NUMBER}, [PTLib Build number])
dnl ########################################################################
dnl check for setting minimum size
AC_ARG_ENABLE(minsize,
[ --enable-minsize minimise the size of the lib by disabling least used options])
dnl these are the default configure settings
default_audio=yes
default_video=yes
default_h450=yes
default_h501=yes
default_t38=yes
default_h224=yes
default_h230=yes
default_h235=no
default_h235_256=no
default_h239=yes
default_h248=yes
default_h249=no
default_h341=yes
default_h350=yes
default_h460=yes
default_h4609=yes
default_h46017=no
default_h46018=yes
default_h46019m=yes
default_h46023=yes
default_h46025=no
default_h46026=no
default_h461=no
default_h460p=no
default_h460pre=no
default_h460com=no
default_t120=no
default_t140=no
default_gnugk=yes
default_file=yes
default_aec=no
default_tls=yes
if test "${enable_minsize}x" = "yesx" ; then
default_audio=yes
default_video=yes
default_h450=no
default_h501=no
default_t38=no
default_h224=no
default_h230=no
default_h235=no
default_h235_256=no
default_h239=no
default_h248=no
default_h249=no
default_h341=no
default_h350=no
default_h460=no
default_h4609=no
default_h46017=no
default_h46018=no
default_h46019m=no
default_h46023=no
default_h46025=no
default_h46026=no
default_h461=no
default_hh460p=no
default_h460pre=no
default_h460com=no
default_t120=no
default_t140=no
default_gnugk=no
default_file=no
default_aec=no
default_tls=no
fi
dnl ########################################################################
dnl check for disbling ASN tracing
AC_ARG_ENABLE(asntracing,
[ --disable-asntracing disable ASN tracing])
if test "${enable_asntracing}z" = "z" ; then
enable_asntracing=$default_asntracing
fi
if test "$enable_asntracing" = "no" ; then
AC_MSG_NOTICE(Disabling ASN tracing)
AC_SUBST(NOTRACE, 1)
fi
dnl ########################################################################
dnl Enable audio subsystems
dnl MSWIN_DISPLAY audio,Audio Software Codecs
dnl MSWIN_DEFINE audio,H323_AUDIO_CODECS
AC_ARG_ENABLE(audio,
[ --disable-audio disable audio codecs])
if test "${enable_audio}z" = "z" ; then
enable_audio=yes
fi
if test "$enable_audio" = "no" ; then
AC_MSG_NOTICE(Disabling audio functions)
AC_SUBST(NOAUDIOCODECS, 1)
else
AC_DEFINE(H323_AUDIO_CODECS, 1, [Include audio codecs])
AC_ARG_ENABLE(embeddedgsm,
[ --enable-embeddedgsm embed GSM codec via static linking],
EMBEDDED_GSM=$enableval)
if test "${EMBEDDED_GSM}x" != "x" ; then
AC_MSG_NOTICE(Embedding GSM codec)
LDFLAGS="$LDFLAGS -L${OPENH323DIR}/plugins/audio/GSM0610"
ENDLDLIBS="$ENDLDLIBS -lgsm0610_audio_s"
AC_CHECK_LIB(gsm, gsm_create, GSM=1)
if test "x$GSM" != "x"; then
ENDLDLIBS="$ENDLDLIBS -lgsm"
fi
AC_DEFINE(H323_EMBEDDED_GSM, , [Use embdedded GSM codec])
fi
fi
dnl ########################################################################
dnl Enable video subsystems
dnl MSWIN_DISPLAY video,Video Software Codecs
dnl MSWIN_DEFINE video,H323_VIDEO
AC_ARG_ENABLE(video,
[ --disable-video disable video functions])
if test "${enable_video}z" = "z" ; then
enable_video=$default_video
fi
if test "$enable_video" = "no" ; then
AC_MSG_NOTICE(Disabling video functions)
AC_SUBST(NOVIDEO, 1)
else
AC_DEFINE(H323_VIDEO, 1, [Enable H.323 video support])
fi
dnl ########################################################################
dnl check for disabling H.224
dnl MSWIN_DISPLAY h224,H.224
dnl MSWIN_DEFINE h224,H323_H224
AC_ARG_ENABLE(h224,
[ --disable-h224 disable H.224])
if test "${enable_h224}x" = "x" ; then
enable_h224=$default_h224
fi
if test "$enable_h224" = "yes" ; then
H323_H224=1
AC_DEFINE(H323_H224, 1, [Enable H.244 support])
AC_MSG_NOTICE(Enabling H.224)
else
H323_H224=
AC_MSG_NOTICE(Disabling H.224)
fi
AC_SUBST(H323_H224)
dnl ########################################################################
dnl check for disabling H.230
dnl MSWIN_DISPLAY h230,H.230
dnl MSWIN_DEFINE h230,H323_H230
AC_ARG_ENABLE(h230,
[ --disable-h230 disable H.230])
if test "${enable_h230}x" = "x" ; then
enable_h230=$default_h230
fi
if test "$enable_h230" = "yes" ; then
H323_H230=1
AC_DEFINE(H323_H230, 1, [Enable H.230 support])
AC_MSG_NOTICE(Enabling H.230)
else
H323_H230=
AC_MSG_NOTICE(Disabling H.230)
fi
AC_SUBST(H323_H230)
dnl ########################################################################
dnl check for en/disabling H.235
dnl MSWIN_DISPLAY h235,H.235.6 (128 bit)
dnl MSWIN_DEFINE h235,H323_H235
AC_ARG_ENABLE(h235,
[ --disable-h235 disable H.235.6 (128 bit)])
if test "${enable_h235}x" = "x" ; then
enable_h235=$default_h235
fi
if test "$enable_h235" = "yes" ; then
H323_H235=1
AC_DEFINE(H323_H235, 1, [Enable H.235 support])
AC_MSG_NOTICE(Enabling H.235.6)
else
H323_H235=
AC_MSG_NOTICE(Disabling H.235.6)
fi
AC_SUBST(H323_H235)
dnl ########################################################################
dnl check for en/disabling H.235 with 256 bits
dnl MSWIN_DISPLAY h235_256,H.235.6 (256 bit)
dnl MSWIN_DEFAULT h235_256,Disabled
dnl MSWIN_DEFINE h235_256,H323_H235_AES256
AC_ARG_ENABLE(h235_256,
[ --disable-h235-256 disable H.235.6 (256 bit)])
if test "${enable_h235_256}x" = "x" ; then
enable_h235_256=$default_h235_256
fi
if test "$enable_h235" != "yes" ; then
enable_h235_256="no"
fi
if test "$enable_h235_256" = "yes" ; then
H323_H235_AES256=1
AC_DEFINE(H323_H235_AES256, 1, [Enable H.235 AES256 support])
AC_MSG_NOTICE(Enabling H.235.6 (256 bit))
else
H323_H235_AES256=
AC_MSG_NOTICE(Disabling H.235.6 (256 bit))
fi
AC_SUBST(H323_H235_AES256)
dnl ########################################################################
dnl check for disabling H.239
dnl MSWIN_DISPLAY h239,H.239
dnl MSWIN_DEFINE h239,H323_H239
AC_ARG_ENABLE(h239,
[ --disable-h239 disable H.239])
if test "${enable_h239}x" = "x" ; then
enable_h239=$default_h239
fi
if test "$enable_h239" = "yes" ; then
H323_H239=1
AC_DEFINE(H323_H239, 1, [Enable H.239 support])
AC_MSG_NOTICE(Enabling H.239)
else
H323_H239=
AC_MSG_NOTICE(Disabling H.239)
fi
AC_SUBST(H323_H239)
dnl ########################################################################
dnl check for disabling H.248
dnl MSWIN_DISPLAY h248,H.248
dnl MSWIN_DEFINE h248,H323_H248
AC_ARG_ENABLE(h248,
[ --disable-h248 enable H.248])
if test "${enable_h248}x" = "x" ; then
enable_h248=$default_h248
fi
if test "$enable_h248" = "yes" ; then
H323_H248=1
AC_DEFINE(H323_H248, 1, [Enable H.248 support])
AC_MSG_NOTICE(Enabling H.248)
else
H323_H248=
AC_MSG_NOTICE(Disabling H.248)
fi
AC_SUBST(H323_H248)
dnl ########################################################################
dnl check for disabling H.249
dnl MSWIN_DISPLAY h249,H.249
dnl MSWIN_DEFINE h249,H323_H249
AC_ARG_ENABLE(h249,
[ --disable-h249 disable H.249])
if test "${enable_h249}x" = "x" ; then
enable_h249=$default_h249
fi
if test "$enable_h249" = "yes" ; then
H323_H249=1
AC_DEFINE(H323_H249, 1, [Enable H.249 support])
AC_MSG_NOTICE(Enabling H.249)
else
H323_H249=
AC_MSG_NOTICE(Disabling H.249)
fi
AC_SUBST(H323_H249)
dnl ########################################################################
dnl check for disabling H.341
dnl MSWIN_DISPLAY h341,H.341
dnl MSWIN_DEFINE h341,H323_H341
AC_ARG_ENABLE(h341,
[ --disable-h341 disable H.341])
if test "${enable_h341}x" = "x" ; then
enable_h341=$default_h341
fi
if test "$enable_h341" = "yes" ; then
H323_H341=1
AC_DEFINE(H323_H341, 1, [Enable H.341 support])
AC_MSG_NOTICE(Enabling H.341)
else
H323_H341=
AC_MSG_NOTICE(Disabling H.341)
fi
AC_SUBST(H323_H341)
dnl ########################################################################
dnl check for disabling H.350
dnl MSWIN_DISPLAY h350,H.350
dnl MSWIN_DEFINE h350,H323_H350
AC_ARG_ENABLE(h350,
[ --disable-h350 disable H.350])
if test "${enable_h350}x" = "x" ; then
enable_h350=$default_h350
fi
if test "$enable_h350" = "yes" ; then
H323_H350=1
AC_DEFINE(H323_H350, 1, [Enable H.350 support])
AC_MSG_NOTICE(Enabling H.350)
else
H323_H350=
AC_MSG_NOTICE(Disabling H.350)
fi
AC_SUBST(H323_H350)
dnl ########################################################################
dnl check for disabling H.450
dnl MSWIN_DISPLAY h450,H.450
dnl MSWIN_DEFINE h450,H323_H450
AC_ARG_ENABLE(h450,
[ --disable-h450 disable H.450])
if test "${enable_h450}x" = "x" ; then
enable_h450=$default_h450
fi
if test "$enable_h450" = "yes" ; then
H323_H450=1
AC_DEFINE(H323_H450, 1, [Enable H.450 support])
AC_MSG_NOTICE(Enabling H.450)
else
H323_H450=
AC_MSG_NOTICE(Disabling H.450)
fi
AC_SUBST(H323_H450)
dnl ########################################################################
dnl check for disabling H.460
dnl MSWIN_DISPLAY h460,H.460
dnl MSWIN_DEFINE h460,H323_H460
AC_ARG_ENABLE(h460,
[ --disable-h460 disable H.460])
if test "${enable_h460}x" = "x" ; then
enable_h460=$default_h460
fi
if test "$enable_h460" = "yes" ; then
H323_H460=1
AC_DEFINE(H323_H460, 1, [Enable H.460 support])
AC_MSG_NOTICE(Enabling H.460)
else
H323_H460=
AC_MSG_NOTICE(Disabling H.460)
fi
AC_SUBST(H323_H460)
dnl ########################################################################
dnl check for enabling H.460.9
dnl MSWIN_DISPLAY h4609,H.460.9
dnl MSWIN_DEFINE h4609,H323_H4609
AC_ARG_ENABLE(h4609,
[ --disable-h4609 disable H.460.9])
if test "${enable_h4609}x" = "x" ; then
enable_h4609=$default_h4609
fi
if test "$enable_h4609" = "yes" ; then
H323_h4609=1
AC_DEFINE(H323_H4609, 1, [Enable H.460.9 support])
AC_MSG_NOTICE(Enabling H.460.9)
else
H323_h4609=
AC_MSG_NOTICE(Disabling H.460.9)
fi
AC_SUBST(H323_H4609)
dnl ########################################################################
dnl check for enabling H.460.17
dnl MSWIN_DISPLAY h46017,H.460.17
dnl MSWIN_DEFINE h46017,H323_H46017
AC_ARG_ENABLE(h46017,
[ --disable-h46017 disable H.460.17])
if test "${enable_h46017}x" = "x" ; then
enable_h46017=$default_h46017
fi
if test "$enable_h46017" = "yes" ; then
H323_H46017=1
AC_DEFINE(H323_H46017, 1, [Enable H.460.17 support])
AC_MSG_NOTICE(Enabling H.460.17)
else
H323_H46017=
AC_MSG_NOTICE(Disabling H.460.17)
fi
AC_SUBST(H323_H46017)
dnl ########################################################################
dnl check for enabling H.460.18/.19
dnl MSWIN_DISPLAY h46018,H.460.18/.19
dnl MSWIN_DEFINE h46018,H323_H46018
AC_ARG_ENABLE(h46018,
[ --disable-h46018 disable H.460.18/.19])
if test "${enable_h46018}x" = "x" ; then
enable_h46018=$default_h46018
fi
if test "$enable_h46018" = "yes" ; then
H323_H46018=1
AC_DEFINE(H323_H46018, 1, [Enable H.460.18/.19 support])
AC_MSG_NOTICE(Enabling H.460.18/.19)
else
H323_H46018=
AC_MSG_NOTICE(Disabling H.460.18/.19)
fi
AC_SUBST(H323_H46018)
dnl ########################################################################
dnl check for enabling H.460.19 RTP multiplexing
dnl MSWIN_DISPLAY h46019m,H.460.19 RTP multiplexing
dnl MSWIN_DEFINE h46019m,H323_H46019M
AC_ARG_ENABLE(h46019m,
[ --disable-h46019m disable H.460.19 RTP multiplexing])
if test "${enable_h46019m}x" = "x" ; then
enable_h46019m=$default_h46019m
fi
if test "$enable_h46019m" = "yes" ; then
H323_H46019M=1
AC_DEFINE(H323_H46019M, 1, [Enable H.460.19 support])
AC_MSG_NOTICE(Enabling H.460.19 RTP multiplexing)
else
H323_H46019M=
AC_MSG_NOTICE(Disabling H.460.19 RTP multiplexing)
fi
AC_SUBST(H323_H46019M)
dnl ########################################################################
dnl check for disabling H.460.23/.24
dnl MSWIN_DISPLAY h46023,H.460.23/.24
dnl MSWIN_DEFINE h46023,H323_H46023
AC_ARG_ENABLE(h46023,
[ --disable-h46023 disable H.460.23/.24])
if test "${enable_h46023}x" = "x" ; then
enable_h46023=$default_h46023
fi
if test "$enable_h46023" = "yes" ; then
H323_H46023=1
AC_DEFINE(H323_H46023, 1, [Enable H.460.23 support])
AC_MSG_NOTICE(Enabling H.460.23/.24)
else
H323_H46023=
AC_MSG_NOTICE(Disabling H.460.23/.24)
fi
AC_SUBST(H323_H46023)
dnl ########################################################################
dnl check for disabling H.460.25
dnl MSWIN_DISPLAY h46025,H.460.25
dnl MSWIN_DEFINE h46025,H323_H46025
AC_ARG_ENABLE(h46025,
[ --disable-h46025 disable H.460.25])
if test "${enable_h46025}x" = "x" ; then
enable_h46023=$default_h46025
fi
if test "$enable_h46025" = "yes" ; then
H323_H46025=1
AC_DEFINE(H323_H46025, 1, [Enable H.460.25 support])
AC_MSG_NOTICE(Enabling H.460.25)
else
H323_H46025=
AC_MSG_NOTICE(Disabling H.460.25)
fi
dnl ########################################################################
dnl check for disabling H.460.26
dnl MSWIN_DISPLAY h46026,H.460.26
dnl MSWIN_DEFINE h46026,H323_H46026
AC_ARG_ENABLE(h46026,
[ --disable-h46026 disable H.460.26])
if test "${enable_h46026}x" = "x" ; then
enable_h46023=$default_h46026
fi
if test "$enable_h46026" = "yes" ; then
H323_H46026=1
AC_DEFINE(H323_H46026, 1, [Enable H.460.26 support])
AC_MSG_NOTICE(Enabling H.460.26)
else
H323_H46026=
AC_MSG_NOTICE(Disabling H.460.26)
fi
AC_SUBST(H323_H46026)
dnl ########################################################################
dnl check for disabling H.460 Presence
dnl MSWIN_DISPLAY h460p,H.460 Presence
dnl MSWIN_DEFINE h460p,H323_H460P
AC_ARG_ENABLE(h460p,
[ --enable-h460p enable H.460 Presence])
if test "${enable_h460p}x" = "x" ; then
enable_h460p=$default_h460p
fi
if test "$enable_h460p" = "yes" ; then
H323_H460P=1
AC_DEFINE(H323_H460P, 1, [Enable H.460P support])
AC_MSG_NOTICE(Enabling H.460 Presence)
else
H323_H460P=
AC_MSG_NOTICE(Disabling H.460 Presence)
fi
AC_SUBST(H323_H460P)
dnl ########################################################################
dnl check for Enable H.460 PreEmption
dnl MSWIN_DISPLAY h460pre,H.460 PreEmption
dnl MSWIN_DEFINE h460pre,H323_H460PRE
AC_ARG_ENABLE(h460pre,
[ --enable-h460pre enable H.460 PreEmption])
if test "${enable_h460pre}x" = "x" ; then
enable_h460pre=$default_h460pre
fi
if test "$enable_h460pre" = "yes" ; then
H323_H460PRE=1
AC_DEFINE(H323_H460PRE, 1, [Enable H.460PRE support])
AC_MSG_NOTICE(Enabling H.460 PreEmption)
else
H323_H460PRE=
AC_MSG_NOTICE(Disabling H.460 PreEmption)
fi
AC_SUBST(H323_H460PRE)
dnl ########################################################################
dnl check for Enable H.460 Compatibility
dnl MSWIN_DISPLAY h460com,H.460 Compat Feature
dnl MSWIN_DEFINE h460com,H323_H460COM
AC_ARG_ENABLE(h460com,
[ --enable-h460com enable H.460 Compat Feature])
if test "${enable_h460com}x" = "x" ; then
enable_h460com=$default_h460com
fi
if test "$enable_h460com" = "yes" ; then
H323_H460COM=1
AC_DEFINE(H323_H460COM, 1, [Enable H.460COM support])
AC_MSG_NOTICE(Enabling H.460 Compat Feature)
else
H323_H460COM=
AC_MSG_NOTICE(Disabling H.460 Compat Feature)
fi
AC_SUBST(H323_H460COM)
dnl ########################################################################
dnl check for Enable H.460 Text Message
dnl MSWIN_DISPLAY h460im,H.460 Text Message
dnl MSWIN_DEFINE h460im,H323_H460IM
AC_ARG_ENABLE(h460im,
[ --enable-h460im enable H.460 Text Message])
if test "${enable_h460im}x" = "x" ; then
enable_h460im=$default_h460im
fi
if test "$enable_h460im" = "yes" ; then
H323_H460IM=1
AC_DEFINE(H323_H460IM, 1, [Enable H.460IM support])
AC_MSG_NOTICE(Enabling H.460 Text Message)
else
H323_H460IM=
AC_MSG_NOTICE(Disabling H.460 Text Message)
fi
AC_SUBST(H323_H460IM)
dnl ########################################################################
dnl check for Enable H.461 ASSET Feature
dnl MSWIN_DISPLAY h461,H.461 ASSET Feature
dnl MSWIN_DEFINE h461,H323_H461
AC_ARG_ENABLE(h461,
[ --enable-h461 enable H.461 ASSET Feature])
if test "${enable_h461}x" = "x" ; then
enable_h461=$default_h461
fi
if test "$enable_h461" = "yes" ; then
H323_H461=1
AC_DEFINE(H323_H461, 1, [Enabling H.461 ASSET Feature])
AC_MSG_NOTICE(Enabling H.461 ASSET Feature)
else
H323_H461=
AC_MSG_NOTICE(Disabling H.461 ASSET Feature)
fi
AC_SUBST(H323_H461)
dnl ########################################################################
dnl check for disabling H.501
dnl MSWIN_DISPLAY h501,H.501
dnl MSWIN_DEFINE h501,H323_H501
AC_ARG_ENABLE(h501,
[ --disable-h501 disable H.501])
if test "${enable_h501}x" = "x" ; then
enable_h501=$default_h501
fi
if test "$enable_h501" = "yes" ; then
H323_H501=1
AC_DEFINE(H323_H501, 1, [Enable H.501 support])
AC_MSG_NOTICE(Enabling H.501)
else
H323_H501=
AC_MSG_NOTICE(Disabling H.501)
fi
AC_SUBST(H323_H501)
dnl ########################################################################
dnl check for disabling T.38
dnl MSWIN_DISPLAY t38,T.38
dnl MSWIN_DEFINE t38,H323_T38
AC_ARG_ENABLE(t38,
[ --disable-t38 disable T.38])
if test "${enable_t38}x" = "x" ; then
enable_t38=$default_t38
fi
if test "$enable_t38" = "yes" ; then
AC_MSG_NOTICE(Enabling T.38)
H323_T38=1
AC_DEFINE(H323_T38, 1, [Enable T.38 support])
AC_MSG_NOTICE(Enabling T.38)
else
H323_T38=
AC_MSG_NOTICE(Disabling T.38)
fi
AC_SUBST(H323_T38)
dnl ########################################################################
dnl check for enabling T.120
dnl MSWIN_DISPLAY t120,T.120
dnl MSWIN_DEFINE t120,H323_T120
AC_ARG_ENABLE(t120,
[ --disable-t120 disable T.120])
if test "${enable_t120}x" = "x" ; then
enable_t120=$default_t120
fi
if test "$enable_t120" = "no" ; then
H323_T120=
AC_MSG_NOTICE(Disabling T.120)
else
H323_T20=1
AC_DEFINE(H323_T120, 1, [Enable T.120 support])
AC_MSG_NOTICE(Enabling T.120)
fi
AC_SUBST(H323_T120)
dnl ########################################################################
dnl check for enabling T.140
dnl MSWIN_DISPLAY t140,T.140
dnl MSWIN_DEFINE t140,H323_T140
AC_ARG_ENABLE(t140,
[ --disable-t140 disable T.140])
if test "${enable_t140}x" = "x" ; then
enable_t140=$default_t140
fi
if test "$enable_t140" = "no" ; then
H323_T140=
AC_MSG_NOTICE(Disabling T.140)
else
H323_T140=1
AC_DEFINE(H323_T140, 1, [Enable T.140 support])
AC_MSG_NOTICE(Enabling T.140)
fi
AC_SUBST(H323_T140)
dnl ########################################################################
dnl check for disabling GNUGK Support
dnl MSWIN_DISPLAY gnugk,GNUGKnat
dnl MSWIN_DEFINE gnugk,H323_GNUGK
AC_ARG_ENABLE(gnugk,
[ --disable-gnugk disable GnuGk NAT])
if test "${enable_gnugk}x" = "x" ; then
enable_gnugk=$default_gnugk
fi
if test "$enable_gnugk" = "yes" ; then
H323_GNUGK=1
AC_DEFINE(H323_GNUGK, 1, [Enable GNU GateKeeper NAT support])
AC_MSG_NOTICE(Enabling GnuGk NAT)
else
H323_GNUGK=
AC_MSG_NOTICE(Disabling GnuGk NAT)
fi
AC_SUBST(H323_GNUGK)
dnl ########################################################################
dnl check for disabling File Transfer Support
dnl MSWIN_DISPLAY file,FileTransfer
dnl MSWIN_DEFINE file,H323_FILE
AC_ARG_ENABLE(file,
[ --disable-file disable File Transfer])
if test "${enable_file}x" = "x" ; then
enable_file=$default_file
fi
if test "$enable_file" = "yes" ; then
H323_FILE=1
AC_DEFINE(H323_FILE, 1, [Enable H323 file support])
AC_MSG_NOTICE(Enabling File Transfer)
else
H323_FILE=
AC_MSG_NOTICE(Disabling File Transfer)
fi
AC_SUBST(H323_FILE)
dnl ########################################################################
dnl look for Speex AEC
dnl MSWIN_DISPLAY aec,AEC (Acoustic Echo Cancellation)
dnl MSWIN_CHECK_FILE aec,include\speex\speex_echo.h,H323_AEC=1
dnl MSWIN_DIR_SYMBOL aec,AEC_DIR
dnl MSWIN_CHECK_DIR aec,c:\speex-1.2rc1\
AC_ARG_ENABLE([aec],
AS_HELP_STRING([--enable-aec],[enable Acoustic Echo Cancellation]),
[enable_aec=$enableval],
[enable_aec=$default_aec]
)
if test "$enable_aec" = "no" ; then
AC_MSG_NOTICE(AEC disabled)
else
if test "x${H323_AEC}" = "x1" ; then
AC_DEFINE(H323_AEC, 1, "AEC found")
STDCCFLAGS="$STDCCFLAGS $AEC_CFLAGS"
ENDLDLIBS="$ENDLDLIBS $AEC_LIBS"
AC_MSG_NOTICE(AEC enabled)
fi
fi
AC_SUBST(H323_AEC)
dnl ########################################################################
dnl check for disabling TLS support
dnl MSWIN_DISPLAY tls,TLS
dnl MSWIN_DEFINE tls,H323_TLS
AC_ARG_ENABLE(tls,
[ --disable-tls disable TLS support])
if test "${enable_tls}x" = "x" ; then
enable_tls=$default_tls
fi
if test "$enable_tls" = "yes" ; then
H323_TLS=1
AC_DEFINE(H323_TLS, 1, [Enable TLS support])
AC_MSG_NOTICE(Enabling TLS support)
else
H323_TLS=
AC_MSG_NOTICE(Disabling TLS support)
fi
AC_SUBST(H323_TLS)
dnl ########################################################################
dnl make directives
AC_SUBST(STDCCFLAGS)
AC_SUBST(LDFLAGS)
AC_SUBST(LDLIBS)
AC_SUBST(ENDLDLIBS)