buildconf revision 5a3fb2c128b4671fb5091eaea8861c759f50a4e6
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# Copyright 1999-2004 The Apache Software Foundation
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# Licensed under the Apache License, Version 2.0 (the "License");
a99b64f7d63812806ee40c2e8a347343fa3b84a7Timo Sirainen# you may not use this file except in compliance with the License.
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# You may obtain a copy of the License at
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# Unless required by applicable law or agreed to in writing, software
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# distributed under the License is distributed on an "AS IS" BASIS,
a99b64f7d63812806ee40c2e8a347343fa3b84a7Timo Sirainen# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
a99b64f7d63812806ee40c2e8a347343fa3b84a7Timo Sirainen# See the License for the specific language governing permissions and
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# limitations under the License.
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# buildconf: Build the support scripts needed to compile from a
22627da0fb77c1d0d9a8e8bc485ef5540b6f2e69Timo Sirainen# checked-out version of the source code.
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# set a couple of defaults for where we should be looking for our support libs.
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
dc9de21d4375faeedbe5b7e941502ac578650da9Timo Sirainen -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# Check to be sure that we have the srclib dependencies checked-out
68f0dfb4b2815ecbc1bd8d8a68adcfd577ec55aeTimo Sirainenif [ ! -d "$apr_src_dir" -o ! -f "$apr_src_dir/build/apr_common.m4" ]; then
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen echo "You don't have a copy of the apr source in $apr_src_dir. "
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen echo "Please get the source using the following instructions,"
dc9de21d4375faeedbe5b7e941502ac578650da9Timo Sirainen echo "or specify the location of the source with "
dc9de21d4375faeedbe5b7e941502ac578650da9Timo Sirainen echo "--with-apr=[path to apr] :"
dc9de21d4375faeedbe5b7e941502ac578650da9Timo Sirainen echo " svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr"
892b3cbf0eba9ba455448adcf71864a409345c6dTimo Sirainenif [ ! -d "$apu_src_dir" -o ! -f "$apu_src_dir/Makefile.in" ]; then
dc9de21d4375faeedbe5b7e941502ac578650da9Timo Sirainen echo "You don't have a copy of the apr-util source in $apu_src_dir. "
f4c0b1874b0533bcf2df1d28d584ff02cfdae3faTimo Sirainen echo "Please get one the source using the following instructions, "
f4c0b1874b0533bcf2df1d28d584ff02cfdae3faTimo Sirainen echo "or specify the location of the source with "
dc9de21d4375faeedbe5b7e941502ac578650da9Timo Sirainen echo "--with-apr-util=[path to apr-util]:"
dc9de21d4375faeedbe5b7e941502ac578650da9Timo Sirainen echo " svn co http://svn.apache.org/repos/asf/apr/apr-util/trunk srclib/apr-util"
554c1c792dc6fce1e25c74555c2da786bffde75fTimo Sirainen# These are temporary until Roy finishes the other build changes
ab1b9a793d57a60c230a41f65f1a25d52c026233Timo Sirainen# Remove autoconf 2.5x cache directories
ab1b9a793d57a60c230a41f65f1a25d52c026233Timo Sirainenrm -rf autom4te*.cache srclib/pcre/autom4te*.cache
ab1b9a793d57a60c230a41f65f1a25d52c026233Timo Sirainen# end temporary stuff
f6e301cb2060c4367d8145e2bf5d553ba87ceb34Timo Sirainencross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
6b2738c39a868ff9291867138c55029fc40cf105Timo Sirainencp $apr_src_dir/build/config.guess $apr_src_dir/build/config.sub \
6b2738c39a868ff9291867138c55029fc40cf105Timo Sirainen $apr_src_dir/build/PrintPath $apr_src_dir/build/apr_common.m4 \
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen $apr_src_dir/build/find_apr.m4 $apu_src_dir/build/find_apu.m4 build
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# Remove any libtool files so one can switch between libtool 1.3
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# and libtool 1.4 by simply rerunning the buildconf script.
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# Optionally copy libtool-1.3.x files
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen(cd srclib/pcre && ${ACLOCAL:-aclocal} && ${AUTOCONF:-autoconf})
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen${AUTOHEADER:-autoheader} 2>&1 | grep -v "$cross_compile_warning"
f6e301cb2060c4367d8145e2bf5d553ba87ceb34Timo Sirainen${AUTOCONF:-autoconf} 2>&1 | grep -v "$cross_compile_warning"
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen# Remove autoconf 2.5x cache directories
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainenrm -rf autom4te*.cache srclib/pcre/autom4te*.cache
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainenif [ -f `which cut` ]; then
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen ( VMMN=`build/get-version.sh mmn include/ap_mmn.h MODULE_MAGIC_NUMBER`
6c2c5f20760b06bfb4a40b0ee2ef5ab016bc41f0Timo Sirainen REVISION=`build/get-version.sh all include/ap_release.h AP_SERVER`
f6e301cb2060c4367d8145e2bf5d553ba87ceb34Timo Sirainen# ensure that the mod_ssl expression parser sources are never regenerated
f6e301cb2060c4367d8145e2bf5d553ba87ceb34Timo Sirainen# when running make