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 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666
|
# Process this file with autoconf to produce a configure script.
AC_INIT(Qtractor, 0.9.20, rncbc@rncbc.org, qtractor)
AC_CONFIG_SRCDIR(src/qtractor.cpp)
AC_CONFIG_HEADERS(src/config.h)
AC_CONFIG_FILES(Makefile qtractor.spec src/src.pri)
AC_CONFIG_FILES(src/qtractor_plugin_scan.pri)
# Build version string.
AC_CACHE_VAL([ac_cv_build_version], [
ac_cv_build_version=$(git describe --tags --dirty --abbrev=6 2>/dev/null)
if test -n "$ac_cv_build_version"; then
ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/^[[^0-9]]\+//')
ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/-g/git./')
ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/[[_|-]]\+/./g')
ac_cv_build_version_extra=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
if test "x$ac_cv_build_version_extra" != "xmaster"; then
ac_cv_build_version="$ac_cv_build_version [[$ac_cv_build_version_extra]]"
fi
else
ac_cv_build_version=$PACKAGE_VERSION
fi
])
ac_build_version="$ac_cv_build_version"
AC_DEFINE_UNQUOTED(CONFIG_BUILD_VERSION, ["$ac_build_version"], [Build version string.])
# Sanitized version string.
AC_CACHE_VAL([ac_cv_version], [
ac_cv_version=$(echo $PACKAGE_VERSION | sed -r 's/^([[0-9|\.]]+).*$/\1/')
])
ac_version="$ac_cv_version"
AC_DEFINE_UNQUOTED(CONFIG_VERSION, ["$ac_version"], [Version string.])
AC_SUBST(ac_version)
# Set default installation prefix.
AC_PREFIX_DEFAULT(/usr/local)
if test "x$prefix" = "xNONE"; then
prefix=$ac_default_prefix
fi
if test "x$exec_prefix" = "xNONE"; then
exec_prefix=$prefix
fi
eval ac_prefix=$prefix
AC_SUBST(ac_prefix)
AC_DEFINE_UNQUOTED(CONFIG_PREFIX, ["$ac_prefix"], [Default installation prefix.])
# Set default installation directories.
eval ac_bindir=$bindir
AC_SUBST(ac_bindir)
AC_DEFINE_UNQUOTED(CONFIG_BINDIR, ["$ac_bindir"], [Default executable binary path.])
eval ac_libdir=$libdir
AC_SUBST(ac_libdir)
AC_DEFINE_UNQUOTED(CONFIG_LIBDIR, ["$ac_libdir"], [Default object library path.])
eval datarootdir=$datarootdir
eval ac_datadir=$datadir
AC_SUBST(ac_datadir)
AC_DEFINE_UNQUOTED(CONFIG_DATADIR, ["$ac_datadir"], [Default arch-idependent data path.])
eval ac_mandir=$mandir
AC_SUBST(ac_mandir)
AC_DEFINE_UNQUOTED(CONFIG_MANDIR, ["$ac_mandir"], [Default man page path.])
# Enable debugging argument option.
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug], [enable debugging (default=no)]),
[ac_debug="$enableval"])
if test "x$ac_debug" = "xyes"; then
AC_DEFINE(CONFIG_DEBUG, 1, [Define if debugging is enabled.])
ac_stacktrace="yes"
ac_debug="debug"
else
ac_stacktrace="no"
ac_debug="release"
fi
AC_SUBST(ac_debug)
# Enable libvorbis(file) availability.
AC_ARG_ENABLE(libvorbis,
AS_HELP_STRING([--enable-libvorbis], [enable libvorbis interface (default=yes)]),
[ac_libvorbis="$enableval"],
[ac_libvorbis="yes"])
# Enable libmad availability.
AC_ARG_ENABLE(libmad,
AS_HELP_STRING([--enable-libmad], [enable libmad interface (default=yes)]),
[ac_libmad="$enableval"],
[ac_libmad="yes"])
# Enable libsamplerate availability.
AC_ARG_ENABLE(libsamplerate,
AS_HELP_STRING([--enable-libsamplerate], [enable libsamplerate interface (default=yes)]),
[ac_libsamplerate="$enableval"],
[ac_libsamplerate="yes"])
# Enable librubberband availability.
AC_ARG_ENABLE(librubberband,
AS_HELP_STRING([--enable-librubberband], [enable librubberband interface (default=yes)]),
[ac_librubberband="$enableval"],
[ac_librubberband="yes"])
# Enable libaudio support.
AC_ARG_ENABLE(libaubio,
AS_HELP_STRING([--enable-libaubio], [enable libaubio interface support (default=yes)]),
[ac_libaubio="$enableval"],
[ac_libaubio="yes"])
# Enable liblo availability.
AC_ARG_ENABLE(liblo,
AS_HELP_STRING([--enable-liblo], [enable liblo interface (default=yes)]),
[ac_liblo="$enableval"],
[ac_liblo="yes"])
# Enable libz availability.
AC_ARG_ENABLE(libz,
AS_HELP_STRING([--enable-libz], [enable libz interface (default=yes)]),
[ac_libz="$enableval"],
[ac_libz="yes"])
# Enable LILV support.
AC_ARG_ENABLE(liblilv,
AS_HELP_STRING([--enable-liblilv], [enable LILV interface support (default=yes)]),
[ac_liblilv="$enableval"],
[ac_liblilv="yes"])
# Enable SUIL support.
AC_ARG_ENABLE(libsuil,
AS_HELP_STRING([--enable-libsuil], [enable SUIL interface support (default=yes)]),
[ac_libsuil="$enableval"],
[ac_libsuil="yes"])
# Enable SSE optimization.
AC_ARG_ENABLE(sse,
AS_HELP_STRING([--enable-sse], [enable SSE optimization (default=yes)]),
[ac_sse="$enableval"],
[ac_sse="yes"])
# Enable LADSPA support.
AC_ARG_ENABLE(ladspa,
AS_HELP_STRING([--enable-ladspa], [enable LADSPA plug-in support (default=yes)]),
[ac_ladspa="$enableval"],
[ac_ladspa="yes"])
# Enable DSSI support.
AC_ARG_ENABLE(dssi,
AS_HELP_STRING([--enable-dssi], [enable DSSI plug-in support (default=yes)]),
[ac_dssi="$enableval"],
[ac_dssi="yes"])
# Enable VST support.
AC_ARG_ENABLE(vst,
AS_HELP_STRING([--enable-vst], [enable VST plug-in support (default=yes)]),
[ac_vst="$enableval"],
[ac_vst="yes"])
# Enable VST3 support.
AC_ARG_ENABLE(vst3,
AS_HELP_STRING([--enable-vst3], [enable VST3 plug-in support (default=yes)]),
[ac_vst3="$enableval"],
[ac_vst3="yes"])
AC_ARG_ENABLE(vestige,
AS_HELP_STRING([--enable-vestige], [enable VeSTige header support (default=yes)]),
[ac_vestige="$enableval"],
[ac_vestige="yes"])
# Enable LV2 support.
AC_ARG_ENABLE(lv2,
AS_HELP_STRING([--enable-lv2], [enable LV2 plug-in support (default=yes)]),
[ac_lv2="$enableval"],
[ac_lv2="yes"])
AC_ARG_ENABLE(lv2-event,
AS_HELP_STRING([--enable-lv2-event], [enable LV2 plug-in MIDI/Event support (default=no)]),
[ac_lv2_event="$enableval"],
[ac_lv2_event="no"])
AC_ARG_ENABLE(lv2-atom,
AS_HELP_STRING([--enable-lv2-atom], [enable LV2 plug-in MIDI/Atom support (default=yes)]),
[ac_lv2_atom="$enableval"],
[ac_lv2_atom="yes"])
AC_ARG_ENABLE(lv2-cvport,
AC_HELP_STRING([--enable-lv2-cvport], [enable LV2 plug-in CVPort support (DUMMY) (default=yes)]),
[ac_lv2_cvport="$enableval"],
[ac_lv2_cvport="yes"])
AC_ARG_ENABLE(lv2-worker,
AS_HELP_STRING([--enable-lv2-worker], [enable LV2 plug-in Worker/schedule support (default=yes)]),
[ac_lv2_worker="$enableval"],
[ac_lv2_worker="yes"])
AC_ARG_ENABLE(lv2-ui,
AS_HELP_STRING([--enable-lv2-ui], [enable LV2 plug-in UI support (default=yes)]),
[ac_lv2_ui="$enableval"],
[ac_lv2_ui="yes"])
AC_ARG_ENABLE(lv2-external-ui,
AS_HELP_STRING([--enable-lv2-external-ui], [enable LV2 plug-in External UI support (default=yes)]),
[ac_lv2_external_ui="$enableval"],
[ac_lv2_external_ui="yes"])
AC_ARG_ENABLE(lv2-state,
AS_HELP_STRING([--enable-lv2-state], [enable LV2 plug-in State support (default=yes)]),
[ac_lv2_state="$enableval"],
[ac_lv2_state="yes"])
AC_ARG_ENABLE(lv2-state-files,
AS_HELP_STRING([--enable-lv2-state-files], [enable LV2 plug-in State Files support (default=yes)]),
[ac_lv2_state_files="$enableval"],
[ac_lv2_state_files="yes"])
AC_ARG_ENABLE(lv2-state-make-path,
AS_HELP_STRING([--enable-lv2-state-make-path], [enable LV2 plug-in State Make Path support (default=no)]),
[ac_lv2_state_make_path="$enableval"],
[ac_lv2_state_make_path="no"])
AC_ARG_ENABLE(lv2-programs,
AS_HELP_STRING([--enable-lv2-programs], [enable LV2 plug-in Programs support (default=yes)]),
[ac_lv2_programs="$enableval"],
[ac_lv2_programs="yes"])
AC_ARG_ENABLE(lv2-midnam,
AS_HELP_STRING([--enable-lv2-midnam], [enable LV2 plug-in MIDNAM support (default=yes)]),
[ac_lv2_midnam="$enableval"],
[ac_lv2_midnam="yes"])
AC_ARG_ENABLE(lv2-presets,
AS_HELP_STRING([--enable-lv2-presets], [enable LV2 plug-in Presets support (default=yes)]),
[ac_lv2_presets="$enableval"],
[ac_lv2_presets="yes"])
AC_ARG_ENABLE(lv2-patch,
AS_HELP_STRING([--enable-lv2-patch], [enable LV2 plug-in Patch support (default=yes)]),
[ac_lv2_patch="$enableval"],
[ac_lv2_patch="yes"])
AC_ARG_ENABLE(lv2-port-event,
AS_HELP_STRING([--enable-lv2-port-event], [enable LV2 plug-in Port-event support (EXPERIMENTAL) (default=yes)]),
[ac_lv2_port_event="$enableval"],
[ac_lv2_port_event="yes"])
AC_ARG_ENABLE(lv2-time,
AS_HELP_STRING([--enable-lv2-time], [enable LV2 plug-in Time support (default=yes)]),
[ac_lv2_time="$enableval"],
[ac_lv2_time="yes"])
AC_ARG_ENABLE(lv2-time-position,
AS_HELP_STRING([--enable-lv2-time-position], [enable LV2 plug-in Time/position support (default=yes)]),
[ac_lv2_time_position="$enableval"],
[ac_lv2_time_position="yes"])
AC_ARG_ENABLE(lv2-options,
AS_HELP_STRING([--enable-lv2-options], [enable LV2 plug-in Options support (default=yes)]),
[ac_lv2_options="$enableval"],
[ac_lv2_options="yes"])
AC_ARG_ENABLE(lv2-buf-size,
AS_HELP_STRING([--enable-lv2-buf-size], [enable LV2 plug-in Buf-size support (default=yes)]),
[ac_lv2_buf_size="$enableval"],
[ac_lv2_buf_size="yes"])
AC_ARG_ENABLE(lv2-parameters,
AS_HELP_STRING([--enable-lv2-parameters], [enable LV2 plug-in Parameters support (default=yes)]),
[ac_lv2_parameters="$enableval"],
[ac_lv2_parameters="yes"])
AC_ARG_ENABLE(lv2-ui-touch,
AS_HELP_STRING([--enable-lv2-ui-touch], [enable LV2 plug-in UI Touch interface support (default=yes)]),
[ac_lv2_ui_touch="$enableval"],
[ac_lv2_ui_touch="yes"])
AC_ARG_ENABLE(lv2-ui-req-value,
AS_HELP_STRING([--enable-lv2-ui-req-value], [enable LV2 plug-in UI Request-value support (default=yes)]),
[ac_lv2_ui_req_value="$enableval"],
[ac_lv2_ui_req_value="yes"])
AC_ARG_ENABLE(lv2-ui-idle,
AS_HELP_STRING([--enable-lv2-ui-idle], [enable LV2 plug-in UI Idle interface support (default=yes)]),
[ac_lv2_ui_idle="$enableval"],
[ac_lv2_ui_idle="yes"])
AC_ARG_ENABLE(lv2-ui-show,
AS_HELP_STRING([--enable-lv2-ui-show], [enable LV2 plug-in UI Show interface support (default=yes)]),
[ac_lv2_ui_show="$enableval"],
[ac_lv2_ui_show="yes"])
AC_ARG_ENABLE(lv2-ui-gtk2,
AS_HELP_STRING([--enable-lv2-ui-gtk2], [enable LV2 plug-in UI GTK2 native support (default=yes)]),
[ac_lv2_ui_gtk2="$enableval"],
[ac_lv2_ui_gtk2="yes"])
AC_ARG_ENABLE(lv2-ui-x11,
AS_HELP_STRING([--enable-lv2-ui-x11], [enable LV2 plug-in UI X11 native support (default=yes)]),
[ac_lv2_ui_x11="$enableval"],
[ac_lv2_ui_x11="yes"])
# Enable JACK session support.
AC_ARG_ENABLE(jack-session,
AS_HELP_STRING([--enable-jack-session], [enable JACK session support (default=yes)]),
[ac_jack_session="$enableval"],
[ac_jack_session="yes"])
# Enable JACK latency support.
AC_ARG_ENABLE(jack-latency,
AS_HELP_STRING([--enable-jack-latency], [enable JACK latency support (default=yes)]),
[ac_jack_latency="$enableval"],
[ac_jack_latency="yes"])
# Enable JACK metadata support.
AC_ARG_ENABLE(jack_metadata,
AS_HELP_STRING([--enable-jack-metadata], [enable JACK metadata support (default=yes)]),
[ac_jack_metadata="$enableval"],
[ac_jack_metadata="yes"])
# Enable NSM support.
AC_ARG_ENABLE(nsm,
AS_HELP_STRING([--enable-nsm], [enable NSM support (default=yes)]),
[ac_nsm="$enableval"],
[ac_nsm="yes"])
# Enable unique/single instance.
AC_ARG_ENABLE(xunique,
AS_HELP_STRING([--enable-xunique], [enable unique/single instance (default=no)]),
[ac_xunique="$enableval"],
[ac_xunique="no"])
# Enable gradient eye-candy.
AC_ARG_ENABLE(gradient,
AS_HELP_STRING([--enable-gradient], [enable gradient eye-candy (default=yes)]),
[ac_gradient="$enableval"],
[ac_gradient="yes"])
# Enable debugger stack-trace option (assumes --enable-debug).
AC_ARG_ENABLE(stacktrace,
AS_HELP_STRING([--enable-stacktrace], [enable debugger stack-trace (default=no)]),
[ac_stacktrace="$enableval"])
# Standard installation base dirs.
ac_path=$PATH
ac_pkg_config_path=$PKG_CONFIG_PATH
ac_with_paths=""
# Set for alternate Qt installation dir.
AC_ARG_WITH(qt,
AS_HELP_STRING([--with-qt=PATH], [use alternate Qt install path]),
[ac_qt_path="$withval"], [ac_qt_path="no"])
if test "x$ac_qt_path" != "xno"; then
ac_path="$ac_qt_path/bin:$ac_path"
ac_pkg_config_path="$ac_qt_path/lib/pkgconfig:$ac_pkg_config_path"
fi
# Set for alternate JACK installation dir.
AC_ARG_WITH(jack,
AS_HELP_STRING([--with-jack=PATH], [use alternate JACK install path]),
[ac_with_paths="$ac_with_paths $withval"])
# Set for alternate ALSA installation dir.
AC_ARG_WITH(alsa,
AS_HELP_STRING([--with-alsa=PATH], [use alternate ALSA install path]),
[ac_with_paths="$ac_with_paths $withval"])
# Set for alternate libsndfile installation dir.
AC_ARG_WITH(libsndfile,
AS_HELP_STRING([--with-libsndfile=PATH], [use alternate libsndfile path]),
[ac_with_paths="$ac_with_paths $withval"])
# Set for alternate libvorbis installation dir.
AC_ARG_WITH(libvorbis,
AS_HELP_STRING([--with-libvorbis=PATH], [use alternate libvorbis path]),
[ac_with_paths="$ac_with_paths $withval"])
# Set for alternate libmad installation dir.
AC_ARG_WITH(libmad,
AS_HELP_STRING([--with-libmad=PATH], [use alternate libmad path]),
[ac_with_paths="$ac_with_paths $withval"])
# Set for alternate libsamplerate installation dir.
AC_ARG_WITH(libsamplerate,
AS_HELP_STRING([--with-libsamplerate=PATH], [use alternate libsamplerate path]),
[ac_with_paths="$ac_with_paths $withval"])
# Set for alternate librubberband installation dir.
AC_ARG_WITH(librubberband,
AS_HELP_STRING([--with-librubberband=PATH], [use alternate librubberband path]),
[ac_with_paths="$ac_with_paths $withval"])
# Set for alternate libaubio installation dir.
AC_ARG_WITH(libaubio,
AS_HELP_STRING([--with-libaubio=PATH], [use alternate libaubio path]),
[ac_with_paths="$ac_with_paths $withval"])
# Set for alternate liblo installation dir.
AC_ARG_WITH(liblo,
AS_HELP_STRING([--with-liblo=PATH], [use alternate liblo path]),
[ac_with_paths="$ac_with_paths $withval"])
# Set for alternate libz installation dir.
AC_ARG_WITH(libz,
AS_HELP_STRING([--with-libz=PATH], [use alternate libz path]),
[ac_with_paths="$ac_with_paths $withval"])
# Set for alternate liblilv installation dir.
AC_ARG_WITH(liblilv,
AS_HELP_STRING([--with-liblilv=PATH], [use alternate liblilv path]),
[ac_with_paths="$ac_with_paths $withval"])
# Set for alternate libsuil installation dir.
AC_ARG_WITH(libsuil,
AS_HELP_STRING([--with-libsuil=PATH], [use alternate libsuil path]),
[ac_with_paths="$ac_with_paths $withval"])
# Set for alternate LADSPA include dir.
AC_ARG_WITH(ladspa,
AS_HELP_STRING([--with-ladspa=PATH], [use alternate LADSPA header path]),
[ac_with_ladspa="$withval"])
# Set for alternate DSSI include dir.
AC_ARG_WITH(dssi,
AS_HELP_STRING([--with-dssi=PATH], [use alternate DSSI header path]),
[ac_with_dssi="$withval"])
# Set for alternate VST include dir.
AC_ARG_WITH(vst,
AS_HELP_STRING([--with-vst=PATH], [use alternate VST header path]),
[ac_with_vst="$withval"])
# Set for alternate VST3 SDK root dir.
AC_ARG_WITH(vst3,
AS_HELP_STRING([--with-vst3=PATH], [use alternate VST3 SDK path]),
[ac_with_vst3="$withval"])
# Set for alternate LV2 include dir.
AC_ARG_WITH(lv2,
AS_HELP_STRING([--with-lv2=PATH], [use alternate LV2 header path]),
[ac_with_lv2="$withval"])
# Honor user specified flags.
ac_cflags=$CFLAGS
ac_ldflags=$LDFLAGS
# Checks for programs.
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_CXXCPP
# Checks for languages.
AC_LANG_CPLUSPLUS
# Check for pkg-config.
PKG_PROG_PKG_CONFIG
# Check whether -std=c++11 support is necessary (4 < g++ version < 6).
AC_CACHE_CHECK([for g++ major version], [ac_cv_gxx_version_major], [
ac_cv_gxx_version_major=$($CC -dumpversion)
if test -n "$ac_cv_gxx_version_major"; then
ac_cv_gxx_version_major=$(echo $ac_cv_gxx_version_major | cut -d'.' -f1);
fi
ac_gxx_version_major=$(($ac_cv_gxx_version_major + 0))
])
ac_gxx_version_major=$ac_cv_gxx_version_major
if test $ac_gxx_version_major -ge 4 -a $ac_gxx_version_major -lt 6; then
CXXFLAGS="-std=c++11 $CXXFLAGS"
ac_cflags="-std=c++11 $ac_cflags"
elif test $ac_gxx_version_major -ge 6 -a $ac_gxx_version_major -lt 11; then
CXXFLAGS="-std=c++17 $CXXFLAGS"
ac_cflags="-std=c++17 $ac_cflags"
fi
# Check for proper flags.
ac_arch=$(uname -m)
# Check for install paths and alternatives...
ac_libdirs="lib"
if test "x$ac_arch" = "xx86_64"; then
ac_libdirs="$ac_libdirs lib64"
fi
CFLAGS="-fPIC $CFLAGS"
CPPFLAGS="-fPIC $CPPFLAGS"
# Prepend alternate dependencies paths.
for X in $ac_with_paths; do
if test -d $X/bin; then
ac_path="$X/bin:$ac_path"
fi
if test -d $X/include; then
CFLAGS="-I$X/include $CFLAGS "
CPPFLAGS="-I$X/include $CPPFLAGS"
ac_incpath="$X/include $ac_incpath"
fi
for Y in $ac_libdirs; do
if test -d $X/$Y; then
LIBS="-L$X/$Y $LIBS"
ac_libs="-L$X/$Y $ac_libs"
if test -d $X/$Y/pkgconfig; then
ac_pkg_config_path="$X/$Y/pkgconfig:$ac_pkg_config_path"
fi
fi
done
done
# Set pkg-config path.
if test -n "$ac_pkg_config_path"; then
export PKG_CONFIG_PATH=$ac_pkg_config_path
fi
# A common error message:
ac_errmsg="not found in current PATH. Maybe QT development environment isn't available."
# Check for qtchooser availability.
AC_PATH_TOOL(ac_qtchooser, qtchooser, [no], $ac_path)
if test -x $ac_qtchooser; then
export QT_SELECT=5
fi
# Check for proper qmake path/version alternatives.
AC_PATH_TOOL(ac_qmake, qmake, [no], $ac_path)
if test "x$ac_qmake" = "xno"; then
AC_PATH_TOOL(ac_cv_qmake, qmake-qt5, [no], $ac_path)
ac_qmake=$ac_cv_qmake
fi
if test "x$ac_qmake" = "xno"; then
AC_PATH_TOOL(ac_cv_qmake, qmake-qt6, [no], $ac_path)
ac_qmake=$ac_cv_qmake
fi
# Check for proper Qt major version.
AC_CACHE_CHECK([for Qt major version], [ac_cv_qt_version_major], [
ac_cv_qt_version_major=$($ac_qmake -query QT_VERSION | cut -d'.' -f1)
ac_cv_qt_version_major=$(($ac_cv_qt_version_major + 0))
])
ac_qt_version_major=$ac_cv_qt_version_major
if test "x$ac_qmake" = "xno"; then
if test $ac_qt_version_major -lt 6; then
AC_MSG_ERROR([qmake-qt5 $ac_errmsg (qt5-devel)])
else
AC_MSG_ERROR([qmake-qt6 $ac_errmsg (qt6-devel)])
fi
fi
# Check for proper Qt install path.
AC_CACHE_CHECK([for Qt install path], [ac_cv_qt_install_path], [
ac_cv_qt_install_path=$($ac_qmake -query QT_INSTALL_BINS)
])
ac_qt_install_path=$ac_cv_qt_install_path
if test -d $ac_qt_install_path; then
ac_path="$ac_qt_install_path:$ac_path"
fi
# Check it again, now with updated PATH, just in case...
AC_PATH_TOOL(ac_cv_qmake, qmake, [no], $ac_path)
ac_qmake=$ac_cv_qmake
if test "x$ac_qmake" = "xno"; then
AC_MSG_ERROR([qmake $ac_errmsg])
fi
AC_SUBST(ac_qmake)
AC_CACHE_CHECK([for Qt install headers], [ac_cv_qt_install_headers], [
ac_cv_qt_install_headers=$($ac_qmake -query QT_INSTALL_HEADERS)
])
ac_qt_install_headers=$ac_cv_qt_install_headers
if test -d $ac_qt_install_headers; then
CFLAGS="-I$ac_qt_install_headers $CFLAGS "
CPPFLAGS="-I$ac_qt_install_headers $CPPFLAGS"
ac_incpath="$ac_qt_install_headers $ac_incpath"
fi
AC_CACHE_CHECK([for Qt install libraries], [ac_cv_qt_install_libs], [
ac_cv_qt_install_libs=$($ac_qmake -query QT_INSTALL_LIBS)
])
ac_qt_install_libs=$ac_cv_qt_install_libs
if test -d $ac_qt_install_libs; then
LIBS="-L$ac_qt_install_libs $LIBS"
ac_libs="-L$ac_qt_install_libs $ac_libs"
fi
# Finally, check for proper Qt version.
AC_CACHE_CHECK([for Qt library version >= 5.1],
ac_cv_qtversion, [
AC_TRY_COMPILE([#include "QtCore/qglobal.h"], [
#if QT_VERSION < 0x050100
#error Qt library 5.1 or greater required.
#endif
], ac_cv_qtversion="yes", [
echo "no; Qt 5.1 or greater is required"
exit 1
])
])
# Check for Qt moc utility.
AC_PATH_TOOL(ac_moc, moc, [no], $ac_path)
if test "x$ac_moc" = "xno"; then
AC_MSG_ERROR([moc $ac_errmsg])
fi
AC_SUBST(ac_moc)
# Check for Qt uic utility.
AC_PATH_TOOL(ac_uic, uic, [no], $ac_path)
if test "x$ac_uic" = "xno"; then
AC_MSG_ERROR([uic $ac_errmsg])
fi
AC_SUBST(ac_uic)
# Check for Qt lupdate utility.
AC_PATH_TOOL(ac_lupdate, lupdate, [no], $ac_path)
if test "x$ac_lupdate" = "xno"; then
if test $ac_qt_version_major -lt 6; then
AC_PATH_TOOL(ac_cv_lupdate, lupdate-qt5, [no], $ac_path)
else
AC_PATH_TOOL(ac_cv_lupdate, lupdate-qt6, [no], $ac_path)
fi
if test "x$ac_cv_lupdate" = "xno"; then
if test $ac_qt_version_major -lt 6; then
AC_MSG_ERROR([lupdate $ac_errmsg (qt5-linguist)])
else
AC_MSG_ERROR([lupdate $ac_errmsg (qt6-linguist)])
fi
else
ac_lupdate=$ac_cv_lupdate;
fi
fi
AC_SUBST(ac_lupdate)
# Check for Qt lrelease utility.
AC_PATH_TOOL(ac_lrelease, lrelease, [no], $ac_path)
if test "x$ac_lrelease" = "xno"; then
if test $ac_qt_version_major -lt 6; then
AC_PATH_TOOL(ac_cv_lrelease, lrelease-qt5, [no], $ac_path)
else
AC_PATH_TOOL(ac_cv_lrelease, lrelease-qt6, [no], $ac_path)
fi
if test "x$ac_cv_lrelease" = "xno"; then
if test $ac_qt_version_major -lt 6; then
AC_MSG_ERROR([lrelease $ac_errmsg (qt5-linguist)])
else
AC_MSG_ERROR([lrelease $ac_errmsg (qt6-linguist)])
fi
else
ac_lrelease=$ac_cv_lrelease;
fi
fi
AC_SUBST(ac_lrelease)
# Check for IEEE 32bit float optimizations.
AC_CHECK_SIZEOF(float)
AC_CACHE_CHECK([for IEEE 32bit float optimizations],
ac_cv_float32, [
AS_IF([test "$ac_cv_sizeof_float" = 4], [ac_cv_float32="yes"], [ac_cv_float32="no"])
])
ac_float32=$ac_cv_float32
if test "x$ac_float32" = "xyes"; then
AC_DEFINE(CONFIG_FLOAT32, 1, [Define if IEEE 32bit float optimizations are enabled.])
fi
# Check for SSE optimization.
if test "x$ac_sse" = "xyes"; then
AC_CHECK_HEADER([xmmintrin.h],[
ac_sse_cflags="-msse -mfpmath=sse -ffast-math"
ac_old_cflags=$CFLAGS
ac_old_cppflags=$CPPFLAGS
CFLAGS="$ac_sse_cflags $CFLAGS"
CPPFLAGS="$ac_sse_cflags $CPPFLAGS"
AC_CACHE_CHECK([for SSE optimization],
ac_cv_sse, [
AC_TRY_RUN([
#include <xmmintrin.h>
#if !defined(__SSE__)
#error SSE optimization disabled.
#endif
int main() {
unsigned int a, b, c, d;
__asm__ __volatile__ (
"movl %%ebx, %%esi\n\t" \
"cpuid\n\t" \
"xchgl %%ebx, %%esi" \
: "=a" (a), "=S" (b), "=c" (c), "=d" (d) : "0" (1));
return ((d & (1 << 25)) ? 0 : 1);
}
], ac_cv_sse="yes", ac_cv_sse="no", ac_cv_sse=cross)
])
if test "x$ac_cv_sse" = xcross; then
ac_sse=yes
else
ac_sse=$ac_cv_sse
fi
if test "x$ac_sse" = "xyes"; then
ac_cflags="$ac_sse_cflags $ac_cflags"
else
CPPFLAGS=$ac_old_cppflags
CFLAGS=$ac_old_cflags
fi
],[ac_sse=no])
fi
# Checks for libraries.
AC_CHECK_LIB(m, main)
AC_CHECK_LIB(X11, main)
AC_CHECK_LIB(Xext, main)
# Check for round math function.
AC_CHECK_LIB(m, round, [ac_round="yes"], [ac_round="no"])
if test "x$ac_round" = "xyes"; then
AC_DEFINE(CONFIG_ROUND, 1, [Define if round is available.])
fi
# Check for JACK libraries.
PKG_CHECK_MODULES([JACK], [jack >= 0.100.0], [ac_libjack="yes"], [ac_libjack="no"])
if test "x$ac_libjack" = "xyes"; then
AC_DEFINE(CONFIG_LIBJACK, 1, [Define if JACK library is available.])
ac_cflags="$ac_cflags $JACK_CFLAGS"
ac_libs="$ac_libs $JACK_LIBS"
CFLAGS="$CFLAGS $JACK_CFLAGS"
CPPFLAGS="$CPPFLAGS $JACK_CFLAGS"
LIBS="$LIBS $JACK_LIBS"
else
AC_MSG_ERROR([*** JACK library not found.])
fi
# Check for ALSA libraries.
PKG_CHECK_MODULES([ALSA], [alsa], [ac_libasound="yes"], [ac_libasound="no"])
if test "x$ac_libasound" = "xyes"; then
AC_DEFINE(CONFIG_LIBASOUND, 1, [Define if ALSA library is available.])
ac_cflags="$ac_cflags $ALSA_CFLAGS"
ac_libs="$ac_libs $ALSA_LIBS"
else
AC_MSG_ERROR([*** ALSA library not found.])
fi
# Check for SNDFILE library.
PKG_CHECK_MODULES([SNDFILE], [sndfile], [ac_libsndfile="yes"], [ac_libsndfile="no"])
if test "x$ac_libsndfile" = "xyes"; then
AC_DEFINE(CONFIG_LIBSNDFILE, 1, [Define if SNDFILE library is available.])
ac_cflags="$ac_cflags $SNDFILE_CFLAGS"
ac_libs="$ac_libs $SNDFILE_LIBS"
else
AC_MSG_ERROR([*** SNDFILE library not found.])
fi
# Check for optional VORBIS libraries.
if test "x$ac_libvorbis" = "xyes"; then
PKG_CHECK_MODULES([VORBIS], [vorbis], [ac_libvorbis="yes"], [ac_libvorbis="no"])
if test "x$ac_libvorbis" = "xyes"; then
ac_cflags="$ac_cflags $VORBIS_CFLAGS"
ac_libs="$ac_libs $VORBIS_LIBS"
else
AC_MSG_WARN([*** VORBIS library not found.])
fi
fi
if test "x$ac_libvorbis" = "xyes"; then
PKG_CHECK_MODULES([VORBISENC], [vorbisenc], [ac_libvorbis="yes"], [ac_libvorbis="no"])
if test "x$ac_libvorbis" = "xyes"; then
ac_cflags="$ac_cflags $VORBISENC_CFLAGS"
ac_libs="$ac_libs $VORBISENC_LIBS"
else
AC_MSG_WARN([*** VORBISENC library not found.])
fi
fi
if test "x$ac_libvorbis" = "xyes"; then
PKG_CHECK_MODULES([VORBISFILE], [vorbisfile], [ac_libvorbis="yes"], [ac_libvorbis="no"])
if test "x$ac_libvorbis" = "xyes"; then
ac_cflags="$ac_cflags $VORBISFILE_CFLAGS"
ac_libs="$ac_libs $VORBISFILE_LIBS"
else
AC_MSG_WARN([*** VORBISFILE library not found.])
fi
fi
if test "x$ac_libvorbis" = "xyes"; then
PKG_CHECK_MODULES([OGG], [ogg], [ac_libvorbis="yes"], [ac_libvorbis="no"])
if test "x$ac_libvorbis" = "xyes"; then
ac_cflags="$ac_cflags $OGG_CFLAGS"
ac_libs="$ac_libs $OGG_LIBS"
else
AC_MSG_WARN([*** OGG library not found.])
fi
fi
if test "x$ac_libvorbis" = "xyes"; then
AC_DEFINE(CONFIG_LIBVORBIS, 1, [Define if VORBIS library is available.])
else
AC_MSG_WARN([*** Ogg Vorbis audio file support will be disabled.])
fi
# Check for optional MAD library.
if test "x$ac_libmad" = "xyes"; then
PKG_CHECK_MODULES([MAD], [mad], [ac_libmad="yes"], [ac_libmad="no"])
if test "x$ac_libmad" = "xyes"; then
AC_DEFINE(CONFIG_LIBMAD, 1, [Define if MAD library is available.])
ac_cflags="$ac_cflags $MAD_CFLAGS"
ac_libs="$ac_libs $MAD_LIBS"
else
AC_MSG_WARN([*** MAD library not found.])
AC_MSG_WARN([*** MPEG Layer III audio file support will be disabled.])
fi
fi
# Check for optional SAMPLERATE library.
if test "x$ac_libsamplerate" = "xyes"; then
PKG_CHECK_MODULES([SAMPLERATE], [samplerate], [ac_libsamplerate="yes"], [ac_libsamplerate="no"])
if test "x$ac_libsamplerate" = "xyes"; then
AC_DEFINE(CONFIG_LIBSAMPLERATE, 1, [Define if SAMPLERATE library is available.])
ac_cflags="$ac_cflags $SAMPLERATE_CFLAGS"
ac_libs="$ac_libs $SAMPLERATE_LIBS"
else
AC_MSG_WARN([*** SAMPLERATE library not found.])
AC_MSG_WARN([*** Sample-rate conversion support will be disabled.])
fi
fi
# Check for optional RUBBERBAND library.
if test "x$ac_librubberband" = "xyes"; then
PKG_CHECK_MODULES([RUBBERBAND], [rubberband], [ac_librubberband="yes"], [ac_librubberband="no"])
if test "x$ac_librubberband" = "xyes"; then
AC_DEFINE(CONFIG_LIBRUBBERBAND, 1, [Define if RUBBERBAND library is available.])
ac_cflags="$ac_cflags $RUBBERBAND_CFLAGS"
ac_libs="$ac_libs $RUBBERBAND_LIBS"
else
AC_MSG_WARN([*** RUBBERBAND library not found.])
AC_MSG_WARN([*** Pitch-shifting support will be disabled.])
fi
fi
# Check for optional AUBIO library.
if test "x$ac_libaubio" = "xyes"; then
PKG_CHECK_MODULES([AUBIO], [aubio >= 0.4.1], [ac_libaubio="yes"], [ac_libaubio="no"])
if test "x$ac_libaubio" = "xyes"; then
AC_DEFINE(CONFIG_LIBAUBIO, 1, [Define if AUBIO library is available.])
ac_cflags="$ac_cflags $AUBIO_CFLAGS"
ac_libs="$ac_libs $AUBIO_LIBS"
else
AC_MSG_WARN([*** AUBIO library not found.])
AC_MSG_WARN([*** Beat-detection support will be disabled.])
fi
fi
# Check for optional LIBLO library.
if test "x$ac_liblo" = "xyes"; then
PKG_CHECK_MODULES([LIBLO], [liblo], [ac_liblo="yes"], [ac_liblo="no"])
if test "x$ac_liblo" = "xyes"; then
AC_DEFINE(CONFIG_LIBLO, 1, [Define if LIBLO library is available.])
ac_cflags="$ac_cflags $LIBLO_CFLAGS"
ac_libs="$ac_libs $LIBLO_LIBS"
else
AC_MSG_WARN([*** LIBLO library not found.])
AC_MSG_WARN([*** OSC service support will be disabled.])
ac_nsm="no"
fi
else
ac_nsm="no"
fi
# Check for optional ZLIB library.
if test "x$ac_libz" = "xyes"; then
PKG_CHECK_MODULES([ZLIB], [zlib], [ac_libz="yes"], [ac_libz="no"])
if test "x$ac_libz" = "xyes"; then
AC_DEFINE(CONFIG_LIBZ, 1, [Define if ZLIB library is available.])
ac_cflags="$ac_cflags $ZLIB_CFLAGS"
ac_libs="$ac_libs $ZLIB_LIBS"
else
AC_MSG_WARN([*** ZLIB library not found.])
AC_MSG_WARN([*** Archive/Zip file support will be disabled.])
fi
fi
# Check for LV2 support.
if test "x$ac_lv2" = "xno"; then
ac_liblilv="no"
ac_lv2_ui="no"
fi
if test "x$ac_lv2_ui" = "xno"; then
ac_libsuil="no"
ac_lv2_external_ui="no"
ac_lv2_ui_touch="no"
ac_lv2_ui_req_value="no"
ac_lv2_ui_idle="no"
ac_lv2_ui_show="no"
ac_lv2_ui_gtk2="no"
ac_lv2_ui_x11="no"
fi
# Disable libSUIL upon Qt >= 6.0.0 ...
if test $ac_qt_version_major -ge 6; then
ac_libsuil="no"
fi
# Check for optional LILV library.
if test "x$ac_liblilv" = "xyes"; then
PKG_CHECK_MODULES([LILV], [lilv-0], [ac_liblilv="yes"], [ac_liblilv="no"])
fi
if test "x$ac_liblilv" = "xyes"; then
AC_DEFINE(CONFIG_LIBLILV, 1, [Define if LILV library is available.])
ac_cflags="$ac_cflags $LILV_CFLAGS"
ac_libs="$ac_libs $LILV_LIBS"
CFLAGS="$CFLAGS $LILV_CFLAGS"
CPPFLAGS="$CPPFLAGS $LILV_CFLAGS"
LIBS="$LIBS $LILV_LIBS"
else
AC_MSG_WARN([*** LILV library not found.])
fi
if test "x$ac_liblilv" = "xyes"; then
AC_CHECK_LIB(lilv-0, lilv_file_uri_parse,
[ac_lilv_file_uri_parse="yes"],
[ac_lilv_file_uri_parse="no"])
if test "x$ac_lilv_file_uri_parse" = "xyes"; then
AC_DEFINE(CONFIG_LILV_FILE_URI_PARSE, 1, [Define if lilv_file_uri_parse is available.])
fi
AC_CHECK_LIB(lilv-0, lilv_world_unload_resource,
[ac_lilv_world_unload_resource="yes"],
[ac_lilv_world_unload_resource="no"])
if test "x$ac_lilv_world_unload_resource" = "xyes"; then
AC_DEFINE(CONFIG_LILV_WORLD_UNLOAD_RESOURCE, 1, [Define if lilv_world_unload_resource is available.])
fi
fi
# Check for LV2 new UI instantiation availability (libsuil).
if test "x$ac_libsuil" = "xyes"; then
PKG_CHECK_MODULES([SUIL], [suil-0], [ac_libsuil="yes"], [ac_libsuil="no"])
if test "x$ac_libsuil" = "xyes"; then
AC_DEFINE(CONFIG_LIBSUIL, 1, [Define if SUIL library is enabled.])
ac_cflags="$ac_cflags $SUIL_CFLAGS"
ac_libs="$ac_libs $SUIL_LIBS"
CFLAGS="$CFLAGS $SUIL_CFLAGS"
CPPFLAGS="$CPPFLAGS $SUIL_CFLAGS"
LIBS="$LIBS $SUIL_LIBS"
else
AC_MSG_WARN([*** SUIL library will be disabled.])
fi
fi
if test "x$ac_libsuil" = "xyes"; then
AC_CHECK_LIB(suil-0, suil_instance_get_handle,
[ac_suil_instance_get_handle="yes"],
[ac_suil_instance_get_handle="no"])
if test "x$ac_suil_instance_get_handle" = "xyes"; then
AC_DEFINE(CONFIG_SUIL_INSTANCE_GET_HANDLE, 1, [Define if suil_instance_get_handle is available.])
fi
fi
# Check for LV2 host library (liblilv).
if test "x$ac_liblilv" = "xno"; then
ac_lv2="no"
ac_lv2_ui="no"
ac_lv2_event="no"
ac_lv2_atom="no"
ac_lv2_cvport="no"
ac_lv2_worker="no"
ac_lv2_external_ui="no"
ac_lv2_state="no"
ac_lv2_state_files="no"
ac_lv2_state_make_path="no"
ac_lv2_programs="no"
ac_lv2_midnam="no"
ac_lv2_presets="no"
ac_lv2_patch="no"
ac_lv2_port_event="no"
ac_lv2_time="no"
ac_lv2_time_position="no";
ac_lv2_options="no"
ac_lv2_buf_size="no"
ac_lv2_parameters="no"
ac_lv2_ui_touch="no"
ac_lv2_ui_req_value="no"
ac_lv2_ui_idle="no"
ac_lv2_ui_show="no"
ac_lv2_ui_gtk2="no"
ac_lv2_ui_x11="no"
fi
# Check for JACK session event callback availability.
if test "x$ac_jack_session" = "xyes"; then
AC_CHECK_LIB(jack, jack_set_session_callback, [ac_jack_session="yes"], [ac_jack_session="no"])
else
AC_MSG_WARN([*** JACK session support will be disabled.])
fi
# Check for (new) JACK latency support availability.
if test "x$ac_jack_latency" = "xyes"; then
AC_CHECK_LIB(jack, jack_port_get_latency_range, [ac_jack_latency="yes"], [ac_jack_latency="no"])
if test "x$ac_jack_latency" = "xyes"; then
AC_DEFINE(CONFIG_JACK_LATENCY, 1, [Define if JACK latency support is available.])
else
AC_MSG_WARN([*** JACK latency support will be disabled.])
fi
fi
# Check for JACK metadata support availability.
if test "x$ac_jack_metadata" = "xyes"; then
AC_CHECK_LIB(jack, jack_get_property, [ac_jack_metadata="yes"], [ac_jack_metadata="no"])
else
AC_MSG_WARN([*** JACK metadata support will be disabled.])
fi
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/stat.h unistd.h signal.h)
# Check for LADSPA headers.
if test -n "$ac_with_ladspa"; then
CFLAGS="-I$ac_with_ladspa $CFLAGS"
CPPFLAGS="-I$ac_with_ladspa $CPPFLAGS"
ac_ladspa="yes"
fi
if test "x$ac_ladspa" = "xyes"; then
AC_CHECK_HEADER(ladspa.h, [ac_ladspa="yes"], [ac_ladspa="no"])
if test "x$ac_ladspa" = "xyes"; then
AC_DEFINE(CONFIG_LADSPA, 1, [Define if LADSPA header is available.])
ac_incpath="$ac_with_ladspa $ac_incpath"
else
AC_MSG_WARN([*** ladspa.h header file not found.])
AC_MSG_WARN([*** LADSPA plug-in support will be disabled.])
fi
fi
# Check for DSSI headers.
if test -n "$ac_with_dssi"; then
CFLAGS="-I$ac_with_dssi $CFLAGS"
CPPFLAGS="-I$ac_with_dssi $CPPFLAGS"
ac_dssi="yes"
fi
if test "x$ac_dssi" = "xyes"; then
AC_CHECK_HEADER(dssi.h, [ac_dssi="yes"], [ac_dssi="no"])
if test "x$ac_dssi" = "xyes"; then
AC_DEFINE(CONFIG_DSSI, 1, [Define if DSSI header is available.])
ac_incpath="$ac_with_dssi $ac_incpath"
else
AC_MSG_WARN([*** dssi.h header file not found.])
AC_MSG_WARN([*** DSSI plug-in support will be disabled.])
fi
fi
# Pre-check for VeSTige header.
if test "$ac_vestige" = "xyes"; then
ac_vst="yes"
fi
# Check for VST headers.
if test -n "$ac_with_vst"; then
CFLAGS="-I$ac_with_vst $CFLAGS"
CPPFLAGS="-I$ac_with_vst $CPPFLAGS"
ac_incpath="$ac_with_vst $ac_incpath"
ac_vst="yes"
fi
if test "x$ac_vst" = "xyes"; then
CFLAGS="-D__cdecl= $CFLAGS"
CPPFLAGS="-D__cdecl= $CPPFLAGS"
AC_CACHE_CHECK([for VST headers],
ac_cv_vst, [
AC_TRY_LINK([#include <aeffectx.h>], [
// Checking for VST headers...
], ac_cv_vst="yes", ac_cv_vst="no")
])
ac_vst=$ac_cv_vst
if test "x$ac_vst" = "xno" -a "x$ac_vestige" = "xyes"; then
CFLAGS="$CFLAGS -Isrc/vestige"
CPPFLAGS="$CPPFLAGS -Isrc/vestige"
ac_incpath="$ac_incpath vestige"
AC_CHECK_HEADER(vestige.h, [ac_vst="yes"], [ac_vst="no"])
else
ac_vestige="no"
fi
if test "x$ac_vst" = "xyes"; then
AC_DEFINE(CONFIG_VST, 1, [Define if VST header is available.])
else
AC_MSG_WARN([*** aeffectx.h header file not found.])
AC_MSG_WARN([*** VST plug-in support will be disabled.])
ac_vestige="no"
fi
else
ac_vestige="no"
fi
# Post-check for VeSTige header.
if test "x$ac_vestige" = "xyes"; then
AC_DEFINE(CONFIG_VESTIGE, 1, [Define if VeSTige header is available.])
fi
# Check for LV2 headers.
if test -n "$ac_with_lv2"; then
ac_lv2="yes"
fi
if test "x$ac_lv2" = "xyes"; then
if test -n "$ac_with_lv2"; then
CFLAGS="-I$ac_with_lv2 $CFLAGS"
CPPFLAGS="-I$ac_with_lv2 $CPPFLAGS"
ac_incpath="$ac_with_lv2 $ac_incpath"
fi
CFLAGS="$CFLAGS -Isrc/lv2"
CPPFLAGS="$CPPFLAGS -Isrc/lv2"
ac_incpath="$ac_incpath lv2"
PKG_CHECK_MODULES([LV2], [lv2], [ac_lv2="yes"], [ac_lv2="no"])
if test "x$ac_lv2" = "xyes"; then
ac_cflags="$ac_cflags $LV2_CFLAGS"
CFLAGS="$CFLAGS $LV2_CFLAGS"
CPPFLAGS="$CPPFLAGS $LV2_CFLAGS"
fi
if test "x$ac_lv2" = "xyes"; then
AC_CHECK_HEADERS(
lv2/lv2plug.in/ns/ext/urid/urid.h,
[ac_lv2="yes"], [ac_lv2="no"])
fi
if test "x$ac_lv2" = "xyes"; then
AC_DEFINE(CONFIG_LV2, 1, [Define if LV2 headers are available.])
else
AC_MSG_WARN([*** LV2 header files not found.])
AC_MSG_WARN([*** LV2 plug-in support will be disabled.])
ac_lv2_ui="no"
ac_lv2_event="no"
ac_lv2_atom="no"
ac_lv2_cvport="no"
ac_lv2_worker="no"
ac_lv2_external_ui="no"
ac_lv2_state="no"
ac_lv2_state_files="no"
ac_lv2_state_make_path="no"
ac_lv2_programs="no"
ac_lv2_midnam="no"
ac_lv2_presets="no"
ac_lv2_patch="no"
ac_lv2_port_event="no"
ac_lv2_time="no"
ac_lv2_time_position="no";
ac_lv2_options="no"
ac_lv2_buf_size="no"
ac_lv2_parameters="no"
ac_lv2_ui_touch="no"
ac_lv2_ui_req_value="no"
ac_lv2_ui_idle="no"
ac_lv2_ui_show="no"
ac_lv2_ui_gtk2="no"
ac_lv2_ui_x11="no"
fi
fi
if test "x$ac_lv2_ui" = "xyes"; then
AC_CHECK_HEADER(
lv2/lv2plug.in/ns/extensions/ui/ui.h,
[ac_lv2_ui="yes"], [ac_lv2_ui="no"])
fi
if test "x$ac_lv2_ui" = "xyes"; then
AC_DEFINE(CONFIG_LV2_UI, 1, [Define if LV2 UI support is available.])
else
AC_MSG_WARN([*** LV2 UI support will be disabled.])
ac_lv2_external_ui="no"
ac_lv2_ui_touch="no"
ac_lv2_ui_req_value="no"
ac_lv2_ui_idle="no"
ac_lv2_ui_show="no"
ac_lv2_ui_gtk2="no"
ac_lv2_ui_x11="no"
fi
if test "x$ac_lv2_event" = "xyes"; then
AC_CHECK_HEADERS(
lv2/lv2plug.in/ns/ext/uri-map/uri-map.h \
lv2/lv2plug.in/ns/ext/event/event.h \
lv2/lv2plug.in/ns/ext/event/event-helpers.h,
[ac_lv2_event="yes"], [ac_lv2_event="no"])
if test "x$ac_lv2_event" = "xyes"; then
AC_DEFINE(CONFIG_LV2_EVENT, 1, [Define if LV2 Event/MIDI support is available.])
else
AC_MSG_WARN([*** LV2 Event/MIDI support will be disabled.])
fi
fi
if test "x$ac_lv2_atom" = "xyes"; then
AC_CHECK_HEADERS(lv2_atom_helpers.h \
lv2/lv2plug.in/ns/ext/atom/atom.h \
lv2/lv2plug.in/ns/ext/atom/forge.h \
lv2/lv2plug.in/ns/ext/atom/util.h,
[ac_lv2_atom="yes"], [ac_lv2_atom="no"])
if test "x$ac_lv2_atom" = "xyes"; then
AC_DEFINE(CONFIG_LV2_ATOM, 1, [Define if LV2 Atom/MIDI aupport is available.])
AC_CACHE_CHECK([for lv2_atom_forge_object],
ac_cv_lv2_atom_forge_object, [
AC_TRY_LINK([#include "lv2/lv2plug.in/ns/ext/atom/forge.h"], [
// Checking for lv2_atom_forge_object...
LV2_Atom_Forge *forge;
LV2_Atom_Forge_Frame *frame;
lv2_atom_forge_object(forge, frame, 0, 101);
], ac_cv_lv2_atom_forge_object="yes", ac_cv_lv2_atom_forge_object="no")
])
ac_lv2_atom_forge_object=$ac_cv_lv2_atom_forge_object
if test "x$ac_lv2_atom_forge_object" = "xyes"; then
AC_DEFINE(CONFIG_LV2_ATOM_FORGE_OBJECT, 1, [Define if lv2_atom_forge_object is available.])
fi
AC_CACHE_CHECK([for lv2_atom_forge_key],
ac_cv_lv2_atom_forge_key, [
AC_TRY_LINK([#include "lv2/lv2plug.in/ns/ext/atom/forge.h"], [
// Checking for lv2_atom_forge_key...
LV2_Atom_Forge *forge;
lv2_atom_forge_key(forge, 102);
], ac_cv_lv2_atom_forge_key="yes", ac_cv_lv2_atom_forge_key="no")
])
ac_lv2_atom_forge_key=$ac_cv_lv2_atom_forge_key
if test "x$ac_lv2_atom_forge_key" = "xyes"; then
AC_DEFINE(CONFIG_LV2_ATOM_FORGE_KEY, 1, [Define if lv2_atom_forge_key is available.])
fi
else
AC_MSG_WARN([*** LV2 Atom/MIDI support will be disabled.])
ac_lv2_state="no"
ac_lv2_options="no"
ac_lv2_time_position="no"
fi
else
ac_lv2_state="no"
ac_lv2_options="no"
ac_lv2_time_position="no"
fi
if test "x$ac_lv2_cvport" = "xyes"; then
AC_CACHE_CHECK([for LV2 CVPort support],
ac_cv_lv2_cvport, [
AC_TRY_LINK([#include "lv2.h"], [
// Checking for LV2 CVPort support...
#ifndef LV2_CORE__CVPort
#error LV2 CVPort is not available.
#endif
], ac_cv_lv2_cvport="yes", ac_cv_lv2_cvport="no")
])
ac_lv2_cvport=$ac_cv_lv2_cvport
if test "x$ac_lv2_cvport" = "xyes"; then
AC_DEFINE(CONFIG_LV2_CVPORT, 1, [Define if LV2 CVPort support is available. (DUMMY)])
else
AC_MSG_WARN([*** LV2 CVPort support will be disabled.])
fi
fi
if test "x$ac_lv2_worker" = "xyes"; then
AC_CHECK_HEADER(
lv2/lv2plug.in/ns/ext/worker/worker.h,
[ac_lv2_worker="yes"], [ac_lv2_worker="no"])
if test "x$ac_lv2_worker" = "xyes"; then
AC_DEFINE(CONFIG_LV2_WORKER, 1, [Define if LV2 Worker/Schedule aupport is available.])
else
AC_MSG_WARN([*** LV2 Worker/Schedule support will be disabled.])
fi
fi
if test "x$ac_lv2_external_ui" = "xyes"; then
AC_CHECK_HEADER(lv2_external_ui.h, [ac_lv2_external_ui="yes"], [ac_lv2_external_ui="no"])
if test "x$ac_lv2_external_ui" = "xyes"; then
AC_CHECK_HEADERS(
lv2/lv2plug.in/ns/ext/data-access/data-access.h \
lv2/lv2plug.in/ns/ext/instance-access/instance-access.h,
[ac_lv2_external_ui="yes"], [ac_lv2_external_ui="no"])
fi
if test "x$ac_lv2_external_ui" = "xyes"; then
AC_DEFINE(CONFIG_LV2_EXTERNAL_UI, 1, [Define if LV2 External UI extension is available.])
else
AC_MSG_WARN([*** LV2 External UI extension will be disabled.])
fi
fi
if test "x$ac_lv2_state" = "xyes"; then
AC_CHECK_HEADERS(
lv2/lv2plug.in/ns/ext/atom/atom.h \
lv2/lv2plug.in/ns/ext/state/state.h,
[ac_lv2_state="yes"], [ac_lv2_state="no"])
if test "x$ac_lv2_state" = "xyes"; then
AC_DEFINE(CONFIG_LV2_STATE, 1, [Define if LV2 State extension is available.])
if test "x$ac_lv2_state_files" = "xyes"; then
AC_DEFINE(CONFIG_LV2_STATE_FILES, 1, [Define if LV2 State Files feature is available.])
if test "x$ac_lv2_state_make_path" = "xyes"; then
AC_DEFINE(CONFIG_LV2_STATE_MAKE_PATH, 1, [Define if LV2 State Make Path feature is available.])
fi
else
AC_MSG_WARN([*** LV2 State Files feature will be disabled.])
ac_lv2_state_make_path="no"
fi
else
AC_MSG_WARN([*** LV2 State extension will be disabled.])
ac_lv2_state_make_path="no"
ac_lv2_state_files="no"
ac_lv2_presets="no"
ac_lv2_patch="no"
fi
else
ac_lv2_state_make_path="no"
ac_lv2_state_files="no"
ac_lv2_presets="no"
ac_lv2_patch="no"
fi
if test "x$ac_lv2_programs" = "xyes"; then
AC_CHECK_HEADER(lv2_programs.h, [ac_lv2_programs="yes"], [ac_lv2_programs="no"])
if test "x$ac_lv2_programs" = "xyes"; then
AC_DEFINE(CONFIG_LV2_PROGRAMS, 1, [Define if LV2 Programs extension is available.])
else
AC_MSG_WARN([*** LV2 Programs extension will be disabled.])
fi
fi
if test "x$ac_lv2_midnam" = "xyes"; then
AC_CHECK_HEADER(lv2_midnam.h, [ac_lv2_midnam="yes"], [ac_lv2_midnam="no"])
if test "x$ac_lv2_midnam" = "xyes"; then
AC_DEFINE(CONFIG_LV2_MIDNAM, 1, [Define if LV2 MIDNAM extension is available.])
else
AC_MSG_WARN([*** LV2 MIDNAM extension will be disabled.])
fi
fi
if test "x$ac_lv2_presets" = "xyes"; then
AC_CHECK_HEADER(
lv2/lv2plug.in/ns/ext/presets/presets.h,
[ac_lv2_presets="yes"], [ac_lv2_presets="no"])
if test "x$ac_lv2_presets" = "xyes"; then
AC_DEFINE(CONFIG_LV2_PRESETS, 1, [Define if LV2 Presets are supported.])
else
AC_MSG_WARN([*** LV2 Presets support will be disabled.])
fi
fi
if test "x$ac_lv2_patch" = "xyes"; then
AC_CHECK_HEADER(
lv2/lv2plug.in/ns/ext/patch/patch.h,
[ac_lv2_patch="yes"], [ac_lv2_patch="no"])
if test "x$ac_lv2_patch" = "xyes"; then
AC_DEFINE(CONFIG_LV2_PATCH, 1, [Define if LV2 Patch is supported.])
else
AC_MSG_WARN([*** LV2 Patch support will be disabled.])
ac_lv2_ui_req_value="no"
fi
else
ac_lv2_ui_req_value="no"
fi
if test "x$ac_lv2_port_event" = "xyes"; then
AC_DEFINE(CONFIG_LV2_PORT_EVENT, 1, [Define if LV2 Port-event is supported. (EXPERIMENTAL)])
fi
if test "x$ac_lv2_time" = "xyes"; then
AC_CHECK_HEADER(
lv2/lv2plug.in/ns/ext/time/time.h,
[ac_lv2_time="yes"], [ac_lv2_time="no"])
if test "x$ac_lv2_time" = "xyes"; then
AC_DEFINE(CONFIG_LV2_TIME, 1, [Define if LV2 Time is supported.])
else
AC_MSG_WARN([*** LV2 Time support will be disabled.])
ac_lv2_time_position="no";
fi
else
ac_lv2_time_position="no";
fi
if test "x$ac_lv2_options" = "xyes"; then
AC_CHECK_HEADER(
lv2/lv2plug.in/ns/ext/options/options.h,
[ac_lv2_options="yes"], [ac_lv2_options="no"])
if test "x$ac_lv2_options" = "xyes"; then
AC_DEFINE(CONFIG_LV2_OPTIONS, 1, [Define if LV2 Options is supported.])
else
AC_MSG_WARN([*** LV2 Options support will be disabled.])
ac_lv2_buf_size="no"
fi
else
ac_lv2_buf_size="no"
fi
if test "x$ac_lv2_buf_size" = "xyes"; then
AC_CHECK_HEADER(
lv2/lv2plug.in/ns/ext/buf-size/buf-size.h,
[ac_lv2_buf_size="yes"], [ac_lv2_buf_size="no"])
if test "x$ac_lv2_buf_size" = "xyes"; then
AC_DEFINE(CONFIG_LV2_BUF_SIZE, 1, [Define if LV2 Buf-size is supported.])
else
AC_MSG_WARN([*** LV2 Buf-size support will be disabled.])
fi
fi
if test "x$ac_lv2_parameters" = "xyes"; then
AC_CHECK_HEADER(
lv2/lv2plug.in/ns/ext/parameters/parameters.h,
[ac_lv2_parameters="yes"], [ac_lv2_parameters="no"])
if test "x$ac_lv2_parameters" = "xyes"; then
AC_DEFINE(CONFIG_LV2_PARAMETERS, 1, [Define if LV2 Parameters is supported.])
else
AC_MSG_WARN([*** LV2 Parameters support will be disabled.])
fi
fi
if test "x$ac_lv2_time_position" = "xyes"; then
AC_DEFINE(CONFIG_LV2_TIME_POSITION, 1, [Define if LV2 Time/position support is available.])
fi
if test "x$ac_lv2_ui_touch" = "xyes"; then
AC_CACHE_CHECK([for LV2 UI Touch interface],
ac_cv_lv2_ui_touch, [
AC_TRY_LINK([#include "lv2/lv2plug.in/ns/extensions/ui/ui.h"], [
// Checking for LV2 UI Touch interface...
LV2UI_Touch touch;
], ac_cv_lv2_ui_touch="yes", ac_cv_lv2_ui_touch="no")
])
ac_lv2_ui_touch=$ac_cv_lv2_ui_touch
if test "x$ac_lv2_ui_touch" = "xyes"; then
AC_DEFINE(CONFIG_LV2_UI_TOUCH, 1, [Define if LV2 UI Touch interface support is available.])
else
AC_MSG_WARN([*** LV2 UI Touch interface support will be disabled.])
fi
fi
if test "x$ac_lv2_ui_req_value" = "xyes"; then
AC_CACHE_CHECK([for LV2 UI Request-value support],
ac_cv_lv2_ui_req_value, [
AC_TRY_LINK([#include "lv2/lv2plug.in/ns/extensions/ui/ui.h"], [
// Checking for LV2 UI Request-value interface...
LV2UI_Request_Value req_value;
], ac_cv_lv2_ui_req_value="yes", ac_cv_lv2_ui_req_value="no")
])
ac_lv2_ui_req_value=$ac_cv_lv2_ui_req_value
if test "x$ac_lv2_ui_req_value" = "xyes"; then
AC_DEFINE(CONFIG_LV2_UI_REQ_VALUE, 1, [Define if LV2 UI Request-value support is available.])
else
#AC_MSG_WARN([*** LV2 UI Request-value support will be disabled.])
AC_DEFINE(CONFIG_LV2_UI_REQ_VALUE_FAKE, 1, [Define if LV2 UI Request-value support is available. (FAKE)])
ac_lv2_ui_req_value="yes"
fi
fi
if test "x$ac_lv2_ui_idle" = "xyes"; then
AC_CACHE_CHECK([for LV2 UI Idle interface],
ac_cv_lv2_ui_idle, [
AC_TRY_LINK([#include "lv2/lv2plug.in/ns/extensions/ui/ui.h"], [
// Checking for LV2 UI Idle interface...
LV2UI_Idle_Interface idle;
], ac_cv_lv2_ui_idle="yes", ac_cv_lv2_ui_idle="no")
])
ac_lv2_ui_idle=$ac_cv_lv2_ui_idle
if test "x$ac_lv2_ui_idle" = "xyes"; then
AC_DEFINE(CONFIG_LV2_UI_IDLE, 1, [Define if LV2 UI Idle interface support is available.])
else
AC_MSG_WARN([*** LV2 UI Idle interface support will be disabled.])
fi
fi
if test "x$ac_lv2_ui_show" = "xyes"; then
AC_CACHE_CHECK([for LV2 UI Show interface],
ac_cv_lv2_ui_show, [
AC_TRY_LINK([#include "lv2/lv2plug.in/ns/extensions/ui/ui.h"], [
// Checking for LV2 UI Show interface...
LV2UI_Show_Interface show;
], ac_cv_lv2_ui_show="yes", ac_cv_lv2_ui_show="no")
])
ac_lv2_ui_show=$ac_cv_lv2_ui_show
if test "x$ac_lv2_ui_show" = "xyes"; then
AC_DEFINE(CONFIG_LV2_UI_SHOW, 1, [Define if LV2 UI Show interface support is available.])
else
AC_MSG_WARN([*** LV2 UI Show interface support will be disabled.])
fi
fi
if test "x$ac_libsuil" = "xyes"; then
AC_CACHE_CHECK([for LV2 UI GTK2 support (libsuil_gtk2_in_qt5)],
ac_cv_libsuil_gtk2_in_qt5, [
AC_TRY_RUN([
#include <suil/suil.h>
#include "lv2/lv2plug.in/ns/extensions/ui/ui.h"
#ifndef LV2_UI__Qt5UI
#define LV2_UI__Qt5UI LV2_UI_PREFIX "Qt5UI"
#endif
int main() { return !suil_ui_supported(LV2_UI__Qt5UI, LV2_UI__GtkUI); }
], ac_cv_libsuil_gtk2_in_qt5="yes", ac_cv_libsuil_gtk2_in_qt5="no")
])
if test "x$ac_cv_libsuil_gtk2_in_qt5" = "xyes"; then
AC_DEFINE(CONFIG_LIBSUIL_GTK2_IN_QT5, 1, [Define if libsuil_gtk2_in_qt5 is available.])
# ac_lv2_ui_gtk2="no"
fi
fi
if test "x$ac_lv2_ui_gtk2" = "xyes"; then
PKG_CHECK_MODULES([GTK2], [gtk+-2.0], [ac_lv2_ui_gtk2="yes"], [ac_lv2_ui_gtk2="no"])
fi
if test "x$ac_lv2_ui_gtk2" = "xyes"; then
AC_DEFINE(CONFIG_LV2_UI_GTK2, 1, [Define if LV2 UI GTK2 native support is available.])
ac_cflags="$ac_cflags $GTK2_CFLAGS"
ac_libs="$ac_libs $GTK2_LIBS"
else
AC_MSG_WARN([*** LV2 UI GTK2 native support will be disabled.])
fi
if test "x$ac_libsuil" = "xyes"; then
AC_CACHE_CHECK([for LV2 UI X11 support (libsuil_x11_in_qt5)],
ac_cv_libsuil_x11_in_qt5, [
AC_TRY_RUN([
#include <suil/suil.h>
#include "lv2/lv2plug.in/ns/extensions/ui/ui.h"
#ifndef LV2_UI__Qt5UI
#define LV2_UI__Qt5UI LV2_UI_PREFIX "Qt5UI"
#endif
int main() { return !suil_ui_supported(LV2_UI__Qt5UI, LV2_UI__X11UI); }
], ac_cv_libsuil_x11_in_qt5="yes", ac_cv_libsuil_x11_in_qt5="no")
])
if test "x$ac_cv_libsuil_x11_in_qt5" = "xyes"; then
AC_DEFINE(CONFIG_LIBSUIL_X11_IN_QT5, 1, [Define if libsuil_x11_in_qt5 is available.])
# ac_lv2_ui_x11="no"
fi
fi
if test "x$ac_lv2_ui_x11" = "xyes"; then
AC_DEFINE(CONFIG_LV2_UI_X11, 1, [Define if LV2 UI X11 native support is available.])
fi
# Check for VST3 SDK stuff.
if test "x$ac_vst3" = "xyes"; then
if test -n "$ac_with_vst3"; then
ac_vst3sdk=$ac_with_vst3
else
PKG_CHECK_MODULES([VST3SDK], [vst3sdk >= 3.6.14], [ac_vst3="yes"], [ac_vst3="no"])
if test "x$ac_vst3" = "xyes"; then
ac_vst3sdk="${VST3SDK_CFLAGS/-I/}"
fi
fi
fi
if test "x$ac_vst3" = "xyes" -a -n "$ac_vst3sdk"; then
PKG_CHECK_MODULES([XCB], [xcb], [ac_vst3_xcb="yes"], [ac_vst3_xcb="no"])
if test "x$ac_vst3_xcb" = "xyes"; then
ac_cflags="$ac_cflags $XCB_CFLAGS"
ac_libs="$ac_libs $XCB_LIBS"
fi
AC_DEFINE(CONFIG_VST3, 1, [Define if VST3 plug-in support is avilable.])
AC_SUBST(ac_vst3sdk)
fi
# Check for JACK session headers availability.
if test "x$ac_jack_session" = "xyes"; then
AC_CHECK_HEADER(jack/session.h, [ac_jack_session="yes"], [ac_jack_session="no"])
if test "x$ac_jack_session" = "xyes"; then
AC_DEFINE(CONFIG_JACK_SESSION, 1, [Define if JACK session support is available.])
else
AC_MSG_WARN([*** jack/session.h file not found.])
AC_MSG_WARN([*** JACK session support will be disabled.])
fi
fi
# Check for JACK metadata headers availability.
if test "x$ac_jack_metadata" = "xyes"; then
AC_CHECK_HEADER(jack/metadata.h, [ac_jack_metadata="yes"], [ac_jack_metadata="no"])
if test "x$ac_jack_metadata" = "xyes"; then
AC_DEFINE(CONFIG_JACK_METADATA, 1, [Define if JACK metadata support is available.])
else
AC_MSG_WARN([*** jack/metadata.h file not found.])
AC_MSG_WARN([*** JACK metadata support will be disabled.])
fi
fi
# Check for jack_set_port_rename_callback
AC_CHECK_LIB(jack, jack_set_port_rename_callback, [ac_jack_port_rename="yes"], [ac_jack_port_rename="no"])
if test "x$ac_jack_port_rename" = "xyes"; then
AC_TRY_COMPILE([#include <jack/jack.h>], [
void port_rename(jack_port_id_t, const char *, const char *, void *);
jack_set_port_rename_callback(0, port_rename, 0);
], ac_jack_port_rename="yes", ac_jack_port_rename="no")
fi
if test "x$ac_jack_port_rename" = "xyes"; then
AC_DEFINE(CONFIG_JACK_PORT_RENAME, 1, [Define if jack_set_port_rename_callback is available.])
fi
# Check for NSM support.
if test "x$ac_nsm" = "xyes"; then
AC_DEFINE(CONFIG_NSM, 1, [Define if NSM support is available.])
fi
# Check for unique/single instance support.
if test "x$ac_xunique" = "xyes"; then
if test $ac_qt_version_major -lt 6; then
PKG_CHECK_MODULES([QT5NETWORK], [Qt5Network], [ac_xunique="yes"], [ac_xunique="no"])
else
PKG_CHECK_MODULES([QT6NETWORK], [Qt6Network], [ac_xunique="yes"], [ac_xunique="no"])
fi
fi
if test "x$ac_xunique" = "xyes"; then
AC_DEFINE(CONFIG_XUNIQUE, 1, [Define if unique/single instance is enabled.])
ac_qnetwork="network"
fi
AC_SUBST(ac_qnetwork)
# Check for gradient eye-candy.
if test "x$ac_gradient" = "xyes"; then
AC_DEFINE(CONFIG_GRADIENT, 1, [Define if gradient eye-candy is enabled.])
fi
# Check for debugging stack-trace.
if test "x$ac_stacktrace" = "xyes"; then
AC_DEFINE(CONFIG_STACKTRACE, 1, [Define if debugger stack-trace is enabled.])
fi
AC_SUBST(ac_cflags)
AC_SUBST(ac_ldflags)
AC_SUBST(ac_incpath)
AC_SUBST(ac_libs)
# Checks for typedefs, structures, and compiler characteristics.
# AC_C_CONST
# Checks for library functions.
AC_CHECK_FUNCS(system)
# Finally produce a configure header file and the makefiles.
AC_OUTPUT
# make clean > /dev/null 2>&1
# Output summary message
echo
echo " $PACKAGE_NAME $ac_build_version"
echo
echo " Build target . . . . . . . . . . . . . . . . . . .: $ac_debug"
echo
echo " JACK Audio Connection Kit support . . . . . . . .: $ac_libjack"
echo " ALSA MIDI Sequencer support . . . . . . . . . . .: $ac_libasound"
echo " General audio file support (libsndfile) . . . . .: $ac_libsndfile"
echo " Ogg Vorbis audio file support (libvorbis) . . . .: $ac_libvorbis"
echo " MPEG-1 Audio Layer 3 file support (libmad) . . . .: $ac_libmad"
echo " Sample-rate conversion support (libsamplerate) . .: $ac_libsamplerate"
echo " Pitch-shifting support (librubberband) . . . . . .: $ac_librubberband"
echo " Beat-detection support (libaubio) . . . . . . . .: $ac_libaubio"
echo " OSC service support (liblo) . . . . . . . . . . .: $ac_liblo"
echo " Archive/Zip file support (zlib) . . . . . . . . .: $ac_libz"
echo " IEEE 32bit float optimizations . . . . . . . . . .: $ac_float32"
echo " SSE optimization support (x86) . . . . . . . . . .: $ac_sse"
echo " LADSPA plug-in support . . . . . . . . . . . . . .: $ac_ladspa"
echo " DSSI plug-in support . . . . . . . . . . . . . . .: $ac_dssi"
echo " VST plug-in support . . . . . . . . . . . . . . .: $ac_vst"
echo " VST3 plug-in support . . . . . . . . . . . . . . .: $ac_vst3"
echo " LV2 plug-in support . . . . . . . . . . . . . . .: $ac_lv2"
echo " LV2 plug-in support (liblilv) . . . . . . . . . .: $ac_liblilv"
echo " LV2 plug-in UI support . . . . . . . . . . . . . .: $ac_lv2_ui"
echo " LV2 plug-in UI support (libsuil) . . . . . . . . .: $ac_libsuil"
echo " LV2 plug-in External UI support . . . . . . . . .: $ac_lv2_external_ui"
echo " LV2 plug-in MIDI/Event support (DEPRECATED) . . .: $ac_lv2_event"
echo " LV2 plug-in MIDI/Atom support . . . . . . . . . .: $ac_lv2_atom"
echo " LV2 plug-in CVPort support (DUMMY) . . . . . . . .: $ac_lv2_cvport"
echo " LV2 plug-in Worker/Schedule support . . . . . . .: $ac_lv2_worker"
echo " LV2 plug-in State support . . . . . . . . . . . .: $ac_lv2_state"
echo " LV2 plug-in State Files support . . . . . . . . .: $ac_lv2_state_files"
echo " LV2 plug-in State Make Path support (DANGEROUS) .: $ac_lv2_state_make_path"
echo " LV2 plug-in Programs support . . . . . . . . . . .: $ac_lv2_programs"
echo " LV2 plug-in MIDNAM support . . . . . . . . . . . .: $ac_lv2_midnam"
echo " LV2 plug-in Presets support . . . . . . . . . . .: $ac_lv2_presets"
echo " LV2 plug-in Patch support . . . . . . . . . . . .: $ac_lv2_patch"
echo " LV2 plug-in Port-event support (EXPERIMENTAL) . .: $ac_lv2_port_event"
echo " LV2 plug-in Time support . . . . . . . . . . . . .: $ac_lv2_time"
echo " LV2 plug-in Time/position support . . . . . . . .: $ac_lv2_time_position"
echo " LV2 plug-in Options support . . . . . . . . . . .: $ac_lv2_options"
echo " LV2 plug-in Buf-size support . . . . . . . . . . .: $ac_lv2_buf_size"
echo " LV2 plug-in Parameters support . . . . . . . . . .: $ac_lv2_parameters"
echo " LV2 plug-in UI Touch interface support . . . . . .: $ac_lv2_ui_touch"
echo " LV2 plug-in UI Request-value support . . . . . . .: $ac_lv2_ui_req_value"
echo " LV2 plug-in UI Idle interface support . . . . . .: $ac_lv2_ui_idle"
echo " LV2 plug-in UI Show interface support . . . . . .: $ac_lv2_ui_show"
echo " LV2 plug-in UI GTK2 native support . . . . . . . .: $ac_lv2_ui_gtk2"
echo " LV2 plug-in UI X11 native support . . . . . . . .: $ac_lv2_ui_x11"
echo
echo " JACK Session support . . . . . . . . . . . . . . .: $ac_jack_session"
echo " JACK Latency support . . . . . . . . . . . . . . .: $ac_jack_latency"
echo " JACK Metadata support . . . . . . . . . . . . . .: $ac_jack_metadata"
echo
echo " Non/New Session Management (NSM) support . . . . .: $ac_nsm"
echo
echo " VeSTige header support . . . . . . . . . . . . . .: $ac_vestige"
echo " Unique/Single instance support . . . . . . . . . .: $ac_xunique"
echo " Gradient eye-candy . . . . . . . . . . . . . . . .: $ac_gradient"
echo " Debugger stack-trace (gdb) . . . . . . . . . . . .: $ac_stacktrace"
echo
echo " Install prefix . . . . . . . . . . . . . . . . . .: $ac_prefix"
echo
echo "Now type 'make', followed by 'make install' as root."
echo
|