buildconf revision 4cb8bb9049d1643295ebda12c76dad441ddc2228
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# Licensed to the Apache Software Foundation (ASF) under one or more
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# contributor license agreements. See the NOTICE file distributed with
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# this work for additional information regarding copyright ownership.
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# The ASF licenses this file to You under the Apache License, Version 2.0
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# (the "License"); you may not use this file except in compliance with
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# the License. You may obtain a copy of the License at
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# Unless required by applicable law or agreed to in writing, software
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# distributed under the License is distributed on an "AS IS" BASIS,
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# See the License for the specific language governing permissions and
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# limitations under the License.
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# buildconf: Build the support scripts needed to compile from a
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# checked-out version of the source code.
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# version check for AC_PROG_CC_C99
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsyncac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;q'`
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# versions older than 2.50 are denied by AC_PREREQ
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync echo WARNING: You are using an outdated version of autoconf.
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync echo WARNING: This may lead to less than optimal performance of httpd.
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync echo WARNING: You should use autoconf 2.60 or newer.
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# set a couple of defaults for where we should be looking for our support libs.
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync # Normalize
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# Check to be sure that we have the srclib dependencies checked-out
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync if [ -f "${dir}/build/apr_common.m4" ]; then
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync echo "found apr source: ${dir}"
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync echo "APR could not be found automatically."
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync echo "Please refer to the documentation on APR in the httpd INSTALL file."
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync apr_major_version=`grep "#define APR_MAJOR_VERSION" \
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync $apr_src_dir/include/apr_version.h | sed 's/[^0-9]//g'`
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync if test -z "$apu_src_dir"; then
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync apu_src_dir=`echo $apr_src_dir | sed -e 's#/apr#/apr-util#g;'`
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync apu_src_dir="$apu_src_dir `echo $apr_src_dir | sed -e 's#/apr#/aprutil#;g'`"
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync apu_src_dir="$apu_src_dir srclib/apr-util ../apr-util"
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync if [ -f "${dir}/Makefile.in" ]; then
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync echo "found apr-util source: ${dir}"
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync echo "You are using APR 1.x but APR-util 1.x was not found."
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync echo "Please refer to the documentation on APR in the httpd INSTALL file."
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# These are temporary until Roy finishes the other build changes
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# Remove autoconf 2.5x cache directories
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsync# end temporary stuff
f4db180328f833f9fc9cb07a1a4a0bc948a47afevboxsynccross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
# Optionally copy libtool-1.3.x files
RELEASE=1
cat ./build/rpm/httpd.spec.in | \
> httpd.spec )
cd server