buildconf revision f14fe1f44cb7018927ee0e31eb959cba8dc3700b
a668bef7a7852dc5cf6208d7318bd5c949cc69bfThiemo Wiedemeyer# Copyright 1999-2004 The Apache Software Foundation
a668bef7a7852dc5cf6208d7318bd5c949cc69bfThiemo Wiedemeyer# Licensed under the Apache License, Version 2.0 (the "License");
a668bef7a7852dc5cf6208d7318bd5c949cc69bfThiemo Wiedemeyer# you may not use this file except in compliance with the License.
a668bef7a7852dc5cf6208d7318bd5c949cc69bfThiemo Wiedemeyer# You may obtain a copy of the License at
a668bef7a7852dc5cf6208d7318bd5c949cc69bfThiemo Wiedemeyer# http://www.apache.org/licenses/LICENSE-2.0
a668bef7a7852dc5cf6208d7318bd5c949cc69bfThiemo Wiedemeyer# Unless required by applicable law or agreed to in writing, software
e5f5b1612cf7a4a1958c6bfd229f5bb8172879f6Christian Maeder# distributed under the License is distributed on an "AS IS" BASIS,
0616b03c091e5dc3fe98e268ae0d27856cf7bd9bChristian Maeder# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
e5f5b1612cf7a4a1958c6bfd229f5bb8172879f6Christian Maeder# See the License for the specific language governing permissions and
0616b03c091e5dc3fe98e268ae0d27856cf7bd9bChristian Maeder# limitations under the License.
a668bef7a7852dc5cf6208d7318bd5c949cc69bfThiemo Wiedemeyer# buildconf: Build the support scripts needed to compile from a
654b14739364b0b04ecc6fa12e6ecca122eb6838Thiemo Wiedemeyer# checked-out version of the source code.
654b14739364b0b04ecc6fa12e6ecca122eb6838Thiemo Wiedemeyer# set a couple of defaults for where we should be looking for our support libs.
e5f5b1612cf7a4a1958c6bfd229f5bb8172879f6Christian Maeder# can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
e5f5b1612cf7a4a1958c6bfd229f5bb8172879f6Christian Maeder -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
109b67ffce2bad83667e2f4a319d2d7f380f91afThiemo Wiedemeyer# Check to be sure that we have the srclib dependencies checked-out
109b67ffce2bad83667e2f4a319d2d7f380f91afThiemo Wiedemeyerif [ ! -d "$apr_src_dir" -o ! -f "$apr_src_dir/build/apr_common.m4" ]; then
109b67ffce2bad83667e2f4a319d2d7f380f91afThiemo Wiedemeyer echo "You don't have a copy of the apr source in $apr_src_dir. "
109b67ffce2bad83667e2f4a319d2d7f380f91afThiemo Wiedemeyer echo "Please get the source using the following instructions,"
0616b03c091e5dc3fe98e268ae0d27856cf7bd9bChristian Maeder echo "or specify the location of the source with "
4d3b50fc78a0c99ff2914fb23f3c7fba6e38d790Thiemo Wiedemeyer echo "--with-apr=[path to apr] :"
0616b03c091e5dc3fe98e268ae0d27856cf7bd9bChristian Maeder echo " svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr"
109b67ffce2bad83667e2f4a319d2d7f380f91afThiemo Wiedemeyerif [ ! -d "$apu_src_dir" -o ! -f "$apu_src_dir/Makefile.in" ]; then
654b14739364b0b04ecc6fa12e6ecca122eb6838Thiemo Wiedemeyer echo "You don't have a copy of the apr-util source in $apu_src_dir. "
654b14739364b0b04ecc6fa12e6ecca122eb6838Thiemo Wiedemeyer echo "Please get one the source using the following instructions, "
109b67ffce2bad83667e2f4a319d2d7f380f91afThiemo Wiedemeyer echo "or specify the location of the source with "
109b67ffce2bad83667e2f4a319d2d7f380f91afThiemo Wiedemeyer echo "--with-apr-util=[path to apr-util]:"
109b67ffce2bad83667e2f4a319d2d7f380f91afThiemo Wiedemeyer echo " svn co http://svn.apache.org/repos/asf/apr/apr-util/trunk srclib/apr-util"
109b67ffce2bad83667e2f4a319d2d7f380f91afThiemo Wiedemeyer# These are temporary until Roy finishes the other build changes
654b14739364b0b04ecc6fa12e6ecca122eb6838Thiemo Wiedemeyer# Remove autoconf 2.5x's cache directory
109b67ffce2bad83667e2f4a319d2d7f380f91afThiemo Wiedemeyer# end temporary stuff
109b67ffce2bad83667e2f4a319d2d7f380f91afThiemo Wiedemeyercross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
109b67ffce2bad83667e2f4a319d2d7f380f91afThiemo Wiedemeyercp $apr_src_dir/build/config.guess $apr_src_dir/build/config.sub \
8836fa284a241af325aa6f41234b5130b26ec4f9Thiemo Wiedemeyer $apr_src_dir/build/PrintPath $apr_src_dir/build/apr_common.m4 \
4d3b50fc78a0c99ff2914fb23f3c7fba6e38d790Thiemo Wiedemeyer $apr_src_dir/build/find_apr.m4 $apu_src_dir/build/find_apu.m4 build
4d3b50fc78a0c99ff2914fb23f3c7fba6e38d790Thiemo Wiedemeyer# Remove any libtool files so one can switch between libtool 1.3
4d3b50fc78a0c99ff2914fb23f3c7fba6e38d790Thiemo Wiedemeyer# and libtool 1.4 by simply rerunning the buildconf script.
109b67ffce2bad83667e2f4a319d2d7f380f91afThiemo Wiedemeyer# Optionally copy libtool-1.3.x files
545d0cd78159cade346b579d06052638b19b0f72Thiemo Wiedemeyerif [ -f $apr_src_dir/build/ltconfig ]; then
109b67ffce2bad83667e2f4a319d2d7f380f91afThiemo Wiedemeyer${AUTOHEADER:-autoheader} 2>&1 | grep -v "$cross_compile_warning"
4d3b50fc78a0c99ff2914fb23f3c7fba6e38d790Thiemo Wiedemeyer${AUTOCONF:-autoconf} 2>&1 | grep -v "$cross_compile_warning"
4d3b50fc78a0c99ff2914fb23f3c7fba6e38d790Thiemo Wiedemeyer# Remove autoconf 2.5x's cache directory
4d3b50fc78a0c99ff2914fb23f3c7fba6e38d790Thiemo Wiedemeyerif [ -f `which cut` ]; then
4d3b50fc78a0c99ff2914fb23f3c7fba6e38d790Thiemo Wiedemeyer ( VMMN=`build/get-version.sh mmn include/ap_mmn.h MODULE_MAGIC_NUMBER`
4d3b50fc78a0c99ff2914fb23f3c7fba6e38d790Thiemo Wiedemeyer REVISION=`build/get-version.sh all include/ap_release.h AP_SERVER`
RELEASE=1
cat ./build/rpm/httpd.spec.in | \
> httpd.spec )