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
|
## Process this file with autoconf to produce configure script
## Copyright (C) 2010 University of Helsinki
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
# Information on package
HFST_NAME=hfst
HFST_MAJOR=3
HFST_MINOR=16
HFST_EXTENSION=2
HFST_VERSION=$HFST_MAJOR.$HFST_MINOR.$HFST_EXTENSION
### When the VERSION is INCREMENTED, REMEMBER to increment the LONGVERSION too.
# for package-config pc file
LIBHFST_NAME=hfst
LIBHFST_MAJOR=3
LIBHFST_MINOR=16
LIBHFST_EXTENSION=2
LIBHFST_VERSION=$LIBHFST_MAJOR.$LIBHFST_MINOR.$LIBHFST_EXTENSION
AC_INIT([hfst],[3.16.2],[hfst-bugs@helsinki.fi],[hfst])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([-Wall std-options foreign check-news subdir-objects])
# For automake >= 1.12
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([libhfst/src/HfstTransducer.h])
AC_CONFIG_HEADERS([config.h libhfst/src/hfst.hpp])
AC_SUBST([LIBHFST_MAJOR], [3])
AC_SUBST([LIBHFST_MINOR], [16])
AC_SUBST([LIBHFST_EXTENSION], [2])
AC_SUBST([LIBHFST_VERSION], [3.16.2])
AC_SUBST([LIBHFST_NAME], [hfst])
# long version = version vector cast in base 10000, for automatic comparisons
# e.g.: 3.3.2 = 0003 0000 0000 + 0003 0000 + 0002
# Experiment to calculate the HFST_LONGVERSION via the other version strings:
# HFST_LONGVERSION_STRING=$LIBHFST_MAJOR * 10000 * 10000 + \
# $LIBHFST_MINOR * 10000 + $LIBHFST_EXTENSION + "L"
# NB! It turned out to be not portable, and can't be used!
AC_DEFINE([HFST_LONGVERSION], [300160002L],
[Define to hfst version vector as long in base 10000])
AC_DEFINE([HFST_REVISION], ["$Revision$"],
[Automatically substitute to configure.ac revision])
AC_DEFINE_UNQUOTED([HFST_STRING], ["$PACKAGE_STRING"],
[Define to libhfst pretty name for programs to print])
# allow backends to be removed
AC_ARG_WITH([sfst],
[AS_HELP_STRING([--with-sfst],
[process unweighted fsts with SFST @<:@default=yes@:>@])],
[],
[with_sfst=yes])
AS_IF([test "x$with_sfst" != xno], [AC_DEFINE([HAVE_SFST], [1],
[Define to compile SFST support in HFST])])
AS_IF([test "x$with_sfst" == xlean], [AC_DEFINE([HAVE_SFST], [0], [Define not to compile full SFST support in HFST])
AC_DEFINE([HAVE_LEAN_SFST], [1], [Define to compile lean SFST support in HFST])])
AM_CONDITIONAL([WANT_SFST], [test x$with_sfst != xno -a x$with_sfst != xlean])
AM_CONDITIONAL([WANT_LEAN_SFST], [test x$with_sfst == xlean])
AC_ARG_WITH([openfst],
[AS_HELP_STRING([--with-openfst],
[process weighted fsts with OpenFst @<:@default=yes@:>@])],
[],
[with_openfst=yes])
AS_IF([test "x$with_openfst" != xno], [AC_DEFINE([HAVE_OPENFST], [1],
[Define to compile OpenFst support in HFST])])
AM_CONDITIONAL([WANT_OPENFST], [test x$with_openfst != xno])
AC_ARG_WITH([openfst-log],
[AS_HELP_STRING([--with-openfst-log],
[enable logarithmic weights @<:@default=yes@:>@])],
[],
[with_openfst_log=yes])
AS_IF([test "x$with_openfst_log" != xno], [AC_DEFINE([HAVE_OPENFST_LOG], [1],
[Define to compile OpenFst with log weight support in HFST])])
AS_IF([test "x$with_openfst_log" == xlean], [AC_DEFINE([HAVE_OPENFST_LOG], [0], [Define not to compile OpenFst with full log weight support in HFST])
AC_DEFINE([HAVE_LEAN_OPENFST_LOG], [1], [Define to compile OpenFst with lean log weight support in HFST])])
AM_CONDITIONAL([WANT_OPENFST_LOG], [test x$with_openfst_log != xno -a x$with_openfst_log != xlean])
AM_CONDITIONAL([WANT_LEAN_OPENFST_LOG], [test x$with_openfst_log == xlean])
AC_ARG_WITH([foma],
[AS_HELP_STRING([--with-foma],
[process unweighted fsts with foma @<:@default=yes@:>@])],
[],
[with_foma=yes])
AS_IF([test "x$with_foma" != xno], [AC_DEFINE([HAVE_FOMA], [1],
[Define to compile foma support in HFST])])
AM_CONDITIONAL([WANT_FOMA], [test x$with_foma != xno])
AC_ARG_WITH([xfsm],
[AS_HELP_STRING([--with-xfsm],
[process unweighted fsts with xfsm @<:@default=no@:>@])],
[],
[with_xfsm=no])
AS_IF([test "x$with_xfsm" != xno], [AC_DEFINE([HAVE_XFSM], [1],
[Define to compile xfsm support in HFST])])
AM_CONDITIONAL([WANT_XFSM], [test x$with_xfsm != xno])
AS_IF([test "x$with_xfsm" != "xno"],
[AC_CHECK_LIB([xfsm], [main], [], AC_MSG_ERROR([xfsm back-end requested but libxfsm not found]))])
AS_IF([test "x$with_xfsm" != "xno"],
[AC_CHECK_HEADER([xfsm/xfsm_api.h], [xfsmheader_exists=yes], AC_MSG_ERROR([xfsm back-end requested but libxfsm header not found]))])
### Add here your library ###
#AC_ARG_WITH([my_transducer_library],
# [AS_HELP_STRING([--with-my-transducer-library],
# [process unweighted fsts with my transducer library @<:@default=no@:>@])],
# [],
# [with_my_transducer_library=no])
#AS_IF([test "x$with_my_transducer_library" != xno], [AC_DEFINE([HAVE_MY_TRANSDUCER_LIBRARY], [1],
# [Define to compile my transducer library support in HFST])])
#AM_CONDITIONAL([WANT_MY_TRANSDUCER_LIBRARY], [test x$with_my_transducer_library != xno])
AC_ARG_WITH([hfstol],
[AS_HELP_STRING([--with-hfstol],
[run fsts with hfst optimized lookup library @<:@default=bundled@:>@])],
[],
[with_hfstol=bundled])
AS_IF([test "x$with_hfstol" != xno], [AC_DEFINE([HAVE_HFSTOL], [1],
[Define to compile optimized lookup support in HFST])])
AM_CONDITIONAL([WANT_HFSTOL], [test x$with_hfstol != xno])
AS_IF([test "x$with_sfst" == "xno" -a "x$with_openfst" == "xno" -a "x$with_foma" == "xno" -a "x$with_hfstol" == "xno"], [AC_MSG_ERROR([must build with at least one fst backend])])
# make readline optional since mac os x has sucky implementation of readline
AC_ARG_WITH([readline],
[AS_HELP_STRING([--with-readline],
[use readline for interactive programs @<:@default=no@:>@])],
[with_readline=$withval],
[with_readline=no])
AM_CONDITIONAL([WANT_READLINE], [test x$with_readline != xno])
# make it possible to disable loading entries from shared object (openfst back-end feature),
# since this adds a dependecy on dl library
AC_ARG_ENABLE([load_so_entries],
[AS_HELP_STRING([--enable-load-so-entries],
[enable loading entries from shared objects (openfst feature) @<:@default=yes@:>@])],
[enable_load_so_entries=$withval],
[enable_load_so_entries=yes])
AS_IF([test "x$enable_load_so_entries" != xno], [AC_DEFINE([ENABLE_LOAD_SO_ENTRIES], [1],
[Define to compile with so entry loading enabled])])
AC_ARG_ENABLE([all_tools],
[AS_HELP_STRING([--enable-all-tools],
[build all tools (excluding legacy programs which must be explicitly enabled with --enable-twolc-script and --enable-train-tagger) @<:@default=no@:>@])],
[enable_all_tools=$enableval],
[enable_all_tools=no])
AC_ARG_ENABLE([no_tools],
[AS_HELP_STRING([--enable-no-tools],
[build no tools @<:@default=no@:>@])],
[enable_no_tools=$enableval],
[enable_no_tools=no])
AM_CONDITIONAL([ENABLE_NO_TOOLS], [test x$enable_no_tools != xno])
# allow programs to be built separately (sort alphabetically)
AC_ARG_ENABLE([affix_guessify],
[AS_HELP_STRING([--enable-affix-guessify],
[build affix-guessify tool @<:@default=yes@:>@])],
[enable_affix_guessify=$enableval],
[if test x$enable_no_tools != xno; then enable_affix_guessify=no; else enable_affix_guessify=yes; fi])
AM_CONDITIONAL([WANT_AFFIX_GUESSIFY], [test x$enable_affix_guessify != xno])
AC_ARG_ENABLE([calculate],
[AS_HELP_STRING([--enable-calculate],
[build calculate tool @<:@default=yes@:>@])],
[enable_calculate=$enableval],
[if test x$enable_no_tools != xno; then enable_calculate=no; else enable_calculate=yes; fi])
AM_CONDITIONAL([WANT_CALCULATE], [test x$enable_calculate != xno])
AC_ARG_ENABLE([check-alpha],
[AS_HELP_STRING([--enable-check-alpha],
[build alpha tool @<:@default=yes@:>@])],
[enable_compare=$enableval],
[if test x$enable_no_tools != xno; then enable_check_alpha=no; else enable_check_alpha=yes; fi])
AM_CONDITIONAL([WANT_ALPHAFIX], [test x$enable_check_alpha != xno])
AC_ARG_ENABLE([compare],
[AS_HELP_STRING([--enable-compare],
[build compare tool @<:@default=yes@:>@])],
[enable_compare=$enableval],
[if test x$enable_no_tools != xno; then enable_compare=no; else enable_compare=yes; fi])
AM_CONDITIONAL([WANT_COMPARE], [test x$enable_compare != xno])
AC_ARG_ENABLE([compose],
[AS_HELP_STRING([--enable-compose],
[build compose tool @<:@default=yes@:>@])],
[enable_compose=$enableval],
[if test x$enable_no_tools != xno; then enable_compose=no; else enable_compose=yes; fi])
AM_CONDITIONAL([WANT_COMPOSE], [test x$enable_compose != xno])
AC_ARG_ENABLE([compose_intersect],
[AS_HELP_STRING([--enable-compose-intersect],
[build compose-intersect tool @<:@default=yes@:>@])],
[enable_compose_intersect=$enableval],
[if test x$enable_no_tools != xno; then enable_compose_intersect=no; else enable_compose_intersect=yes; fi])
AM_CONDITIONAL([WANT_COMPOSE_INTERSECT], [test x$enable_compose_intersect != xno])
AC_ARG_ENABLE([concatenate],
[AS_HELP_STRING([--enable-concatenate],
[build concatenate tool @<:@default=yes@:>@])],
[enable_concatenate=$enableval],
[if test x$enable_no_tools != xno; then enable_concatenate=no; else enable_concatenate=yes; fi])
AM_CONDITIONAL([WANT_CONCATENATE], [test x$enable_concatenate != xno])
AC_ARG_ENABLE([conjunct],
[AS_HELP_STRING([--enable-conjunct],
[build conjunct tool @<:@default=yes@:>@])],
[enable_conjunct=$enableval],
[if test x$enable_no_tools != xno; then enable_conjunct=no; else enable_conjunct=yes; fi])
AM_CONDITIONAL([WANT_CONJUNCT], [test x$enable_conjunct != xno])
AC_ARG_ENABLE([multiply],
[AS_HELP_STRING([--enable-multiply],
[build multiply tool @<:@default=yes@:>@])],
[enable_multiply=$enableval],
[if test x$enable_no_tools != xno; then enable_multiply=no; else enable_multiply=yes; fi])
AM_CONDITIONAL([WANT_MULTIPLY], [test x$enable_multiply != xno])
AC_ARG_ENABLE([determinize],
[AS_HELP_STRING([--enable-determinize],
[build determinize tool @<:@default=yes@:>@])],
[enable_determinize=$enableval],
[if test x$enable_no_tools != xno; then enable_determinize=no; else enable_determinize=yes; fi])
AM_CONDITIONAL([WANT_DETERMINIZE], [test x$enable_determinize != xno])
AC_ARG_ENABLE([dump-alphabets],
[AS_HELP_STRING([--enable-dump-alphabets],
[build alpahbet dumper @<:@default=yes@:>@])],
[enable_dump_alphabets=$enableval],
[if test x$enable_no_tools != xno; then enable_dump_alphabets=no; else enable_dump_alphabets=yes; fi])
AM_CONDITIONAL([WANT_DUMP_ALPHA], [test x$enable_dump_alphabets != xno])
AC_ARG_ENABLE([priority-disjunct],
[AS_HELP_STRING([--enable-priority-disjunct],
[build priority disjunct tool @<:@default=yes@:>@])],
[enable_priority_disjunct=$enableval],
[if test x$enable_no_tools != xno; then enable_priority_disjunct=no; else enable_priority_disjunct=yes; fi])
AM_CONDITIONAL([WANT_PRIORITY_DISJUNCT], [test x$enable_priority_disjunct != xno])
AC_ARG_ENABLE([disjunct],
[AS_HELP_STRING([--enable-disjunct],
[build disjunct tool @<:@default=yes@:>@])],
[enable_disjunct=$enableval],
[if test x$enable_no_tools != xno; then enable_disjunct=no; else enable_disjunct=yes; fi])
AM_CONDITIONAL([WANT_DISJUNCT], [test x$enable_disjunct != xno])
AC_ARG_ENABLE([expand_equivalences],
[AS_HELP_STRING([--enable-expand-equivalences],
[build acx tool @<:@default=no@:>@])],
[enable_expand_equivalences=$enableval],
[enable_expand_equivalences=$enable_all_tools])
AM_CONDITIONAL([WANT_EXPAND_EQUIVALENCES], [test x$enable_expand_equivalences != xno])
AC_ARG_ENABLE([edit_metadata],
[AS_HELP_STRING([--enable-edit-metadata],
[build metadata tool @<:@default=yes@:>@])],
[enable_edit_metadata=$enableval],
[if test x$enable_no_tools != xno; then enable_edit_metadata=no; else enable_edit_metadata=yes; fi])
AM_CONDITIONAL([WANT_EDIT_METADATA], [test x$enable_edit_metadata != xno])
AC_ARG_ENABLE([eliminate_flags],
[AS_HELP_STRING([--enable-eliminate-flags],
[build eliminate-flags tool @<:@default=yes@:>@])],
[enable_eliminate_flags=$enableval],
[if test x$enable_no_tools != xno; then enable_eliminate_flags=no; else enable_eliminate_flags=yes; fi])
AM_CONDITIONAL([WANT_ELIMINATE_FLAGS], [test x$enable_eliminate_flags != xno])
AC_ARG_ENABLE([format],
[AS_HELP_STRING([--enable-format],
[build format tool @<:@default=yes@:>@])],
[enable_format=$enableval],
[if test x$enable_no_tools != xno; then enable_format=no; else enable_format=yes; fi])
AM_CONDITIONAL([WANT_FORMAT], [test x$enable_format != xno])
AC_ARG_ENABLE([fst2fst],
[AS_HELP_STRING([--enable-fst2fst],
[build fst2fst tool @<:@default=yes@:>@])],
[enable_fst2fst=$enableval],
[if test x$enable_no_tools != xno; then enable_fst2fst=no; else enable_fst2fst=yes; fi])
AM_CONDITIONAL([WANT_FST2FST], [test x$enable_fst2fst != xno])
AC_ARG_ENABLE([fst2strings],
[AS_HELP_STRING([--enable-fst2strings],
[build fst2strings tool @<:@default=yes@:>@])],
[enable_fst2strings=$enableval],
[if test x$enable_no_tools != xno; then enable_fst2strings=no; else enable_fst2strings=yes; fi])
AM_CONDITIONAL([WANT_FST2STRINGS], [test x$enable_fst2strings != xno])
AC_ARG_ENABLE([fst2txt],
[AS_HELP_STRING([--enable-fst2txt],
[build fst2txt tool @<:@default=yes@:>@])],
[enable_fst2txt=$enableval],
[if test x$enable_no_tools != xno; then enable_fst2txt=no; else enable_fst2txt=yes; fi])
AM_CONDITIONAL([WANT_FST2TXT], [test x$enable_fst2txt != xno])
AC_ARG_ENABLE([grep],
[AS_HELP_STRING([--enable-grep],
[build grep tool @<:@default=yes@:>@])],
[enable_grep=$enableval],
[if test x$enable_no_tools != xno; then enable_grep=no; else enable_grep=yes; fi])
AM_CONDITIONAL([WANT_GREP], [test x$enable_grep != xno])
AC_ARG_ENABLE([guess],
[AS_HELP_STRING([--enable-guess],
[build guess tool @<:@default=yes@:>@])],
[enable_guess=$enableval],
[if test x$enable_no_tools != xno; then enable_guess=no; else enable_guess=yes; fi])
AM_CONDITIONAL([WANT_GUESS], [test x$enable_guess != xno])
AC_ARG_ENABLE([guessify],
[AS_HELP_STRING([--enable-guessify],
[build guessify tool @<:@default=yes@:>@])],
[enable_guessify=$enableval],
[if test x$enable_no_tools != xno; then enable_guessify=no; else enable_guessify=yes; fi])
AM_CONDITIONAL([WANT_GUESSIFY], [test x$enable_guessify != xno])
AC_ARG_ENABLE([head],
[AS_HELP_STRING([--enable-head],
[build head tool @<:@default=yes@:>@])],
[enable_head=$enableval],
[if test x$enable_no_tools != xno; then enable_head=no; else enable_head=yes; fi])
AM_CONDITIONAL([WANT_HEAD], [test x$enable_head != xno])
AC_ARG_ENABLE([info],
[AS_HELP_STRING([--enable-info],
[build info tool @<:@default=yes@:>@])],
[enable_info=$enableval],
[if test x$enable_no_tools != xno; then enable_info=no; else enable_info=yes; fi])
AM_CONDITIONAL([WANT_INFO], [test x$enable_info != xno])
AC_ARG_ENABLE([insert-freely],
[AS_HELP_STRING([--enable-insert-freely],
[build insert-freely tool @<:@default=yes@:>@])],
[enable_insert_freely=$enableval],
[if test x$enable_no_tools != xno; then enable_insert_freely=no; else enable_insert_freely=yes; fi])
AM_CONDITIONAL([WANT_INSERT_FREELY], [test x$enable_insert_freely != xno])
AC_ARG_ENABLE([invert],
[AS_HELP_STRING([--enable-invert],
[build invert tool @<:@default=yes@:>@])],
[enable_invert=$enableval],
[if test x$enable_no_tools != xno; then enable_invert=no; else enable_invert=yes; fi])
AM_CONDITIONAL([WANT_INVERT], [test x$enable_invert != xno])
AC_ARG_ENABLE([kill-paths],
[AS_HELP_STRING([--enable-kill-paths],
[build path killer tool @<:@default=yes@:>@])],
[enable_compare=$enableval],
[if test x$enable_no_tools != xno; then enable_kill_paths=no; else enable_kill_paths=yes; fi])
AM_CONDITIONAL([WANT_PATHKILL], [test x$enable_kill_paths != xno])
AC_ARG_ENABLE([twolc],
[AS_HELP_STRING([--enable-twolc],
[build twolc @<:@default=yes@:>@])],
[enable_twolc=$enableval],
[if test x$enable_no_tools != xno; then enable_twolc=no; else enable_twolc=yes; fi])
AM_CONDITIONAL([WANT_TWOLC], [test "x$enable_twolc" != xno])
AC_ARG_ENABLE([twolc-script],
[AS_HELP_STRING([--enable-twolc-script],
[build script implementation of twolc @<:@default=no@:>@])],
[enable_twolc_script=$enableval],
[enable_twolc_script=no])
AM_CONDITIONAL([WANT_TWOLC_SCRIPT], [test "x$enable_twolc_script" != xno])
AC_ARG_ENABLE([tagger],
[AS_HELP_STRING([--enable-tagger],
[build tagger utilities @<:@default=no@:>@])],
[enable_tagger=$enableval],
[enable_tagger=$enable_all_tools])
AM_CONDITIONAL([WANT_TAGGER], [test "x$enable_tagger" != xno])
AC_ARG_ENABLE([train-tagger],
[AS_HELP_STRING([--enable-train-tagger],
[build tagger training utilities @<:@default=no@:>@])],
[enable_train_tagger=$enableval],
[enable_train_tagger=no])
AM_CONDITIONAL([WANT_TRAIN_TAGGER], [test "x$enable_train_tagger" != xno])
AC_ARG_ENABLE([lexc],
[AS_HELP_STRING([--enable-lexc],
[build lexc tool @<:@default=yes@:>@])],
[enable_lexc=$enableval],
[if test x$enable_no_tools != xno; then enable_lexc=no; else enable_lexc=yes; fi])
AM_CONDITIONAL([WANT_LEXC], [test "x$enable_lexc" != xno])
AC_ARG_ENABLE([lookup],
[AS_HELP_STRING([--enable-lookup],
[build lookup tool @<:@default=yes@:>@])],
[enable_lookup=$enableval],
[if test x$enable_no_tools != xno; then enable_lookup=no; else enable_lookup=yes; fi])
AM_CONDITIONAL([WANT_LOOKUP], [test x$enable_lookup != xno])
AC_ARG_ENABLE([flookup],
[AS_HELP_STRING([--enable-flookup],
[build flookup tool @<:@default=yes@:>@])],
[enable_flookup=$enableval],
[if test x$enable_no_tools != xno; then enable_flookup=no; else enable_flookup=yes; fi])
AM_CONDITIONAL([WANT_FLOOKUP], [test x$enable_flookup != xno])
AC_ARG_ENABLE([pair-test],
[AS_HELP_STRING([--enable-pair-test],
[build pair-test tool @<:@default=yes@:>@])],
[enable_pair_test=$enableval],
[if test x$enable_no_tools != xno; then enable_pair_test=no; else enable_pair_test=yes; fi])
AM_CONDITIONAL([WANT_PAIR_TEST], [test x$enable_pair_test != xno])
AC_ARG_ENABLE([minimize],
[AS_HELP_STRING([--enable-minimize],
[build minimize tool @<:@default=yes@:>@])],
[enable_minimize=$enableval],
[if test x$enable_no_tools != xno; then enable_minimize=no; else enable_minimize=yes; fi])
AM_CONDITIONAL([WANT_MINIMIZE], [test x$enable_minimize != xno])
AC_ARG_ENABLE([name],
[AS_HELP_STRING([--enable-name],
[build name tool @<:@default=yes@:>@])],
[enable_name=$enableval],
[if test x$enable_no_tools != xno; then enable_name=no; else enable_name=yes; fi])
AM_CONDITIONAL([WANT_NAME], [test x$enable_name != xno])
AC_ARG_ENABLE([optimized_lookup],
[AS_HELP_STRING([--enable-optimized-lookup],
[build optimized-lookup tool @<:@default=yes@:>@])],
[enable_optimized_lookup=$enableval],
[if test x$enable_no_tools != xno; then enable_optimized_lookup=no; else enable_optimized_lookup=yes; fi])
AM_CONDITIONAL([WANT_OPTIMIZED_LOOKUP], [test x$enable_optimized_lookup != xno])
AC_ARG_ENABLE([pmatch],
[AS_HELP_STRING([--enable-pmatch],
[build pmatch tool @<:@default=yes@:>@])],
[enable_pmatch=$enableval],
[if test x$enable_no_tools != xno; then enable_pmatch=no; else enable_pmatch=yes; fi])
AM_CONDITIONAL([WANT_PMATCH], [test x$enable_pmatch != xno])
AC_ARG_ENABLE([tokenize],
[AS_HELP_STRING([--enable-tokenize],
[build tokenizing tool @<:@default=yes@:>@])],
[enable_tokenize=$enableval],
[if test x$enable_no_tools != xno; then enable_tokenize=no; else enable_tokenize=yes; fi])
AM_CONDITIONAL([WANT_TOKENIZE], [test x$enable_tokenize != xno])
AC_ARG_ENABLE([project],
[AS_HELP_STRING([--enable-project],
[build project tool @<:@default=yes@:>@])],
[enable_project=$enableval],
[if test x$enable_no_tools != xno; then enable_project=no; else enable_project=yes; fi])
AM_CONDITIONAL([WANT_PROJECT], [test x$enable_project != xno])
AC_ARG_ENABLE([prune_alphabet],
[AS_HELP_STRING([--enable-prune-alphabet],
[build prune-alphabet tool @<:@default=yes@:>@])],
[enable_prune_alphabet=$enableval],
[if test x$enable_no_tools != xno; then enable_prune_alphabet=no; else enable_prune_alphabet=yes; fi])
AM_CONDITIONAL([WANT_PRUNE_ALPHABET], [test x$enable_prune_alphabet != xno])
AC_ARG_ENABLE([proc],
[AS_HELP_STRING([--enable-proc],
[build text processing tool @<:@default=no@:>@])],
[enable_proc=$enableval],
[enable_proc=$enable_all_tools])
AM_CONDITIONAL([WANT_PROC], [test x$enable_proc != xno])
AC_ARG_ENABLE([push_labels],
[AS_HELP_STRING([--enable-push-labels],
[build push-labels tool @<:@default=yes@:>@])],
[enable_push_labels=$enableval],
[if test x$enable_no_tools != xno; then enable_push_labels=no; else enable_push_labels=yes; fi])
AM_CONDITIONAL([WANT_PUSH_LABELS], [test x$enable_push_labels != xno])
AC_ARG_ENABLE([push_weights],
[AS_HELP_STRING([--enable-push-weights],
[build push-weights tool @<:@default=yes@:>@])],
[enable_push_weights=$enableval],
[if test x$enable_no_tools != xno; then enable_push_weights=no; else enable_push_weights=yes; fi])
AM_CONDITIONAL([WANT_PUSH_WEIGHTS], [test x$enable_push_weights != xno])
AC_ARG_ENABLE([realign],
[AS_HELP_STRING([--enable-realign],
[build realign tool @<:@default=yes@:>@])],
[enable_realign=$enableval],
[if test x$enable_no_tools != xno; then enable_realign=no; else enable_realign=yes; fi])
AM_CONDITIONAL([WANT_REALIGN], [test x$enable_realign != xno])
AC_ARG_ENABLE([regexp2fst],
[AS_HELP_STRING([--enable-regexp2fst],
[build regexp2fst tool @<:@default=yes@:>@])],
[enable_regexp2fst=$enableval],
[if test x$enable_no_tools != xno; then enable_regexp2fst=no; else enable_regexp2fst=yes; fi])
AM_CONDITIONAL([WANT_REGEXP2FST], [test x$enable_regexp2fst != xno])
AC_ARG_ENABLE([pmatch2fst],
[AS_HELP_STRING([--enable-pmatch2fst],
[build pmatch2fst tool @<:@default=yes@:>@])],
[enable_pmatch2fst=$enableval],
[if test x$enable_no_tools != xno; then enable_pmatch2fst=no; else enable_pmatch2fst=yes; fi])
AM_CONDITIONAL([WANT_PMATCH2FST], [test x$enable_pmatch2fst != xno])
AC_ARG_ENABLE([remove_epsilons],
[AS_HELP_STRING([--enable-remove-epsilons],
[build remove-epsilons tool @<:@default=yes@:>@])],
[enable_remove_epsilons=$enableval],
[if test x$enable_no_tools != xno; then enable_remove_epsilons=no; else enable_remove_epsilons=yes; fi])
AM_CONDITIONAL([WANT_REMOVE_EPSILONS], [test x$enable_remove_epsilons != xno])
AC_ARG_ENABLE([repeat],
[AS_HELP_STRING([--enable-repeat],
[build repeat tool @<:@default=yes@:>@])],
[enable_repeat=$enableval],
[if test x$enable_no_tools != xno; then enable_repeat=no; else enable_repeat=yes; fi])
AM_CONDITIONAL([WANT_REPEAT], [test x$enable_repeat != xno])
AC_ARG_ENABLE([reverse],
[AS_HELP_STRING([--enable-reverse],
[build reverse tool @<:@default=yes@:>@])],
[enable_reverse=$enableval],
[if test x$enable_no_tools != xno; then enable_reverse=no; else enable_reverse=yes; fi])
AM_CONDITIONAL([WANT_REVERSE], [test x$enable_reverse != xno])
AC_ARG_ENABLE([reweight],
[AS_HELP_STRING([--enable-reweight],
[build reweight tool @<:@default=yes@:>@])],
[enable_reweight=$enableval],
[if test x$enable_no_tools != xno; then enable_reweight=no; else enable_reweight=yes; fi])
AM_CONDITIONAL([WANT_REWEIGHT], [test x$enable_reweight != xno])
AC_ARG_ENABLE([split],
[AS_HELP_STRING([--enable-split],
[build split tool @<:@default=yes@:>@])],
[enable_split=$enableval],
[if test x$enable_no_tools != xno; then enable_split=no; else enable_split=yes; fi])
AM_CONDITIONAL([WANT_SPLIT], [test x$enable_split != xno])
AC_ARG_ENABLE([shuffle],
[AS_HELP_STRING([--enable-shuffle],
[build shuffle tool @<:@default=no@:>@])],
[enable_shuffle=$enableval],
[enable_shuffle=$enable_all_tools])
AM_CONDITIONAL([WANT_SHUFFLE], [test x$enable_shuffle != xno])
AC_ARG_ENABLE([strings2fst],
[AS_HELP_STRING([--enable-strings2fst],
[build strings2fst tool @<:@default=yes@:>@])],
[enable_strings2fst=$enableval],
[if test x$enable_no_tools != xno; then enable_strings2fst=no; else enable_strings2fst=yes; fi])
AM_CONDITIONAL([WANT_STRINGS2FST], [test x$enable_strings2fst != xno])
AC_ARG_ENABLE([substitute],
[AS_HELP_STRING([--enable-substitute],
[build substitution tool @<:@default=yes@:>@])],
[enable_substitute=$enableval],
[if test x$enable_no_tools != xno; then enable_substitute=no; else enable_substitute=yes; fi])
AM_CONDITIONAL([WANT_SUBSTITUTE], [test x$enable_substitute != xno])
AC_ARG_ENABLE([subtract],
[AS_HELP_STRING([--enable-subtract],
[build subtract tool @<:@default=yes@:>@])],
[enable_subtract=$enableval],
[if test x$enable_no_tools != xno; then enable_subtract=no; else enable_subtract=yes; fi])
AM_CONDITIONAL([WANT_SUBTRACT], [test x$enable_subtract != xno])
AC_ARG_ENABLE([summarize],
[AS_HELP_STRING([--enable-summarize],
[build summarize tool @<:@default=yes@:>@])],
[enable_summarize=$enableval],
[if test x$enable_no_tools != xno; then enable_summarize=no; else enable_summarize=yes; fi])
AM_CONDITIONAL([WANT_SUMMARIZE], [test x$enable_summarize != xno])
AC_ARG_ENABLE([tail],
[AS_HELP_STRING([--enable-tail],
[build tail tool @<:@default=yes@:>@])],
[enable_tail=$enableval],
[if test x$enable_no_tools != xno; then enable_tail=no; else enable_tail=yes; fi])
AM_CONDITIONAL([WANT_TAIL], [test x$enable_tail != xno])
AC_ARG_ENABLE([traverse],
[AS_HELP_STRING([--enable-traverse],
[build traversal tool @<:@default=no@:>@])],
[enable_traverse=$enableval],
[enable_traverse=$enable_all_tools])
AM_CONDITIONAL([WANT_TRAVERSE], [test x$enable_test != xno])
AC_ARG_ENABLE([test],
[AS_HELP_STRING([--enable-test],
[build test tool @<:@default=yes@:>@])],
[enable_test=$enableval],
[if test x$enable_no_tools != xno; then enable_test=no; else enable_test=yes; fi])
AM_CONDITIONAL([WANT_TEST], [test x$enable_test != xno])
AC_ARG_ENABLE([txt2fst],
[AS_HELP_STRING([--enable-txt2fst],
[build txt2fst tool @<:@default=yes@:>@])],
[enable_txt2fst=$enableval],
[if test x$enable_no_tools != xno; then enable_txt2fst=no; else enable_txt2fst=yes; fi])
AM_CONDITIONAL([WANT_TXT2FST], [test x$enable_txt2fst != xno])
AC_ARG_ENABLE([xfst],
[AS_HELP_STRING([--enable-xfst],
[build xfst tool @<:@default=yes@:>@])],
[enable_xfst=$enableval],
[if test x$enable_no_tools != xno; then enable_xfst=no; else enable_xfst=yes; fi])
AM_CONDITIONAL([WANT_XFST], [test x$enable_xfst != xno])
# Disable stress tests by default
AC_ARG_ENABLE([stress-tests],
[AS_HELP_STRING([--enable-stress-tests],
[include stress tests in check @<:@default=no@:>@])],
[enable_stress_tests=$enableval],
[enable_stress_tests=no])
AM_CONDITIONAL([WANT_STRESSTESTS], [test x$enable_stress_tests != xno])
# Disable fsmbook tests by default
AC_ARG_ENABLE([fsmbook-tests],
[AS_HELP_STRING([--enable-fsmbook-tests],
[perform fsmbook tests when make check is run @<:@default=no@:>@])],
[enable_fsmbook_tests=$enableval],
[enable_fsmbook_tests=no])
AM_CONDITIONAL([WANT_FSMBOOK_TESTS], [test x$enable_fsmbook_tests != xno])
AS_IF([test "x$enable_fsmbook_tests" != "xno" -a "x$enable_xfst" == "xno"],
[AC_MSG_FAILURE([fsmbook tests are not supported if hfst-xfst is disabled; enable hfst-xfst (with --enable-xfst) when using --enable-fsmbook-tests])])
# Checks for programs
AC_PROG_CC
AC_PROG_CXX
LT_INIT
AC_PROG_AWK
AC_PROG_CPP
AC_PROG_YACC
#Do not use *.h extension for parser header files, use newer *.hh
yacc_use_parser_h_extension=false
#Verify automake version 1.11 headers for yy files are .h, >= 1.12 uses .hh
automake_version=`automake --version | head -n 1 | cut '-d ' -f 4`
AC_DEFINE_UNQUOTED([AUTOMAKE_VERSION], [$automake_version], [Defines automake version])
AC_PROG_LEX([noyywrap])
AC_PATH_PROG([GETOPT], [getopts], [false])
AM_PATH_PYTHON([3.0],[],[false])
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PATH_PROG([DOXYGEN], [doxygen], [no])
AM_CONDITIONAL([CAN_DOXYGEN], [test x$DOXYGEN != xno])
# Checks for libraries
AC_LANG_PUSH([C++])
AS_IF([test "x$with_openfst" != "xno" -a "x$enable_load_so_entries" != "xno"],
[AC_CHECK_LIB([dl], [main])])
AS_IF([test "x$with_openfst" != "xno"],
[AC_CHECK_LIB([pthread], [main])]
[AC_CHECK_LIB([m], [main])])
AS_IF([test "x$ac_cv_lib_sfst_main" == xno -a "x$ac_cv_lib_sfst1_main" == xno],
[AC_MSG_FAILURE([sfst tests failed (--without-sfst to disable)])])
AC_LANG_POP
AC_LANG_PUSH([C])
AC_LANG_POP
AX_CHECK_ICU([50],[AC_DEFINE([USE_ICU_UNICODE], 1,
[if using icu for unicode string handling])],[AC_MSG_FAILURE([ICU-50 or newer is required])])
AS_IF([test "x$with_readline" = "xyes"],
[AC_SEARCH_LIBS([readline], [readline editline],
[AC_DEFINE([HAVE_READLINE], 1, [if readline can be used])],
[AC_MSG_FAILURE([readline test failed (--without-readline to disable)])])])
### Add here your library ###
#AS_IF([test "x$with_my_transducer_library" != "xno"],
# [AC_CHECK_LIB([my_transducer_library], [main], [],
# [AC_MSG_FAILURE([my transducer library test failed (--without-my-transducer-library to disable)])])])
# Checks for header files
AC_CHECK_HEADERS([limits.h stdlib.h string.h error.h glob.h locale.h langinfo.h])
AC_LANG_PUSH([C++])
found_fstlib_h=no
# Checks for highest supported C++ standard that the installed OpenFST will work with
# This settles for C++17 for OpenFST 1.7.9, but higher for >= 1.8.0
for version in 26 2c 23 2b 20 2a 17; do
version_flag="-std=c++${version}"
AX_CHECK_COMPILE_FLAG([${version_flag}], [
old_cxxflags="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS ${version_flag}"
AS_IF([test "x$with_openfst" != xno], [AC_CHECK_HEADER([fst/fstlib.h], [found_fstlib_h=yes; break], [])])
CXXFLAGS="$old_cxxflags"
AS_UNSET([ac_cv_header_fst_fstlib_h])
], [version_flag=none])
done
AS_IF([test "$version_flag" = none], [
AC_MSG_ERROR([Could not enable at least C++17 - upgrade your compiler])
])
CXXFLAGS="$CXXFLAGS ${version_flag}"
# Needed for M_LN2 and friends
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_USE_MATH_DEFINES"
# On 32bit x86, we need to use SSE for precise floating point arithmetics in OpenFST
AX_CHECK_COMPILE_FLAG([-msse], [CPPFLAGS="$CPPFLAGS -msse"], [])
AX_CHECK_COMPILE_FLAG([-msse2], [CPPFLAGS="$CPPFLAGS -msse2"], [])
AX_CHECK_COMPILE_FLAG([-mfpmath=sse], [CPPFLAGS="$CPPFLAGS -mfpmath=sse"], [])
AC_CHECK_HEADERS([ext/slist])
AS_IF([test "x$with_sfst" != "xno"],
[AC_CHECK_HEADERS([backward/hash_set ext/hash_set hash_set])]
[AC_CHECK_HEADERS([backward/hash_map ext/hash_map hash_map])])
AS_IF([test "x$with_readline" = "xyes"],
[AC_CHECK_HEADERS([readline/readline.h readline/history.h])])
### Add here your library ###
#AS_IF([test "x$with_my_transducer_library" != "xno"],
# [AC_CHECK_HEADERS([my_transducer_library/MyTransducerLibrary.h])])
# Checks for structures
AC_CHECK_DECLS([program_name, program_invocation_name, program_invocation_short_name])
AC_CHECK_DECLS([rl_completion_suppress_append, rl_completion_matches])
AC_CHECK_FUNCS([floor strchr strdup strerror strncasecmp strcspn strtol strtoul error error_at_line strndup getline getdelim getopt_long strtod xstrdup set_program_name setprogname setlocale nl_langinfo get_current_dir_name])
AC_CHECK_FUNCS([isatty])
AM_CONDITIONAL([WINDOWS], [test x$version_type = xwindows])
# Python bindings
AC_ARG_ENABLE([python-bindings],
AS_HELP_STRING([--enable-python-bindings],
[build python bindings (default=disabled)]),
[enable_python_bindings=$enableval],
[enable_python_bindings=no])
AM_CONDITIONAL([HAVE_PYTHON_BINDINGS], [test x$enable_python_bindings = xyes])
AS_IF([test "x$enable_python_bindings" = "xyes"], [
AM_PATH_PYTHON([3.4], [], [AC_MSG_WARN([Can't generate SWIG wrapper without Python])])
AC_CONFIG_FILES([python/Makefile python/test/Makefile])
AC_ARG_VAR([PYTHON_INSTALL_PARAMS], [Parameters to pass to the Python 3 module install step])
AS_IF([test "x$PYTHON_INSTALL_PARAMS" = "x"], [
PYTHON_INSTALL_PARAMS="--prefix=\$(prefix) --root=\$(DESTDIR)/"
])
])
AS_IF([test "x$with_openfst" != xno && test "x$found_fstlib_h" != xyes], [AC_CHECK_HEADER([fst/fstlib.h], [], [AC_MSG_ERROR([could not find OpenFST's fst/fstlib.h in include path])])])
AS_IF([test "x$with_foma" != xno], [PKG_CHECK_MODULES(FOMA, [libfoma >= 0.10.0])])
# config files
AC_CONFIG_FILES([Makefile doc/Makefile test/Makefile
test/libhfst/Makefile test/tools/Makefile
test/tools/fsmbook-tests/Makefile
libhfst/Makefile libhfst/src/Makefile
libhfst/src/c/Makefile
libhfst/src/implementations/Makefile
libhfst/src/parsers/Makefile
libhfst/hfst.pc libhfst/hfst_c.pc
tools/Makefile tools/src/Makefile tools/src/hfst-proc/Makefile
tools/src/hfst-twolc/Makefile
tools/src/hfst-twolc/src/Makefile
tools/src/hfst-twolc/test/Makefile
tools/src/hfst-tagger/Makefile
tools/src/hfst-tagger/src/Makefile
tools/src/hfst-tagger/test/Makefile
tools/src/parsers/Makefile
tools/src/parsers/test/Makefile
back-ends/Makefile
back-ends/sfst/Makefile
man/Makefile
scripts/Makefile])
# output
AC_OUTPUT
## keep the list alphabetically sorted (vim; !sort)
### Add your library to libhfst targets ###
# * with my transducer library: $with_my_transducer_library
cat <<EOF
-- Building $PACKAGE_STRING:
* libhfst with sfst: $with_sfst
* with openfst: $with_openfst
* with openfst log weights: $with_openfst_log
* with foma: $with_foma
* with optimized lookup: $with_hfstol
* tools including affix-guessify: $enable_affix_guessify
* calculate: $enable_calculate (sfstpl2fst)
* check-alpha: $enable_check_alpha
* compare: $enable_compare
* compose: $enable_compose
* concatenate: $enable_concatenate
* conjunct: $enable_conjunct (intersect)
* determinize: $enable_determinize (determinise)
* disjunct: $enable_disjunct (union)
* priority-disjunct: $enable_priority_disjunct (priority union)
* eliminate-flags: $enable_eliminate_flags
* format: $enable_format
* fst2fst: $enable_fst2fst
* fst2strings: $enable_fst2strings (expand)
* fst2txt: $enable_fst2txt
* grep: $enable_grep
* guessify: $enable_guessify
* guess: $enable_guess
* head: $enable_head
* invert: $enable_invert
* insert-freely: $enable_insert_freely
* kill-paths: $enable_kill_paths
* lexc: $enable_lexc
* lookup: $enable_lookup
* minimize: $enable_minimize (minimise)
* name: $enable_name
* optimized-lookup: $enable_optimized_lookup
* pmatch: $enable_pmatch
* proc: $enable_proc
* project: $enable_project
* prune-alphabet: $enable_prune_alphabet
* push-labels: $enable_push_labels
* push-weights: $enable_push_weights
* realign: $enable_realign
* regexp2fst: $enable_regexp2fst
* pmatch2fst: $enable_pmatch2fst
* remove-epsilons: $enable_remove_epsilons
* repeat: $enable_repeat
* reverse: $enable_reverse
* shuffle: $enable_shuffle
* split: $enable_split
* strings2fst: $enable_strings2fst
* substitute: $enable_substitute
* subtract: $enable_subtract (minus)
* summarize: $enable_summarize (summarise)
* tail: $enable_tail
* test: $enable_test
* tokenize: $enable_tokenize (tokenise)
* twolc: $enable_twolc
* twolc-script: $enable_twolc_script
* tagger: $enable_tagger
* train-tagger: $enable_train_tagger
* txt2fst: $enable_txt2fst
* xfst: $enable_xfst
* unicode parsed in corpus tools with: ICU $ICU_VERSION
EOF
dnl stick important warnings to bottom
dnl important licensing information
dnl according to GNU GPLv2 strict (not plus) is incompatible with Apache
dnl hope end users never disable ofst
AS_IF([test "x$with_openfst" == "xno"],
[AC_MSG_WARN([Disabling openfst backend will severely cripple libhfst])])
AS_IF([test "x$with_readline" == "xno"],
[AC_MSG_WARN([HFST tools will be compiled without readline; editing user input on command line is not supported; for better support consider using --with-readline])])
dnl warn about missing "important" tools
AS_IF([test "x$enable_lexc" == "xno"],
[AC_MSG_WARN([hfst-lexc is not enabled; enable with --enable-lexc])])
AS_IF([test "x$enable_twolc" == "xno"],
[AC_MSG_WARN([hfst-twolc is not enabled; you will not be able to compile xerox twolc grammars; enable using --enable-twolc])])
AS_IF([test "x$enable_tagger" == "xno"],
[AC_MSG_WARN([hfst-tag is not enabled; you will not be able to use taggers; enable using --enable-tagger])])
AS_IF([test "x$enable_calculate" == "xno"],
[AC_MSG_WARN([hfst-calculate is not enabled; you will not be able to compile SFST-PL scripts; enable using --enable-calculate])])
AS_IF([test "x$enable_xfst" == "xno"],
[AC_MSG_WARN([hfst-xfst is not enabled; you will not be able to compile XFST scripts; enable using --enable-xfst])])
AS_IF([test "$automake_version" \< "1.12"],
[AC_MSG_WARN([automake version < 1.12; building parsers will fail unless you are building with pre-yacc-generated *.cc files and do not modify the *.yy source files])])
|