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 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120
|
AC_INIT([Janus WebRTC Server],[1.1.2],[https://github.com/meetecho/janus-gateway],[janus-gateway],[https://janus.conf.meetecho.com])
AC_LANG(C)
AC_CONFIG_AUX_DIR([.])
AC_CONFIG_MACRO_DIR([m4])
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_SILENT_RULES([yes])
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CC
LT_PREREQ([2.2])
LT_INIT
# Common CFLAGS
CFLAGS="$CFLAGS \
-fPIC \
-fstack-protector-all \
-fstrict-aliasing \
-ggdb3 \
-pthread \
-Wall \
-Warray-bounds \
-Wextra \
-Wformat-nonliteral \
-Wformat-security \
-Wformat=2 \
-Winit-self \
-Wlarger-than=65537 \
-Wmissing-declarations \
-Wmissing-format-attribute \
-Wmissing-include-dirs \
-Wmissing-noreturn \
-Wmissing-prototypes \
-Wnested-externs \
-Wold-style-definition \
-Wpacked \
-Wpointer-arith \
-Wsign-compare \
-Wstrict-prototypes \
-Wswitch-default \
-Wunused \
-Wno-unused-parameter \
-Wno-unused-result \
-Wwrite-strings \
-Werror=implicit-function-declaration"
case "$CC" in
*clang*)
# Specific clang flags
CFLAGS="$CFLAGS \
-Wno-cast-align \
-Wno-initializer-overrides"
;;
cc*)
CFLAGS="$CFLAGS \
-Wno-cast-align \
-Wno-initializer-overrides"
;;
*)
# Specific gcc flags
CFLAGS="$CFLAGS \
-Wcast-align \
-Wno-override-init \
-Wunsafe-loop-optimizations \
-Wunused-but-set-variable"
esac
JANUS_VERSION=1102
AC_SUBST(JANUS_VERSION)
JANUS_VERSION_STRING="1.1.2"
AC_SUBST(JANUS_VERSION_STRING)
JANUS_VERSION_SO="2:2:1"
AC_SUBST(JANUS_VERSION_SO)
case "$host_os" in
darwin*)
CFLAGS="$CFLAGS -I/usr/local/opt/openssl/include -I/usr/local/include"
# add rdynamic to LDFLAGS
LDFLAGS="$LDFLAGS -Wl,-export_dynamic"
LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/opt/local/lib -L/usr/local/libsrtp/lib"
AM_CONDITIONAL([DARWIN_OS], true)
;;
freebsd*)
CFLAGS="$CFLAGS -I/usr/include/openssl"
LDFLAGS="$LDFLAGS -Xlinker --export-dynamic"
LDFLAGS="$LDFLAGS -L/usr/lib/openssl -lcrypto -lssl -L/usr/local/lib"
AM_CONDITIONAL([DARWIN_OS], false)
;;
*)
LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
AM_CONDITIONAL([DARWIN_OS], false)
AC_DEFINE(HAS_DTLS_WINDOW_SIZE, 1)
esac
glib_version=2.34
ssl_version=1.0.1
jansson_version=2.5
##
# Janus
##
AC_ARG_ENABLE([docs],
[AS_HELP_STRING([--disable-docs],
[Disable building documentation])],
[],
[enable_docs=maybe])
AC_ARG_ENABLE([data-channels],
[AS_HELP_STRING([--disable-data-channels],
[Disable DataChannels])],
[],
[enable_data_channels=maybe])
AC_ARG_ENABLE([boringssl],
[AS_HELP_STRING([--enable-boringssl],
[Use BoringSSL instead of OpenSSL])],
[
case "${enableval}" in
yes) boringssl_dir=/opt/boringssl ;;
no) boringssl_dir= ;;
*) boringssl_dir=${enableval} ;;
esac
],
[boringssl_dir=])
AC_ARG_ENABLE([libsrtp2],
[AS_HELP_STRING([--enable-libsrtp2],
[Use libsrtp 2.0.x instead of libsrtp 1.5.x])],
[],
[enable_libsrtp2=maybe])
AC_ARG_ENABLE([aes-gcm],
[AS_HELP_STRING([--disable-aes-gcm],
[Disable AES-GCM support in libsrtp(2)])],
[],
[AC_DEFINE(HAVE_SRTP_AESGCM)])
AC_ARG_ENABLE([dtls-settimeout],
[AS_HELP_STRING([--enable-dtls-settimeout],
[Use DTLSv1_set_initial_timeout_duration (only available in recent BoringSSL versions)])],
[],
[enable_dtls_settimeout=no])
AC_ARG_ENABLE([pthread-mutex],
[AS_HELP_STRING([--enable-pthread-mutex],
[Use pthread_mutex instead of GMutex (see #1397)])],
[],
[enable_pthread_mutex=no])
AC_ARG_ENABLE([turn-rest-api],
[AS_HELP_STRING([--disable-turn-rest-api],
[Disable TURN REST API client (via libcurl)])],
[],
[enable_turn_rest_api=maybe])
AC_ARG_ENABLE([all-plugins],
[AS_HELP_STRING([--disable-all-plugins],
[Disable building all plugins (except those manually enabled)])],
[
AS_IF([test "x$enable_plugin_audiobridge" != "xyes"],
[enable_plugin_audiobridge=no])
AS_IF([test "x$enable_plugin_duktape" != "xyes"],
[enable_plugin_duktape=no])
AS_IF([test "x$enable_plugin_echotest" != "xyes"],
[enable_plugin_echotest=no])
AS_IF([test "x$enable_plugin_lua" != "xyes"],
[enable_plugin_lua=no])
AS_IF([test "x$enable_plugin_recordplay" != "xyes"],
[enable_plugin_recordplay=no])
AS_IF([test "x$enable_plugin_sip" != "xyes"],
[enable_plugin_sip=no])
AS_IF([test "x$enable_plugin_nosip" != "xyes"],
[enable_plugin_nosip=no])
AS_IF([test "x$enable_plugin_streaming" != "xyes"],
[enable_plugin_streaming=no])
AS_IF([test "x$enable_plugin_textroom" != "xyes"],
[enable_plugin_textroom=no])
AS_IF([test "x$enable_plugin_videocall" != "xyes"],
[enable_plugin_videocall=no])
AS_IF([test "x$enable_plugin_videoroom" != "xyes"],
[enable_plugin_videoroom=no])
AS_IF([test "x$enable_plugin_voicemail" != "xyes"],
[enable_plugin_voicemail=no])
],
[])
AC_ARG_ENABLE([all-transports],
[AS_HELP_STRING([--disable-all-transports],
[Disable building all transports (except those manually enabled)])],
[
AS_IF([test "x$enable_rest" != "xyes"],
[enable_rest=no])
AS_IF([test "x$enable_websockets" != "xyes"],
[enable_websockets=no])
AS_IF([test "x$enable_rabbitmq" != "xyes"],
[enable_rabbitmq=no])
AS_IF([test "x$enable_mqtt" != "xyes"],
[enable_mqtt=no])
AS_IF([test "x$enable_unix_sockets" != "xyes"],
[enable_unix_sockets=no])
AS_IF([test "x$enable_nanomsg" != "xyes"],
[enable_nanomsg=no])
],
[])
AC_ARG_ENABLE([all-handlers],
[AS_HELP_STRING([--disable-all-handlers],
[Disable building all event handlers (except those manually enabled)])],
[
AS_IF([test "x$enable_sample_event_handler" != "xyes"],
[enable_sample_event_handler=no])
AS_IF([test "x$enable_websockets_event_handler" != "xyes"],
[enable_websockets_event_handler=no])
AS_IF([test "x$enable_rabbitmq_event_handler" != "xyes"],
[enable_rabbitmq_event_handler=no])
AS_IF([test "x$enable_mqtt_event_handler" != "xyes"],
[enable_mqtt_event_handler=no])
AS_IF([test "x$enable_nanomsg_event_handler" != "xyes"],
[enable_nanomsg_event_handler=no])
AS_IF([test "x$enable_gelf_event_handler" != "xyes"],
[enable_gelf_event_handler=no])
],
[])
AC_ARG_ENABLE([all-loggers],
[AS_HELP_STRING([--disable-all-loggers],
[Disable building all loggers (except those manually enabled)])],
[
AS_IF([test "x$enable_json_logger" != "xyes"],
[enable_json_logger=no])
],
[])
AC_ARG_ENABLE([all-js-modules],
[AS_HELP_STRING([--enable-all-js-modules],
[Build all the JavaScript modules (instead of manually enabling them one by one)])],
[
enable_javascript_es_module=yes
enable_javascript_umd_module=yes
enable_javascript_iife_module=yes
enable_javascript_common_js_module=yes
],
[])
AC_ARG_ENABLE([rest],
[AS_HELP_STRING([--disable-rest],
[Disable REST (HTTP/HTTPS) support])],
[AS_IF([test "x$enable_rest" != "xyes"],
[enable_rest=no])],
[enable_rest=maybe])
AC_ARG_ENABLE([websockets],
[AS_HELP_STRING([--disable-websockets],
[Disable WebSockets support])],
[AS_IF([test "x$enable_websockets" != "xyes"],
[enable_websockets=no])],
[enable_websockets=maybe])
AC_ARG_ENABLE([rabbitmq],
[AS_HELP_STRING([--disable-rabbitmq],
[Disable RabbitMQ integration])],
[AS_IF([test "x$enable_rabbitmq" != "xyes"],
[enable_rabbitmq=no])],
[enable_rabbitmq=maybe])
AC_ARG_ENABLE([mqtt],
[AS_HELP_STRING([--disable-mqtt],
[Disable MQTT integration])],
[AS_IF([test "x$enable_mqtt" != "xyes"],
[enable_mqtt=no])],
[enable_mqtt=maybe])
AC_ARG_ENABLE([unix-sockets],
[AS_HELP_STRING([--disable-unix-sockets],
[Disable Unix Sockets integration])],
[AS_IF([test "x$enable_unix_sockets" != "xyes"],
[enable_unix_sockets=no])],
[enable_unix_sockets=maybe])
AC_ARG_ENABLE([nanomsg],
[AS_HELP_STRING([--disable-nanomsg],
[Disable Nanomsg integration])],
[AS_IF([test "x$enable_nanomsg" != "xyes"],
[enable_nanomsg=no])],
[enable_nanomsg=maybe])
AC_ARG_ENABLE([sample-event-handler],
[AS_HELP_STRING([--disable-sample-event-handler],
[Disable sample event handler (HTTP POST) ])],
[AS_IF([test "x$enable_sample_event_handler" != "xyes"],
[enable_sample_event_handler=no])],
[enable_sample_event_handler=maybe])
AC_ARG_ENABLE([websockets-event-handler],
[AS_HELP_STRING([--disable-websockets-event-handler],
[Disable WebSockets event handler ])],
[AS_IF([test "x$enable_websockets_event_handler" != "xyes"],
[enable_websockets_event_handler=no])],
[enable_websockets_event_handler=maybe])
AC_ARG_ENABLE([rabbitmq-event-handler],
[AS_HELP_STRING([--disable-rabbitmq-event-handler],
[Disable RabbitMQ event handler ])],
[AS_IF([test "x$enable_rabbitmq_event_handler" != "xyes"],
[enable_rabbitmq_event_handler=no])],
[enable_rabbitmq_event_handler=maybe])
AC_ARG_ENABLE([mqtt-event-handler],
[AS_HELP_STRING([--disable-mqtt-event-handler],
[Disable MQTT event handler ])],
[AS_IF([test "x$enable_mqtt_event_handler" != "xyes"],
[enable_mqtt_event_handler=no])],
[enable_mqtt_event_handler=maybe])
AC_ARG_ENABLE([nanomsg-event-handler],
[AS_HELP_STRING([--disable-nanomsg-event-handler],
[Disable Nanomsg event handler ])],
[AS_IF([test "x$enable_nanomsg_event_handler" != "xyes"],
[enable_nanomsg_event_handler=no])],
[enable_nanomsg_event_handler=maybe])
AC_ARG_ENABLE([gelf-event-handler],
[AS_HELP_STRING([--disable-gelf-event-handler],
[Disable gelf event handler ])],
[AS_IF([test "x$enable_gelf_event_handler" != "xyes"],
[enable_gelf_event_handler=no])],
[enable_gelf_event_handler=yes])
AC_ARG_ENABLE([json-logger],
[AS_HELP_STRING([--enable-json-logger],
[Enable external JSON file logger ])],
[AS_IF([test "x$enable_json_logger" != "xyes"],
[enable_json_logger=no])],
[enable_json_logger=no])
AC_ARG_ENABLE([systemd-sockets],
[AS_HELP_STRING([--enable-systemd-sockets],
[Enable Systemd Unix Sockets management])],
[],
[enable_systemd_sockets=no])
case "$host_os" in
freebsd*)
PKGCHECKMODULES="glib-2.0 >= $glib_version
gio-2.0 >= $glib_version
libconfig
nice
jansson >= $jansson_version
zlib"
;;
*)
PKGCHECKMODULES="glib-2.0 >= $glib_version
gio-2.0 >= $glib_version
libconfig
nice
jansson >= $jansson_version
libssl >= $ssl_version
libcrypto
zlib"
esac
PKG_CHECK_MODULES([JANUS],"$PKGCHECKMODULES")
JANUS_MANUAL_LIBS="${JANUS_MANUAL_LIBS} -lm"
AC_SUBST(JANUS_MANUAL_LIBS)
AS_IF([test "x${boringssl_dir}" != "x"],
[echo "Trying to use BoringSSL instead of OpenSSL...";
AC_MSG_NOTICE([BoringSSL directory is ${boringssl_dir}])
CFLAGS="$CFLAGS -I${boringssl_dir}/include";
BORINGSSL_CFLAGS=" -I${boringssl_dir}/include";
AC_SUBST(BORINGSSL_CFLAGS)
BORINGSSL_LIBS=" -L${boringssl_dir}/lib";
AC_SUBST(BORINGSSL_LIBS)
AC_CHECK_HEADERS([${boringssl_dir}/include/openssl/opensslconf.h],
[AC_DEFINE(HAVE_BORINGSSL)],
[AC_MSG_ERROR([BoringSSL headers not found in ${boringssl_dir}, use --disable-boringssl if you want to use OpenSSL instead])])
])
AM_CONDITIONAL([ENABLE_BORINGSSL], [test "x${boringssl_dir}" != "x"])
AS_IF([test "x$enable_dtls_settimeout" = "xyes"],
[
AC_DEFINE(HAVE_DTLS_SETTIMEOUT)
AC_MSG_NOTICE([Assuming DTLSv1_set_initial_timeout_duration is available])
])
AM_CONDITIONAL([ENABLE_DTLS_SETTIMEOUT], [test "x$enable_dtls_settimeout" = "xyes"])
AS_IF([test "x$enable_pthread_mutex" = "xyes"],
[
AC_DEFINE(USE_PTHREAD_MUTEX)
AC_MSG_NOTICE([Will use pthread_mutex instead of GMutex])
])
AM_CONDITIONAL([ENABLE_PTHREAD_MUTEX], [test "x$enable_pthread_mutex" = "xyes"])
AC_SEARCH_LIBS([tls_config_set_ca_mem],[tls],
[AM_CONDITIONAL([LIBRESSL_DETECTED], true)],
[AM_CONDITIONAL([LIBRESSL_DETECTED], false)]
)
AC_CHECK_LIB([nice],
[nice_agent_set_port_range],
[AC_DEFINE(HAVE_PORTRANGE)],
[AC_MSG_NOTICE([libnice version does not have nice_agent_set_port_range])]
)
AC_CHECK_LIB([nice],
[nice_address_equal_no_port],
[AC_DEFINE(HAVE_LIBNICE_TCP)],
[AC_MSG_NOTICE([libnice version does not support TCP candidates])]
)
AC_CHECK_LIB([nice],
[nice_agent_close_async],
[AC_DEFINE(HAVE_CLOSE_ASYNC)],
[AC_MSG_NOTICE([libnice version does not have nice_agent_close_async])]
)
AC_CHECK_LIB([nice],
[nice_agent_new_full],
[AC_DEFINE(HAVE_ICE_NOMINATION)],
[AC_MSG_NOTICE([libnice version does not have nice_agent_new_full])]
)
AC_CHECK_LIB([dl],
[dlopen],
[JANUS_MANUAL_LIBS="${JANUS_MANUAL_LIBS} -ldl"],
[AC_MSG_ERROR([libdl not found.])])
AM_CONDITIONAL([ENABLE_LIBSRTP_2], false)
AS_IF([test "x$enable_libsrtp2" != "xno"],
[PKG_CHECK_MODULES([LIBSRTP],
[libsrtp2],
[
AC_DEFINE(HAVE_SRTP_2)
enable_libsrtp2=yes
AM_CONDITIONAL([ENABLE_LIBSRTP_2], true)
],
[
AS_IF([test "x$enable_libsrtp2" = "xyes"],
[AC_MSG_ERROR([libsrtp2 headers not found. See README.md for installation instructions or use --disable-libsrtp-2 to try and autodetect libsrtp 1.5.x instead])])
])
])
AM_COND_IF([ENABLE_LIBSRTP_2],
[],
[PKG_CHECK_MODULES([LIBSRTP],
[libsrtp >= 1.5.0],
[enable_libsrtp2=no],
[AC_MSG_ERROR([libsrtp and libsrtp2 not found. See README.md for installation instructions])
])
])
AC_CHECK_LIB([usrsctp],
[usrsctp_finish],
[
AS_IF([test "x$enable_data_channels" != "xno"],
[
AC_DEFINE(HAVE_SCTP)
JANUS_MANUAL_LIBS="${JANUS_MANUAL_LIBS} -lusrsctp"
enable_data_channels=yes
])
],
[
AS_IF([test "x$enable_data_channels" = "xyes"],
[AC_MSG_ERROR([libusrsctp not found. See README.md for installation instructions or use --disable-data-channels])])
])
AM_CONDITIONAL([ENABLE_SCTP], [test "x$enable_data_channels" = "xyes"])
PKG_CHECK_MODULES([LIBCURL],
[libcurl],
[
AC_DEFINE(HAVE_LIBCURL)
AS_IF(
[test "x$enable_turn_rest_api" != "xno"],
[
AC_DEFINE(HAVE_TURNRESTAPI)
enable_turn_rest_api=yes
])
AS_IF([test "x$enable_sample_event_handler" != "xno"],
[
AC_DEFINE(HAVE_SAMPLEEVH)
enable_sample_event_handler=yes
])
],
[
AS_IF([test "x$enable_turn_rest_api" = "xyes"],
[AC_MSG_ERROR([libcurl not found. See README.md for installation instructions or use --disable-turn-rest-api])])
AS_IF([test "x$enable_sample_event_handler" = "xyes"],
[AC_MSG_ERROR([libcurl not found. See README.md for installation instructions or use --disable-sample-event-handler])])
])
AM_CONDITIONAL([ENABLE_TURN_REST_API], [test "x$enable_turn_rest_api" = "xyes"])
AM_CONDITIONAL([ENABLE_SAMPLEEVH], [test "x$enable_sample_event_handler" = "xyes"])
AC_CHECK_PROG([DOXYGEN],
[doxygen],
[doxygen])
AC_CHECK_PROG([DOT],
[dot],
[dot])
AS_IF([test -z "$DOXYGEN" -o -z "$DOT"],
[
AS_IF([test "x$enable_docs" = "xyes"],
[AC_MSG_ERROR([doxygen or dot not found. See README.md for installation instructions or remove --enable-docs])])
],[
enable_docs=yes
])
AM_CONDITIONAL([ENABLE_DOCS], [test "x$enable_docs" = "xyes"])
if test "x$enable_docs" = "xyes"; then
doxygen_version=$($DOXYGEN --version)
AS_VERSION_COMPARE([$doxygen_version], [1.8.11],
[],
[],
[
AS_VERSION_COMPARE([$doxygen_version], [1.8.14],
[AC_MSG_ERROR([Doxygen $doxygen_version not usable: versions between 1.8.12 and 1.8.14 are known to render poorly.])],
[],
[]
)
]
)
fi
##
# Transports
##
PKG_CHECK_MODULES([TRANSPORTS],
[
glib-2.0 >= $glib_version
jansson >= $jansson_version
])
PKG_CHECK_MODULES([MHD],
[libmicrohttpd >= 0.9.59],
[
AS_IF([test "x$enable_rest" = "xmaybe"],
[enable_rest=yes])
],
[
AS_IF([test "x$enable_rest" = "xyes"],
[AC_MSG_ERROR([libmicrohttpd not found. See README.md for installation instructions or use --disable-rest])])
])
AC_SUBST([MHD_CFLAGS])
AC_SUBST([MHD_LIBS])
AM_CONDITIONAL([ENABLE_REST], [test "x$enable_rest" = "xyes"])
AM_COND_IF([ENABLE_REST],
[
AC_CHECK_TYPES([enum MHD_Result],
[],
[],
[#include <microhttpd.h>])
])
AC_CHECK_LIB([websockets],
[lws_create_vhost],
[
AS_IF([test "x$enable_websockets" != "xno"],
[
AC_DEFINE(HAVE_WEBSOCKETS)
WS_MANUAL_LIBS="-lwebsockets"
enable_websockets=yes
AC_CHECK_LIB([websockets],
[lws_get_peer_simple],
[AC_DEFINE(HAVE_LIBWEBSOCKETS_PEER_SIMPLE)]
)
])
AS_IF([test "x$enable_websockets_event_handler" != "xno"],
[
AC_DEFINE(HAVE_WSEVH)
WS_MANUAL_LIBS="-lwebsockets"
enable_websockets_event_handler=yes
])
],
[
AS_IF([test "x$enable_websockets" = "xyes"],
[AC_MSG_ERROR([libwebsockets not found. See README.md for installation instructions or use --disable-websockets])])
])
AM_CONDITIONAL([ENABLE_WEBSOCKETS], [test "x$enable_websockets" = "xyes"])
AM_CONDITIONAL([ENABLE_WSEVH], [test "x$enable_websockets_event_handler" = "xyes"])
AC_SUBST(WS_MANUAL_LIBS)
AC_CHECK_LIB([rabbitmq],
[amqp_error_string2],
[
AS_IF([test "x$enable_rabbitmq" != "xno"],
[
AC_DEFINE(HAVE_RABBITMQ)
enable_rabbitmq=yes
])
AS_IF([test "x$enable_rabbitmq_event_handler" != "xno"],
[
AC_DEFINE(HAVE_RABBITMQEVH)
enable_rabbitmq_event_handler=yes
])
AC_CHECK_HEADERS([rabbitmq-c/amqp.h])
],
[
AS_IF([test "x$enable_rabbitmq" = "xyes"],
[AC_MSG_ERROR([rabbitmq-c not found. See README.md for installation instructions or use --disable-rabbitmq])])
AS_IF([test "x$enable_rabbitmq_event_handler" = "xyes"],
[AC_MSG_ERROR([rabbitmq-c not found. See README.md for installation instructions or use --disable-rabbitmq-event-handler])])
])
AC_CHECK_LIB([paho-mqtt3a],
[MQTTAsync_create],
[
AS_IF([test "x$enable_mqtt" != "xno"],
[
AC_DEFINE(HAVE_MQTT)
enable_mqtt=yes
])
AS_IF([test "x$enable_mqtt_event_handler" != "xno"],
[
AC_DEFINE(HAVE_MQTTEVH)
enable_mqtt_event_handler=yes
])
],
[
AS_IF([test "x$enable_mqtt" = "xyes"],
[AC_MSG_ERROR([paho c client not found. See README.md for installation instructions or use --disable-mqtt])])
AS_IF([test "x$enable_mqtt_event_handler" = "xyes"],
[AC_MSG_ERROR([paho c not found. See README.md for installation instructions or use --disable-mqtt-event-handler])])
])
AC_CHECK_LIB([nanomsg],
[nn_socket],
[
AS_IF([test "x$enable_nanomsg" != "xno"],
[
AC_DEFINE(HAVE_NANOMSG)
enable_nanomsg=yes
])
AS_IF([test "x$enable_nanomsg_event_handler" != "xno"],
[
AC_DEFINE(HAVE_NANOMSGEVH)
enable_nanomsg_event_handler=yes
])
],
[
AS_IF([test "x$enable_nanomsg" = "xyes"],
[AC_MSG_ERROR([nanomsg not found. See README.md for installation instructions or use --disable-nanomsg])])
AS_IF([test "x$enable_nanomsg_event_handler" = "xyes"],
[AC_MSG_ERROR([nanomsg not found. See README.md for installation instructions or use --disable-nanomsg-event-handler])])
])
AM_CONDITIONAL([ENABLE_RABBITMQ], [test "x$enable_rabbitmq" = "xyes"])
AM_CONDITIONAL([ENABLE_RABBITMQEVH], [test "x$enable_rabbitmq_event_handler" = "xyes"])
AM_CONDITIONAL([ENABLE_MQTT], [test "x$enable_mqtt" = "xyes"])
AM_CONDITIONAL([ENABLE_MQTTEVH], [test "x$enable_mqtt_event_handler" = "xyes"])
AM_CONDITIONAL([ENABLE_NANOMSG], [test "x$enable_nanomsg" = "xyes"])
AM_CONDITIONAL([ENABLE_NANOMSGEVH], [test "x$enable_nanomsg_event_handler" = "xyes"])
AM_CONDITIONAL([ENABLE_GELFEVH], [test "x$enable_gelf_event_handler" = "xyes"])
AM_CONDITIONAL([ENABLE_JSONLOGGER], [test "x$enable_json_logger" = "xyes"])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/un.h>
void test() {
int pfd = socket(PF_UNIX, SOCK_SEQPACKET | SOCK_NONBLOCK, 0);
if(pfd < 0)
exit(1);
}]], [[]])],[
AS_IF([test "x$enable_unix_sockets" != "xno"],
[
AC_DEFINE(HAVE_PFUNIX)
enable_unix_sockets=yes
])
],[
AS_IF([test "x$enable_unix_sockets" = "xyes"],
[AC_MSG_ERROR([SOCK_SEQPACKET not defined in your OS. Use --disable-unix-sockets])])
])
AM_CONDITIONAL([ENABLE_PFUNIX], [test "x$enable_unix_sockets" = "xyes"])
AS_IF([test "x$enable_systemd_sockets" = "xyes"],
[PKG_CHECK_MODULES([LIBSYSTEMD],
[libsystemd],
[
AC_DEFINE(HAVE_LIBSYSTEMD)
],
[AC_MSG_ERROR([libsystemd not found. systemd unix domain socket service not supported])])
])
##
# Plugins
##
PKG_CHECK_MODULES([PLUGINS],
[
glib-2.0 >= $glib_version
jansson >= $jansson_version
])
AC_ARG_ENABLE([plugin-audiobridge],
[AS_HELP_STRING([--disable-plugin-audiobridge],
[Disable audiobridge plugin])],
[AS_IF([test "x$enable_plugin_audiobridge" != "xyes"],
[enable_plugin_audiobridge=no])],
[enable_plugin_audiobridge=maybe])
AC_ARG_ENABLE([plugin-duktape],
[AS_HELP_STRING([--enable-plugin-duktape],
[Enable duktape plugin])],
[AS_IF([test "x$enable_plugin_duktape" != "xyes"],
[enable_plugin_duktape=no])],
[enable_plugin_duktape=no])
AC_ARG_ENABLE([plugin-echotest],
[AS_HELP_STRING([--disable-plugin-echotest],
[Disable echotest plugin])],
[AS_IF([test "x$enable_plugin_echotest" != "xyes"],
[enable_plugin_echotest=no])],
[enable_plugin_echotest=yes])
AC_ARG_ENABLE([plugin-lua],
[AS_HELP_STRING([--enable-plugin-lua],
[Enable lua plugin])],
[AS_IF([test "x$enable_plugin_lua" != "xyes"],
[enable_plugin_lua=no])],
[enable_plugin_lua=no])
AC_ARG_ENABLE([plugin-recordplay],
[AS_HELP_STRING([--disable-plugin-recordplay],
[Disable record&play plugin])],
[AS_IF([test "x$enable_plugin_recordplay" != "xyes"],
[enable_plugin_recordplay=no])],
[enable_plugin_recordplay=yes])
AC_ARG_ENABLE([plugin-sip],
[AS_HELP_STRING([--disable-plugin-sip],
[Disable sip plugin])],
[AS_IF([test "x$enable_plugin_sip" != "xyes"],
[enable_plugin_sip=no])],
[enable_plugin_sip=maybe])
AC_ARG_ENABLE([plugin-nosip],
[AS_HELP_STRING([--disable-plugin-nosip],
[Disable nosip plugin])],
[AS_IF([test "x$enable_plugin_nosip" != "xyes"],
[enable_plugin_nosip=no])],
[enable_plugin_nosip=yes])
AC_ARG_ENABLE([plugin-streaming],
[AS_HELP_STRING([--disable-plugin-streaming],
[Disable streaming plugin])],
[AS_IF([test "x$enable_plugin_streaming" != "xyes"],
[enable_plugin_streaming=no])],
[enable_plugin_streaming=yes])
AC_ARG_ENABLE([plugin-textroom],
[AS_HELP_STRING([--disable-plugin-textroom],
[Disable textroom plugin])],
[AS_IF([test "x$enable_plugin_textroom" != "xyes"],
[enable_plugin_textroom=no])],
[enable_plugin_textroom=yes])
AC_ARG_ENABLE([plugin-videocall],
[AS_HELP_STRING([--disable-plugin-videocall],
[Disable videocall plugin])],
[AS_IF([test "x$enable_plugin_videocall" != "xyes"],
[enable_plugin_videocall=no])],
[enable_plugin_videocall=yes])
AC_ARG_ENABLE([plugin-videoroom],
[AS_HELP_STRING([--disable-plugin-videoroom],
[Disable videoroom plugin])],
[AS_IF([test "x$enable_plugin_videoroom" != "xyes"],
[enable_plugin_videoroom=no])],
[enable_plugin_videoroom=yes])
AC_ARG_ENABLE([plugin-voicemail],
[AS_HELP_STRING([--disable-plugin-voicemail],
[Disable voicemail plugin])],
[AS_IF([test "x$enable_plugin_voicemail" != "xyes"],
[enable_plugin_voicemail=no])],
[enable_plugin_voicemail=maybe])
PKG_CHECK_MODULES([SOFIA],
[sofia-sip-ua],
[
AS_IF([test "x$enable_plugin_sip" = "xmaybe"],
[enable_plugin_sip=yes])
],
[
AS_IF([test "x$enable_plugin_sip" = "xyes"],
[AC_MSG_ERROR([sofia-sip-ua not found. See README.md for installation instructions or use --disable-plugin-sip])])
])
AC_SUBST([SOFIA_CFLAGS])
AC_SUBST([SOFIA_LIBS])
PKG_CHECK_MODULES([OPUS],
[opus],
[
AS_IF([test "x$enable_plugin_audiobridge" = "xmaybe"],
[enable_plugin_audiobridge=yes])
],
[
AS_IF([test "x$enable_plugin_audiobridge" = "xyes"],
[AC_MSG_ERROR([libopus not found. See README.md for installation instructions or use --disable-plugin-audiobridge])])
])
AC_SUBST([OPUS_CFLAGS])
AC_SUBST([OPUS_LIBS])
PKG_CHECK_MODULES([OGG],
[ogg],
[
AC_DEFINE(HAVE_LIBOGG)
AS_IF([test "x$enable_plugin_voicemail" = "xmaybe"],
[enable_plugin_voicemail=yes])
],
[
AS_IF([test "x$enable_plugin_voicemail" = "xyes"],
[AC_MSG_ERROR([libogg not found. See README.md for installation instructions or use --disable-plugin-voicemail])])
])
AC_SUBST([OGG_CFLAGS])
AC_SUBST([OGG_LIBS])
PKG_CHECK_MODULES([LUA],
[lua],
[
AS_IF([test "x$enable_plugin_lua" = "xmaybe"],
[enable_plugin_lua=yes])
],
[PKG_CHECK_MODULES([LUA],
[lua5.3],
[
AS_IF([test "x$enable_plugin_lua" = "xmaybe"],
[enable_plugin_lua=yes])
],
[
AS_IF([test "x$enable_plugin_lua" = "xyes"],
[AC_MSG_ERROR([lua-libs not found. See README.md for installation instructions or use --disable-plugin-lua])])
])
])
AC_SUBST([LUA_CFLAGS])
AC_SUBST([LUA_LIBS])
PKG_CHECK_MODULES([DUKTAPE],
[duktape],
[
AS_IF([test "x$enable_plugin_duktape" = "xmaybe"],
[enable_plugin_duktape=yes])
],
[
AS_IF([test "x$enable_plugin_duktape" = "xyes"],
[AC_MSG_ERROR([duktape not found. See README.md for installation instructions or use --disable-plugin-duktape])])
])
AC_SUBST([DUKTAPE_CFLAGS])
AC_SUBST([DUKTAPE_LIBS])
AM_CONDITIONAL([ENABLE_PLUGIN_AUDIOBRIDGE], [test "x$enable_plugin_audiobridge" = "xyes"])
AM_CONDITIONAL([ENABLE_PLUGIN_DUKTAPE], [test "x$enable_plugin_duktape" = "xyes"])
AM_CONDITIONAL([ENABLE_PLUGIN_ECHOTEST], [test "x$enable_plugin_echotest" = "xyes"])
AM_CONDITIONAL([ENABLE_PLUGIN_LUA], [test "x$enable_plugin_lua" = "xyes"])
AM_CONDITIONAL([ENABLE_PLUGIN_RECORDPLAY], [test "x$enable_plugin_recordplay" = "xyes"])
AM_CONDITIONAL([ENABLE_PLUGIN_SIP], [test "x$enable_plugin_sip" = "xyes"])
AM_CONDITIONAL([ENABLE_PLUGIN_NOSIP], [test "x$enable_plugin_nosip" = "xyes"])
AM_CONDITIONAL([ENABLE_PLUGIN_STREAMING], [test "x$enable_plugin_streaming" = "xyes"])
AM_CONDITIONAL([ENABLE_PLUGIN_VIDEOCALL], [test "x$enable_plugin_videocall" = "xyes"])
AM_CONDITIONAL([ENABLE_PLUGIN_VIDEOROOM], [test "x$enable_plugin_videoroom" = "xyes"])
AM_CONDITIONAL([ENABLE_PLUGIN_VOICEMAIL], [test "x$enable_plugin_voicemail" = "xyes"])
AM_CONDITIONAL([ENABLE_PLUGIN_TEXTROOM], [test "x$enable_plugin_textroom" = "xyes"])
##
# Event handlers
##
PKG_CHECK_MODULES([EVENTS],
[
glib-2.0 >= $glib_version
jansson >= $jansson_version
])
##
# Loggers
##
PKG_CHECK_MODULES([LOGGERS],
[
glib-2.0 >= $glib_version
jansson >= $jansson_version
])
##
# JavaScript modules
##
AC_ARG_ENABLE([javascript-es-module],
[AS_HELP_STRING([--enable-javascript-es-module],
[Generate an ECMAScript style module from janus.js])],
[AS_IF([test "x$enable_javascript_es_module" = "xyes"],
[enable_javascript_es_module=yes])],
[enable_javascript_es_module=no])
AM_CONDITIONAL([ENABLE_JAVASCRIPT_ES_MODULE], [test "x$enable_javascript_es_module" = "xyes" ])
AC_ARG_ENABLE([javascript-umd-module],
[AS_HELP_STRING([--enable-javascript-umd-module],
[Generate an UMD style module from janus.js])],
[AS_IF([test "x$enable_javascript_umd_module" = "xyes"],
[enable_javascript_umd_module=yes])],
[enable_javascript_umd_module=no])
AM_CONDITIONAL([ENABLE_JAVASCRIPT_UMD_MODULE], [test "x$enable_javascript_umd_module" = "xyes" ])
AC_ARG_ENABLE([javascript-iife-module],
[AS_HELP_STRING([--enable-javascript-iife-module],
[Generate an IIFE style wrapper around janus.js])],
[AS_IF([test "x$enable_javascript_iife_module" = "xyes"],
[enable_javascript_iife_module=yes])],
[enable_javascript_iife_module=no])
AM_CONDITIONAL([ENABLE_JAVASCRIPT_IIFE_MODULE], [test "x$enable_javascript_iife_module" = "xyes" ])
AC_ARG_ENABLE([javascript-common-js-module],
[AS_HELP_STRING([--enable-javascript-common-js-module],
[Generate an CommonJS style module from janus.js])],
[AS_IF([test "x$enable_javascript_common_js_module" = "xyes"],
[enable_javascript_common_js_module=yes])],
[enable_javascript_common_js_module=no])
AM_CONDITIONAL([ENABLE_JAVASCRIPT_COMMON_JS_MODULE], [test "x$enable_javascript_common_js_module" = "xyes" ])
case "-${enable_javascript_common_js_module}-${enable_javascript_iife_module}-${enable_javascript_umd_module}-${enable_javascript_es_module}-" in
*-yes*)
AM_CONDITIONAL([ENABLE_JAVASCRIPT_MODULES], true)
;;
*)
AM_CONDITIONAL([ENABLE_JAVASCRIPT_MODULES], false)
;;
esac
##
# Post-processing
##
AC_ARG_ENABLE([post-processing],
[AS_HELP_STRING([--enable-post-processing],
[Enable building post-processing utility])],
[],
[enable_post_processing=no])
AS_IF([test "x$enable_post_processing" = "xyes"],
[PKG_CHECK_MODULES([POST_PROCESSING],
[
glib-2.0 >= $glib_version
jansson >= $jansson_version
libssl >= $ssl_version
libcrypto
libavutil
libavcodec
libavformat
ogg
zlib
])
])
PKG_CHECK_MODULES([PCAP],
[libpcap],
[
AC_DEFINE(HAVE_LIBPCAP)
enable_pcap2mjr=yes
],
[
enable_pcap2mjr=no
])
AC_SUBST([PCAP_CFLAGS])
AC_SUBST([PCAP_LIBS])
AM_CONDITIONAL([WITH_SOURCE_DATE_EPOCH], [test "x$SOURCE_DATE_EPOCH" != "x"])
AM_CONDITIONAL([ENABLE_POST_PROCESSING], [test "x$enable_post_processing" = "xyes"])
AM_CONDITIONAL([ENABLE_PCAP2MJR], [test "x$enable_pcap2mjr" = "xyes"])
AC_CONFIG_FILES([
Makefile
src/Makefile
html/Makefile
docs/Makefile
])
JANUS_MANUAL_LIBS+=" -pthread"
AC_OUTPUT
##
# Summary
##
echo
echo "Compiler: $CC"
AM_COND_IF([ENABLE_LIBSRTP_2],
[echo "libsrtp version: 2.x"],
[echo "libsrtp version: 1.5.x"])
AM_COND_IF([ENABLE_BORINGSSL],
[echo "SSL/crypto library: BoringSSL"
AM_COND_IF([ENABLE_DTLS_SETTIMEOUT],
[echo "DTLS set-timeout: yes"],
[echo "DTLS set-timeout: no"])
],
[AM_COND_IF([LIBRESSL_DETECTED],
[echo "SSL/crypto library: LibreSSL"],
[echo "SSL/crypto library: OpenSSL"])
echo "DTLS set-timeout: not available"])
AM_COND_IF([ENABLE_PTHREAD_MUTEX],
[echo "Mutex implementation: pthread mutex"],
[echo "Mutex implementation: GMutex (native futex on Linux)"])
AM_COND_IF([ENABLE_SCTP],
[echo "DataChannels support: yes"],
[echo "DataChannels support: no"])
AM_COND_IF([ENABLE_POST_PROCESSING],
[echo "Recordings post-processor: yes"],
[echo "Recordings post-processor: no"])
AM_COND_IF([ENABLE_TURN_REST_API],
[echo "TURN REST API client: yes"],
[echo "TURN REST API client: no"])
AM_COND_IF([ENABLE_DOCS],
[echo "Doxygen documentation: yes"],
[echo "Doxygen documentation: no"])
echo "Transports:"
AM_COND_IF([ENABLE_REST],
[echo " REST (HTTP/HTTPS): yes"],
[echo " REST (HTTP/HTTPS): no"])
AM_COND_IF([ENABLE_WEBSOCKETS],
[echo " WebSockets: yes"],
[echo " WebSockets: no"])
AM_COND_IF([ENABLE_RABBITMQ],
[echo " RabbitMQ: yes"],
[echo " RabbitMQ: no"])
AM_COND_IF([ENABLE_MQTT],
[echo " MQTT: yes"],
[echo " MQTT: no"])
AM_COND_IF([ENABLE_PFUNIX],
[echo " Unix Sockets: yes"],
[echo " Unix Sockets: no"])
AM_COND_IF([ENABLE_NANOMSG],
[echo " Nanomsg: yes"],
[echo " Nanomsg: no"])
echo "Plugins:"
AM_COND_IF([ENABLE_PLUGIN_ECHOTEST],
[echo " Echo Test: yes"],
[echo " Echo Test: no"])
AM_COND_IF([ENABLE_PLUGIN_STREAMING],
[echo " Streaming: yes"],
[echo " Streaming: no"])
AM_COND_IF([ENABLE_PLUGIN_VIDEOCALL],
[echo " Video Call: yes"],
[echo " Video Call: no"])
AM_COND_IF([ENABLE_PLUGIN_SIP],
[echo " SIP Gateway: yes"],
[echo " SIP Gateway: no"])
AM_COND_IF([ENABLE_PLUGIN_NOSIP],
[echo " NoSIP (RTP Bridge): yes"],
[echo " NoSIP (RTP Bridge): no"])
AM_COND_IF([ENABLE_PLUGIN_AUDIOBRIDGE],
[echo " Audio Bridge: yes"],
[echo " Audio Bridge: no"])
AM_COND_IF([ENABLE_PLUGIN_VIDEOROOM],
[echo " Video Room: yes"],
[echo " Video Room: no"])
AM_COND_IF([ENABLE_PLUGIN_VOICEMAIL],
[echo " Voice Mail: yes"],
[echo " Voice Mail: no"])
AM_COND_IF([ENABLE_PLUGIN_RECORDPLAY],
[echo " Record&Play: yes"],
[echo " Record&Play: no"])
AM_COND_IF([ENABLE_PLUGIN_TEXTROOM],
[echo " Text Room: yes"],
[echo " Text Room: no"])
AM_COND_IF([ENABLE_PLUGIN_LUA],
[echo " Lua Interpreter: yes"],
[echo " Lua Interpreter: no"])
AM_COND_IF([ENABLE_PLUGIN_DUKTAPE],
[echo " Duktape Interpreter: yes"],
[echo " Duktape Interpreter: no"])
echo "Event handlers:"
AM_COND_IF([ENABLE_SAMPLEEVH],
[echo " Sample event handler: yes"],
[echo " Sample event handler: no"])
AM_COND_IF([ENABLE_WSEVH],
[echo " WebSocket ev. handler: yes"],
[echo " WebSocket ev. handler: no"])
AM_COND_IF([ENABLE_RABBITMQEVH],
[echo " RabbitMQ event handler:yes"],
[echo " RabbitMQ event handler:no"])
AM_COND_IF([ENABLE_MQTTEVH],
[echo " MQTT event handler: yes"],
[echo " MQTT event handler: no"])
AM_COND_IF([ENABLE_NANOMSGEVH],
[echo " Nanomsg event handler: yes"],
[echo " Nanomsg event handler: no"])
AM_COND_IF([ENABLE_GELFEVH],
[echo " GELF event handler: yes"],
[echo " GELF event handler: no"])
echo "External loggers:"
AM_COND_IF([ENABLE_JSONLOGGER],
[echo " JSON file logger: yes"],
[echo " JSON file logger: no"])
AM_COND_IF([ENABLE_JAVASCRIPT_MODULES], [
echo "JavaScript modules: yes"
AM_COND_IF([ENABLE_JAVASCRIPT_ES_MODULE],
[echo " ES syntax: yes"],
[echo " ES syntax: no"])
AM_COND_IF([ENABLE_JAVASCRIPT_IIFE_MODULE],
[echo " IIFE syntax: yes"],
[echo " IIFE syntax: no"])
AM_COND_IF([ENABLE_JAVASCRIPT_UMD_MODULE],
[echo " UMD syntax: yes"],
[echo " UMD syntax: no"])
AM_COND_IF([ENABLE_JAVASCRIPT_COMMON_JS_MODULE],
[echo " CommonJS syntax: yes"],
[echo " CommonJS syntax: no"])
],
[echo "JavaScript modules: no"])
echo
echo "If this configuration is ok for you, do a 'make' to start building Janus. A 'make install' will install Janus and its plugins to the specified prefix. Finally, a 'make configs' will install some sample configuration files too (something you'll only want to do the first time, though)."
echo
|