Ignore:
Timestamp:
2006-09-28T16:58:10+12:00 (18 years ago)
Author:
kjdon
Message:

the compilation of the accent folding stuff (which needs unac package and iconv library) is now under the control of ENABLE_ACCENTFOLD, which gets defined in the CFLAGS if we want accent folding. turn it off in the mgpp/src/text/Makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/text/mgpp_stem_idx.cpp

    r12885 r12915  
    216216    case '?':
    217217      fprintf (stderr, "usage: %s [-d directory] "
    218            "[-b entries-per-block] [-h] -s 1|2|3 "
    219            "[-a stemmer-method] -f name\n", argv[0]);
     218           "[-b entries-per-block] [-h] -s 1|2|3", argv[0]);
     219#ifdef ENABLE_ACCENTFOLD
     220      fprintf (stderr, "|4|5|6|7");
     221#endif
     222      fprintf (stderr, " [-a stemmer-method] -f name\n");
    220223      exit (1);
    221224    }
     
    225228  if (stemMethod < STEM_MIN || stemMethod > STEM_MAX)
    226229    FatalError (1, "Stem method must be between %d and %d", STEM_MIN, STEM_MAX);
    227 
     230#ifndef ENABLE_ACCENTFOLD
     231  if (stemMethod & STEM_AccentFolding) {
     232    // accent folding not enabled
     233    return -1;
     234  }
     235#endif
    228236  // read in the dictionary and create the in memory dictionary
    229237  StemMapDict stemDict;
Note: See TracChangeset for help on using the changeset viewer.