buildconf revision a2652f3451528565db1f85db6953fc30799d7ead
#
# Copyright 1999-2006 The Apache Software Foundation or its licensors, as
# applicable.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# buildconf: Build the support scripts needed to compile from a
# checked-out version of the source code.
# set a couple of defaults for where we should be looking for our support libs.
# can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
apr_src_dir="srclib/apr ../apr"
apu_src_dir="srclib/apr-util ../apr-util"
while test $# -gt 0
do
# Normalize
case "$1" in
*) optarg= ;;
esac
case "$1" in
;;
esac
case "$1" in
;;
esac
shift
done
#
# Check to be sure that we have the srclib dependencies checked-out
#
do
if [ -f "${dir}/build/apr_common.m4" ]; then
echo "found apr source: ${dir}"
break
fi
done
echo ""
echo "Please get the source using the following instructions,"
echo "or specify the location of the source with "
echo "--with-apr=[path to apr] :"
echo ""
echo " svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr"
echo ""
fi
do
if [ -f "${dir}/Makefile.in" ]; then
echo "found apr-util source: ${dir}"
break
fi
done
echo ""
echo "Please get one the source using the following instructions, "
echo "or specify the location of the source with "
echo "--with-apr-util=[path to apr-util]:"
echo ""
echo " svn co http://svn.apache.org/repos/asf/apr/apr-util/trunk srclib/apr-util"
echo ""
fi
exit 1
fi
# These are temporary until Roy finishes the other build changes
#
# Remove autoconf 2.5x cache directories
./build/bsd_makefile;;
esac
#
# end temporary stuff
apr_configure="$apr_src_dir/configure"
aprutil_configure="$apu_src_dir/configure"
cross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
if [ "$apr_src_dir" = "srclib/apr" ]; then
echo rebuilding $apr_configure
echo "./buildconf failed for apr"
exit 1
}
fi
apr_src_dir=`cd $apr_src_dir && pwd`
if [ "$apu_src_dir" = "srclib/apr-util" ]; then
echo "./buildconf failed for apr-util"
exit 1
}
fi
apu_src_dir=`cd $apu_src_dir && pwd`
# Remove any libtool files so one can switch between libtool 1.3
# and libtool 1.4 by simply rerunning the buildconf script.
# Optionally copy libtool-1.3.x files
fi
fi
echo rebuilding $config_h_in
rm -f $config_h_in
echo rebuilding configure
rm -f config.cache
# Remove autoconf 2.5x cache directories
RELEASE=1
fi
cat ./build/rpm/httpd.spec.in | \
> httpd.spec )
fi
# ensure that the mod_ssl expression parser sources are never regenerated
# when running make
sleep 1
sleep 1
cd ../..
exit 0