buildconf revision bc8fd1b0b1afdf89b8d28eefa8cd74e26ba97986
10139N/A#!/bin/sh
10139N/A# ====================================================================
10139N/A# The Apache Software License, Version 1.1
10139N/A#
10139N/A# Copyright (c) 2000-2002 The Apache Software Foundation. All rights
10139N/A# reserved.
10139N/A#
10139N/A# Redistribution and use in source and binary forms, with or without
10139N/A# modification, are permitted provided that the following conditions
10139N/A# are met:
10139N/A#
10139N/A# 1. Redistributions of source code must retain the above copyright
10139N/A# notice, this list of conditions and the following disclaimer.
10139N/A#
10139N/A# 2. Redistributions in binary form must reproduce the above copyright
10139N/A# notice, this list of conditions and the following disclaimer in
10139N/A# the documentation and/or other materials provided with the
10139N/A# distribution.
10139N/A#
10139N/A# 3. The end-user documentation included with the redistribution,
10139N/A# if any, must include the following acknowledgment:
10139N/A# "This product includes software developed by the
10139N/A# Apache Software Foundation (http://www.apache.org/)."
10139N/A# Alternately, this acknowledgment may appear in the software itself,
10139N/A# if and wherever such third-party acknowledgments normally appear.
10139N/A#
10139N/A# 4. The names "Apache" and "Apache Software Foundation" must
10139N/A# not be used to endorse or promote products derived from this
10139N/A# software without prior written permission. For written
10139N/A# permission, please contact apache@apache.org.
10139N/A#
10139N/A# 5. Products derived from this software may not be called "Apache",
10139N/A# nor may "Apache" appear in their name, without prior written
10139N/A# permission of the Apache Software Foundation.
10139N/A#
10139N/A# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
10139N/A# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
10139N/A# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
10139N/A# DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
10139N/A# ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
10139N/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
10139N/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
10139N/A# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
10139N/A# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
10139N/A# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
10139N/A# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
10139N/A# SUCH DAMAGE.
10139N/A# ====================================================================
10139N/A#
10139N/A# This software consists of voluntary contributions made by many
10139N/A# individuals on behalf of the Apache Software Foundation. For more
10139N/A# information on the Apache Software Foundation, please see
10139N/A# <http://www.apache.org/>.
10139N/A#
10139N/A
10139N/A# buildconf: Build the support scripts needed to compile from a
10139N/A# checked-out version of the source code.
10139N/A
10139N/A#
10139N/A# Check to be sure that we have the srclib dependencies checked-out
10139N/A#
10139N/Aif [ ! -d srclib/apr -o ! -f srclib/apr/build/apr_common.m4 ]; then
10139N/A echo ""
10139N/A echo "You don't have a srclib/apr/ subdirectory. Please get one:"
10139N/A echo ""
10139N/A echo " cd srclib"
10139N/A echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login"
10139N/A echo " (password 'anoncvs')"
10139N/A echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr"
10139N/A echo ""
10139N/A exit 1
10139N/Afi
10139N/Aif [ ! -d srclib/apr-util -o ! -f srclib/apr-util/Makefile.in ]; then
10139N/A echo ""
10139N/A echo "You don't have a srclib/apr-util/ subdirectory. Please get one:"
10139N/A echo ""
10139N/A echo " cd srclib"
10139N/A echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login"
10139N/A echo " (password 'anoncvs')"
10139N/A echo " cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr-util"
10139N/A echo ""
10139N/A exit 1
10139N/Afi
10139N/A
10139N/A# These are temporary until Roy finishes the other build changes
10139N/A#
10139N/Atouch .deps
10139N/Arm -f aclocal.m4
10139N/Arm -f generated_lists
10139N/A
10139N/Acase "`uname`" in
10139N/A*BSD/OS*)
10139N/A ./build/bsd_makefile;;
10139N/Aesac
10139N/A#
10139N/A# end temporary stuff
10139N/A
10139N/Aapr_configure="srclib/apr/configure"
10139N/Aaprutil_configure="srclib/apr-util/configure"
10139N/Apcre_configure="srclib/pcre/configure"
10139N/Aconfig_h_in="include/ap_config_auto.h.in"
10139N/A
10139N/Across_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
10139N/A
10139N/Aecho rebuilding $apr_configure
10139N/A(cd srclib/apr && ./buildconf) || {
10139N/A echo "./buildconf failed for apr"
10139N/A exit 1
10139N/A}
10139N/A
10139N/Aecho rebuilding $aprutil_configure
10139N/A(cd srclib/apr-util && ./buildconf) || {
10139N/A echo "./buildconf failed for apr-util"
10139N/A exit 1
10139N/A}
10139N/A
10139N/Aecho rebuilding $pcre_configure
10139N/A(cd srclib/pcre && autoconf)
10139N/A
10139N/Aecho rebuilding $config_h_in
10139N/Arm -f $config_h_in
10139N/Aautoheader 2>&1 | grep -v "$cross_compile_warning"
10139N/A
10139N/Aecho rebuilding configure
10139N/Arm -f config.cache
10139N/Aautoconf 2>&1 | grep -v "$cross_compile_warning"
10139N/A
10139N/Aexit 0
10139N/A