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

Mike Rylander mrylander at gmail.com
Wed May 14 13:15:07 EDT 2008


On Wed, May 14, 2008 at 11:53 AM, Kevin Beswick
<kevinbeswick00 at gmail.com> wrote:
> This is an initial patch supporting the effort of porting OpenSRF to
>  the GNU autotools.

AWESOME! Great work Kevin.

Quick question for the future ... are you planning {foo}-config
support?  That will allow us to ask the system where the libs and
headers are installed to override the default without having to
specify the location of the header files for the dependencies that
support that mechanism.  For instance, postgres has pg_config that
will spit out things like INCLUDEDIR, and libxml2 has xml2_config the
does something similar.

Again, great work.


>
>  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.
>

/me adds another step to the release process...

>  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/)
>



-- 
Mike Rylander
 | VP, Research and Design
 | Equinox Software, Inc. / The Evergreen Experts
 | phone: 1-877-OPEN-ILS (673-6457)
 | email: miker at esilibrary.com
 | web: http://www.esilibrary.com


More information about the Open-ils-dev mailing list