|
|
Choosing A Webhost: |
Using libstemmer_c with an autotools packages: msg#00004search.snowball
Hello, My project is using the GNU autotools (autoconf/automake) for the build process. We also use the Snowball stemmer. The Snowball's makefile is not compatible with GNU autotools, and in order to quickly integrate new Snowball versions into our project without having to rewrite makefiles and paths, I have written a script which automatically takes the libstemmer_c.tgz file and "converts" it to a local library which is easy to use with projects that use the GNU autotools. Instructions: Put convert-noinst.sh and libstemmer_c.tgz (from the Snowball website) in a common directory. From this directory, run the convert-noinst.sh script. This will create a lot of additional files; the interesting ones are the stemmer/ directory and libstemmer-1.0.tar.gz. The stemmer/ directory can be copied verbatim into an existing project that is already using GNU autotools. In order to use it, simply add "stemmer/Makefile" to AC_OUTPUT in your top-level configure.in and add "stemmer" to SUBDIRS in your top-level Makefile.am (you can see how this is done in the generated configure.in and Makefile.am files). In stemmer/, a file called libstemmer.a will be generated. This file must be linked in with any programs that use the stemmer library (this can be done by adding libstemmer.a to the <name>_LDADD variable in Makefile.am). You should probably also add INCLUDE = -I$(top_srcdir) to Makefile.am so that the stemmer headers can be reached using #include "stemmer/libstemmer.h" in your source files. The libstemmer-1.0.tar.gz is a sample package which verifies that the build process succeeded. It behaves just like a normal autotools package and can be used for reference and/or example when including the stemmer in your project. Kind regards, Vegard Nossum
Snowball-discuss mailing list Snowball-discuss@xxxxxxxxxxxxxxxxxx http://lists.tartarus.org/mailman/listinfo/snowball-discuss
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: A problem with installing PyStreamer under windows., Charlie Hull |
|---|---|
| Next by Date: | Re: Using libstemmer_c with an autotools packages, Richard Boulton |
| Previous by Thread: | Re: slovenian stemmer, Martin Porter |
| Next by Thread: | Re: Using libstemmer_c with an autotools packages, Richard Boulton |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |