Hello, David !
>From my experience of building rivet on different platforms
(OpenBSD,FreeBSD, Debian ). we need to describe stuff in README, and
place simple shell script to perform generation, leaving up to the
user setting of right environment variables,in OpenBSD for example,
they support multiple versions of autoconf simultaneously, you have
to export version of autoconf/automake you are using.
My own build script looks like this:
-------------------------
#!/bin/sh
set -x
gen_all () {
aclocal
automake
autoconf
autoheader
}
conf_1 () {
./configure \
--with-tcl=/usr/local/lib/tcl8.4 \
--with-tclinclude=/usr/local/include/tcl8.4 \
--with-apache-version=1 \
--with-apache=/usr/ \
--with-apache-include=/usr/lib/apache/include \
--with-apr-config=/usr/local/bin/apr-1-config \
--with-apxs=/usr/sbin/apxs \
--enable-shared \
--enable-symbols
}
conf_2 () {
./configure \
--with-tcl=/usr/local/lib/tcl8.4 \
--with-tclinclude=/usr/local/include/tcl8.4 \
--with-apache-version=2 \
--with-apache=/usr/local/apache2 \
--with-apxs=/usr/local/apache/bin/apxs \
--with-apr-config=/usr/local/bin/apr-1-config \
--enable-shared \
--enable-symbols
}
conf_3 () {
./configure \
--with-tcl=/usr/local/lib/tcl8.4 \
--with-tclinclude=/usr/local/include/tcl8.4 \
--with-apache-version=2 \
--with-apache=/usr/local/ \
--with-apxs=/usr/local/sbin/apxs2 \
--with-apr-config=/usr/local/bin/apr-1-config \
--enable-shared \
--enable-symbols
}
build_all () {
make
}
gen_all
conf_2
build_all
-------------------------
I have 3 versions of apache on my system:
apache1 - with reference mod_rivet
apache2 - from ports to test stuff
apache2 with debug - which i keep in /usr/local/apache and use for gdb
debugging and actual development.
I serve all of them with this script on all platforms -just modifying
configure arguments.
Of course i can modify it to add additional checks for autotools file
in the ${PATH}, but i doubt it will help. IMHO if somebody will spot
problems with gen_all() function - on his specific platform - it will
be easier to mention his specific case in README, possibly modify
build environment with workaround.
Regards Valery.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]