Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Using libstemmer_c with an autotools packages: msg#00004

search.snowball

Subject: Using libstemmer_c with an autotools packages

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

Attachment: convert-noinst.sh
Description: Bourne shell script

_______________________________________________
Snowball-discuss mailing list
Snowball-discuss@xxxxxxxxxxxxxxxxxx
http://lists.tartarus.org/mailman/listinfo/snowball-discuss
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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