buildconf revision 26a4456dd6f1a5d7d7fff766551461a578687c4a
c80e152862cc3e3207dc837fde7116bd4c0e4b9dTinderbox User# ====================================================================
c80e152862cc3e3207dc837fde7116bd4c0e4b9dTinderbox User# The Apache Software License, Version 1.1
8d1b3ceb4d491ce32572f1702f37ed585eede993Evan Hunt# Copyright (c) 2000-2004 The Apache Software Foundation. All rights
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# Redistribution and use in source and binary forms, with or without
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# modification, are permitted provided that the following conditions
30ca20f720ad0887772a79e7abb25b4fa0e4b5b0Mark Andrews# 1. Redistributions of source code must retain the above copyright
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# notice, this list of conditions and the following disclaimer.
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# 2. Redistributions in binary form must reproduce the above copyright
701a93f5a592e4652343e049aa495d409c3ee133Mark Andrews# notice, this list of conditions and the following disclaimer in
002f1373374a0b72fc0329baa682917929bef168Tony Finch# the documentation and/or other materials provided with the
002f1373374a0b72fc0329baa682917929bef168Tony Finch# distribution.
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# 3. The end-user documentation included with the redistribution,
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# if any, must include the following acknowledgment:
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# "This product includes software developed by the
8f1ed05dc0aae7ae6c3da6ec6d405df61257a61eMark Andrews# Apache Software Foundation (http://www.apache.org/)."
73cf0ba4e82c6baef638ecc4e31321223f841d28Mark Andrews# Alternately, this acknowledgment may appear in the software itself,
73cf0ba4e82c6baef638ecc4e31321223f841d28Mark Andrews# if and wherever such third-party acknowledgments normally appear.
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark Andrews# 4. The names "Apache" and "Apache Software Foundation" must
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark Andrews# not be used to endorse or promote products derived from this
d8351dfc9b725b0d727be7acab6247d7d501d9a0Mark Andrews# software without prior written permission. For written
3a29ce9c08dd31709c73e7187aebda0d360c537bEvan Hunt# permission, please contact apache@apache.org.
5c78f1f50e53d8e2ed51a187efc2c9a0f43b4b1bMark Andrews# 5. Products derived from this software may not be called "Apache",
f1740da065d4555039fe8bb53beb4153e3f94de3Mark Andrews# nor may "Apache" appear in their name, without prior written
f1740da065d4555039fe8bb53beb4153e3f94de3Mark Andrews# permission of the Apache Software Foundation.
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews# DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
31c7ab4fb3f7710af87dc9c3d64c5daf9a3dea35Mark Andrews# ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
ad309e8dfa0601d6053aaa12770a98a6940f89deEvan Hunt# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
ad309e8dfa0601d6053aaa12770a98a6940f89deEvan Hunt# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
635e4351b04fd61ca6d853bdac6268c090b55129Mark Andrews# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
635e4351b04fd61ca6d853bdac6268c090b55129Mark Andrews# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
fc04365d2f83f197c8a54545dd9cd4ce6a209940Mark Andrews# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
fc04365d2f83f197c8a54545dd9cd4ce6a209940Mark Andrews# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrews# SUCH DAMAGE.
7cbac360bf98c0a52b2d6866ad887616c32d4d3aMark Andrews# ====================================================================
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# This software consists of voluntary contributions made by many
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# individuals on behalf of the Apache Software Foundation. For more
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# information on the Apache Software Foundation, please see
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# buildconf: Build the support scripts needed to compile from a
1cf118a656f5fd210787908b845362077fc507f8Evan Hunt# checked-out version of the source code.
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund Sivaraman# set a couple of defaults for where we should be looking for our support libs.
6fb3db01acad7f5c1f4e23789fb0f2ce56cc07deMukund Sivaraman# can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
2cf0fe3b8092f64f8f68ae3693fe2e73e90ad1a4Mark Andrews -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
ec29d217ba3a2bf3e617a7b5b6708ae221bee999Mark Andrews# Check to be sure that we have the srclib dependencies checked-out
afefd754734f896bf3e0590177fff83e7cdfdf35Mark Andrewsif [ ! -d "$apr_src_dir" -o ! -f "$apr_src_dir/build/apr_common.m4" ]; then
f0353a586c2bfbae999193cb644b6bc94c7944d8Mark Andrews echo "You don't have a copy of the apr source in $apr_src_dir. "
f0353a586c2bfbae999193cb644b6bc94c7944d8Mark Andrews echo "Please get the source using the following instructions,"
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt echo "or specify the location of the source with "
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt echo "--with-apr=[path to apr] :"
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt echo " cd srclib"
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login"
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt echo " (password 'anoncvs')"
7ff28f5befbee76048a23e504dcd3f9a44ce6209Evan Hunt echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr"
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrewsif [ ! -d "$apu_src_dir" -o ! -f "$apu_src_dir/Makefile.in" ]; then
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrews echo "You don't have a copy of the apr-util source in $apu_src_dir. "
cad79077bd5b2616bc4a7a6b3cbc0953bef8917fMark Andrews echo "Please get one the source using the following instructions, "
adfe58e8e5cd1890585e92b67f1fd01989a1fa7dMark Andrews echo "or specify the location of the source with "
adfe58e8e5cd1890585e92b67f1fd01989a1fa7dMark Andrews echo "--with-apr-util=[path to apr-util]:"
c3237dec879f82855403ff7e3ba87b298172efd5Mark Andrews echo " cd srclib"
c3237dec879f82855403ff7e3ba87b298172efd5Mark Andrews echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login"
c3237dec879f82855403ff7e3ba87b298172efd5Mark Andrews echo " (password 'anoncvs')"
c3237dec879f82855403ff7e3ba87b298172efd5Mark Andrews echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr-util"
c0a2210466dec0cc81ebf2ffbe21693b57b9c29cMark Andrews# These are temporary until Roy finishes the other build changes
0f14b041328c062b1fa391887376388dfc8b2fe5Mark Andrews# Remove autoconf 2.5x's cache directory
2d82ed9456e72dc4373bea19d63411afe1c48962Mark Andrews# end temporary stuff
0d6328ce5f6b799f8e7c6cbbb3b965cf29bfb7baMark Andrewscross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
bf459d24a117ae2c54c37016430b41cd6d73491cMark Andrewscp $apr_src_dir/build/config.guess $apr_src_dir/build/config.sub \
f53e0bda467d96dfeeba1b4da30c37b37766bb75Evan Hunt $apr_src_dir/build/PrintPath $apr_src_dir/build/apr_common.m4 \
f53e0bda467d96dfeeba1b4da30c37b37766bb75Evan Hunt $apr_src_dir/build/find_apr.m4 $apu_src_dir/build/find_apu.m4 build
f53e0bda467d96dfeeba1b4da30c37b37766bb75Evan Hunt# Remove any libtool files so one can switch between libtool 1.3
f53e0bda467d96dfeeba1b4da30c37b37766bb75Evan Hunt# and libtool 1.4 by simply rerunning the buildconf script.
81e3e3084980afcd61416f572c6e72d38a3808abMichał Kępień# Optionally copy libtool-1.3.x files
a38f07c73790170842e4523b4a474d01ca0dede1Michał Kępień${AUTOHEADER:-autoheader} 2>&1 | grep -v "$cross_compile_warning"
39d5523a8afc73cbdb4fa426de2ce071267a5d6fMark Andrews${AUTOCONF:-autoconf} 2>&1 | grep -v "$cross_compile_warning"
1f4a3c7088594d1b64cd734eb69e1fd023fde8bfMichał Kępieńif [ -f `which cut` ]; then
91827e6fd3851a5fe129ef5409ff45833ca01a0eMark Andrews ( VMMN=`build/get-version.sh mmn include/ap_mmn.h MODULE_MAGIC_NUMBER`
91827e6fd3851a5fe129ef5409ff45833ca01a0eMark Andrews REVISION=`build/get-version.sh all include/ap_release.h AP_SERVER`
86d2f9abc8493321aacb0d540485de4d562fb734Mark Andrews# ensure that the mod_ssl expression parser sources are never regenerated
86d2f9abc8493321aacb0d540485de4d562fb734Mark Andrews# when running make