[OPEN-ILS-DEV] SPAM: autoconf support for openSRF (resubmission)

Kevin Beswick kevinbeswick00 at gmail.com
Wed May 14 13:40:50 EDT 2008


This is an initial patch supporting the effort of porting OpenSRF to
the GNU autotools.

The goal of this patch is to enable someone to generate a configure
script using autoconf, allow someone to choose various install options
through the generated configure script, and to remove the need for the
install.conf file.

The configure script makes various checks based on the dependencies of
openSRF, allows users to customize the install directories, and select
various install options (whether or not to install python modules,
java libraries, legacy json headers). It outputs the results of these
custom checks/settings at the end of the default configure script
output.

The automake Makefile.am's are not included as of yet, instead only
Makefile.in's are included so that configure can generate appropriate
Makefiles based on the already existing ones.

To test:
automake -a
autoconf
./configure [--option]
make
make install

Options included in configure script:

--enable-install-java    #enable building and installing the java libraries
--disable-legacy-json    #disable the legacy json headers and .so file
for backwards compatibility
--disable-install-python  #disable building and installing python modules
--with-tmp_dir=path              #location for the tmp dir for openSRF
(/tmp/ilstemp by default)
--with-apxs_dir=path             #location of apxs2 (default is /usr/bin/apxs2)
--with-apache_headers=path       #location of the apache2 headers
(default is /usr/include/apache2)
--with-apr_headers=path           #location of the apr headers
(default is /usr/include/apr-1.0/)
--with-libxml_headers=path         #location of the libxml headers
(default is /usr/include/libxml2/)


--------------------------------

Developer's Certificate of Origin 1.1 By making a contribution to this
project, I certify that:

(a) The contribution was created in whole or in part by me and I have
the right to submit it under the open source license indicated in the
file; or

(b) The contribution is based upon previous work that, to the best of
my knowledge, is covered under an appropriate open source license and
I have the right under that license to submit that work with
modifications, whether created in whole or in part by me, under the
same open source license (unless I am permitted to submit under a
different license), as indicated in the file; or

(c) The contribution was provided directly to me by some other person
who certified (a), (b) or (c) and I have not modified it; and

(d) In the case of each of (a), (b), or (c), I understand and agree
that this project and the contribution are public and that a record of
the contribution (including all personal information I submit with it,
including my sign-off) is maintained indefinitely and may be
redistributed consistent with this project or the open source license
indicated in the file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opensrf_autoconf.patch
Type: text/x-patch
Size: 43840 bytes
Desc: not available
Url : http://list.georgialibraries.org/pipermail/open-ils-dev/attachments/20080514/be59e458/opensrf_autoconf-0001.bin


More information about the Open-ils-dev mailing list