buildconf revision ab44eb80e084a02a66a58336d6fcfbbe48310439
893328ef6ff86d0ca27774778d84410353789fb0fielding# ====================================================================
893328ef6ff86d0ca27774778d84410353789fb0fielding# The Apache Software License, Version 1.1
33bdcae1f7a1a65e351dda2a766a0cf28b1e695dnd# Copyright (c) 2000-2003 The Apache Software Foundation. All rights
893328ef6ff86d0ca27774778d84410353789fb0fielding# Redistribution and use in source and binary forms, with or without
893328ef6ff86d0ca27774778d84410353789fb0fielding# modification, are permitted provided that the following conditions
893328ef6ff86d0ca27774778d84410353789fb0fielding# 1. Redistributions of source code must retain the above copyright
893328ef6ff86d0ca27774778d84410353789fb0fielding# notice, this list of conditions and the following disclaimer.
893328ef6ff86d0ca27774778d84410353789fb0fielding# 2. Redistributions in binary form must reproduce the above copyright
893328ef6ff86d0ca27774778d84410353789fb0fielding# notice, this list of conditions and the following disclaimer in
893328ef6ff86d0ca27774778d84410353789fb0fielding# the documentation and/or other materials provided with the
893328ef6ff86d0ca27774778d84410353789fb0fielding# distribution.
893328ef6ff86d0ca27774778d84410353789fb0fielding# 3. The end-user documentation included with the redistribution,
893328ef6ff86d0ca27774778d84410353789fb0fielding# if any, must include the following acknowledgment:
893328ef6ff86d0ca27774778d84410353789fb0fielding# "This product includes software developed by the
893328ef6ff86d0ca27774778d84410353789fb0fielding# Apache Software Foundation (http://www.apache.org/)."
893328ef6ff86d0ca27774778d84410353789fb0fielding# Alternately, this acknowledgment may appear in the software itself,
893328ef6ff86d0ca27774778d84410353789fb0fielding# if and wherever such third-party acknowledgments normally appear.
893328ef6ff86d0ca27774778d84410353789fb0fielding# 4. The names "Apache" and "Apache Software Foundation" must
893328ef6ff86d0ca27774778d84410353789fb0fielding# not be used to endorse or promote products derived from this
893328ef6ff86d0ca27774778d84410353789fb0fielding# software without prior written permission. For written
893328ef6ff86d0ca27774778d84410353789fb0fielding# permission, please contact apache@apache.org.
893328ef6ff86d0ca27774778d84410353789fb0fielding# 5. Products derived from this software may not be called "Apache",
893328ef6ff86d0ca27774778d84410353789fb0fielding# nor may "Apache" appear in their name, without prior written
893328ef6ff86d0ca27774778d84410353789fb0fielding# permission of the Apache Software Foundation.
893328ef6ff86d0ca27774778d84410353789fb0fielding# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
893328ef6ff86d0ca27774778d84410353789fb0fielding# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
893328ef6ff86d0ca27774778d84410353789fb0fielding# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
893328ef6ff86d0ca27774778d84410353789fb0fielding# DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
893328ef6ff86d0ca27774778d84410353789fb0fielding# ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
893328ef6ff86d0ca27774778d84410353789fb0fielding# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
893328ef6ff86d0ca27774778d84410353789fb0fielding# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
893328ef6ff86d0ca27774778d84410353789fb0fielding# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
893328ef6ff86d0ca27774778d84410353789fb0fielding# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
893328ef6ff86d0ca27774778d84410353789fb0fielding# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
893328ef6ff86d0ca27774778d84410353789fb0fielding# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
893328ef6ff86d0ca27774778d84410353789fb0fielding# SUCH DAMAGE.
893328ef6ff86d0ca27774778d84410353789fb0fielding# ====================================================================
893328ef6ff86d0ca27774778d84410353789fb0fielding# This software consists of voluntary contributions made by many
893328ef6ff86d0ca27774778d84410353789fb0fielding# individuals on behalf of the Apache Software Foundation. For more
893328ef6ff86d0ca27774778d84410353789fb0fielding# information on the Apache Software Foundation, please see
893328ef6ff86d0ca27774778d84410353789fb0fielding# buildconf: Build the support scripts needed to compile from a
893328ef6ff86d0ca27774778d84410353789fb0fielding# checked-out version of the source code.
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# set a couple of defaults for where we should be looking for our support libs.
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
893328ef6ff86d0ca27774778d84410353789fb0fielding# Check to be sure that we have the srclib dependencies checked-out
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantzif [ ! -d "$apr_src_dir" -o ! -f "$apr_src_dir/build/apr_common.m4" ]; then
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "You don't have a copy of the apr source in $apr_src_dir. "
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "Please get the source using the following instructions,"
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "or specify the location of the source with "
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "--with-apr=[path to apr] :"
893328ef6ff86d0ca27774778d84410353789fb0fielding echo " cd srclib"
42f9227f80ce22e944d427e3d7490fa1dd07f9f2rbb echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login"
893328ef6ff86d0ca27774778d84410353789fb0fielding echo " (password 'anoncvs')"
42f9227f80ce22e944d427e3d7490fa1dd07f9f2rbb echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr"
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantzif [ ! -d "$apu_src_dir" -o ! -f "$apu_src_dir/Makefile.in" ]; then
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "You don't have a copy of the apr-util source in $apu_src_dir. "
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "Please get one the source using the following instructions, "
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "or specify the location of the source with "
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz echo "--with-apr-util=[path to apr-util]:"
893328ef6ff86d0ca27774778d84410353789fb0fielding echo " cd srclib"
42f9227f80ce22e944d427e3d7490fa1dd07f9f2rbb echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login"
893328ef6ff86d0ca27774778d84410353789fb0fielding echo " (password 'anoncvs')"
42f9227f80ce22e944d427e3d7490fa1dd07f9f2rbb echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr-util"
893328ef6ff86d0ca27774778d84410353789fb0fielding# These are temporary until Roy finishes the other build changes
c066cdcb75ca262e424345b347b86e7ce2285869jerenkrantz# Remove autoconf 2.5x's cache directory
893328ef6ff86d0ca27774778d84410353789fb0fielding# end temporary stuff
893328ef6ff86d0ca27774778d84410353789fb0fieldingcross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantzcp $apr_src_dir/build/config.guess $apr_src_dir/build/config.sub \
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz $apr_src_dir/build/PrintPath $apr_src_dir/build/apr_common.m4 \
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz $apr_src_dir/build/find_apr.m4 $apu_src_dir/build/find_apu.m4 build
9045837071eae7a4b55204a21f31ccee17749af3jerenkrantz# Optionally copy libtool-1.3.x files
544c23d79a3a7596a3612224ed3ac9fa8372929djerenkrantz${AUTOHEADER:-autoheader} 2>&1 | grep -v "$cross_compile_warning"