buildconf revision 842ae4bd224140319ae7feec1872b93dfd491143
cc5a4a08dc9783fcbc52ce86f11e01c281a43810minfrin# Licensed to the Apache Software Foundation (ASF) under one or more
986f3ea2c314d4d4b3b937149853a0f23f6119aaminfrin# contributor license agreements. See the NOTICE file distributed with
986f3ea2c314d4d4b3b937149853a0f23f6119aaminfrin# this work for additional information regarding copyright ownership.
986f3ea2c314d4d4b3b937149853a0f23f6119aaminfrin# The ASF licenses this file to You under the Apache License, Version 2.0
f502dd154eaf60ccf6a993e83c490d52cd0a385eminfrin# (the "License"); you may not use this file except in compliance with
f502dd154eaf60ccf6a993e83c490d52cd0a385eminfrin# the License. You may obtain a copy of the License at
65a4e663b82f8bce28ac22ab2edfd7502de36998sf# Unless required by applicable law or agreed to in writing, software
65a4e663b82f8bce28ac22ab2edfd7502de36998sf# distributed under the License is distributed on an "AS IS" BASIS,
c7de1955eb0eaeabf7042902476397692672d549sf# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
cc5a4a08dc9783fcbc52ce86f11e01c281a43810minfrin# See the License for the specific language governing permissions and
cc5a4a08dc9783fcbc52ce86f11e01c281a43810minfrin# limitations under the License.
a77a7d850e4496179e1e0f45d5152865c899d421covener# buildconf: Build the support scripts needed to compile from a
a77a7d850e4496179e1e0f45d5152865c899d421covener# checked-out version of the source code.
df6d5653669f1514b4449aaba99cb950c0013e5fcovener# set a couple of defaults for where we should be looking for our support libs.
df6d5653669f1514b4449aaba99cb950c0013e5fcovener# can be overridden with --with-apr=[dir] and --with-apr-util=[dir]
1de839c61281d58dc75715c1ae06b4b00764c4efjorton # Normalize
2e1a0fb12bdf1c20064ffe900a8f44979ec946fcminfrin -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
2ae6440d9c0beacb1b2a9726d80b755a8a4a851bjailletc# Check to be sure that we have the srclib dependencies checked-out
a511a29faf2ff7ead3b67680154a624effb31aafminfrin if [ -f "${dir}/build/apr_common.m4" ]; then
a511a29faf2ff7ead3b67680154a624effb31aafminfrin echo "found apr source: ${dir}"
9ea14ade0d235bec11e6c221b888a6630a0be849covener echo "You don't have a copy of the apr source in srclib/apr. "
4860eae0821bbdf3e0da78be7b4057ebed5d86e4minfrin echo "Please get the source using the following instructions,"
4860eae0821bbdf3e0da78be7b4057ebed5d86e4minfrin echo "or specify the location of the source with "
4860eae0821bbdf3e0da78be7b4057ebed5d86e4minfrin echo "--with-apr=[path to apr] :"
5b6a4b0e8d6d52394b68b51e0fa439d0eee16e37minfrin echo " svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr"
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin if [ -f "${dir}/Makefile.in" ]; then
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin echo "found apr-util source: ${dir}"
eee20257a5ee9228f4aecdf3d3ca68fd0683ff07minfrin echo "You don't have a copy of the apr-util source in srclib/apr-util. "
eee20257a5ee9228f4aecdf3d3ca68fd0683ff07minfrin echo "Please get one the source using the following instructions, "
eee20257a5ee9228f4aecdf3d3ca68fd0683ff07minfrin echo "or specify the location of the source with "
eee20257a5ee9228f4aecdf3d3ca68fd0683ff07minfrin echo "--with-apr-util=[path to apr-util]:"
decb536ebd4b7b94c7450c2e1daa491943135abdminfrin echo " svn co http://svn.apache.org/repos/asf/apr/apr-util/trunk srclib/apr-util"
2b82678319a66fd9caad8827ca9b38d2412a5abdminfrin# These are temporary until Roy finishes the other build changes
797fb211307298a8a6984c0edc0d8972b35eeac1minfrin# Remove autoconf 2.5x cache directories
a2e1bbb77dd09c6a60f2dc18f831000e49add31eminfrin# end temporary stuff
deec48c67d4786bc77112ffbf3a4e70b931097edminfrincross_compile_warning="warning: AC_TRY_RUN called without default to allow cross compiling"
806e9ba570ef48df4bfd8364e2f4d57381388a11minfrin (cd srclib/apr-util && ./buildconf --with-apr=$apr_src_dir) || {
1aac1c71105133d669960501bdf2274e63561054minfrincp $apr_src_dir/build/config.guess $apr_src_dir/build/config.sub \
1aac1c71105133d669960501bdf2274e63561054minfrin $apr_src_dir/build/PrintPath $apr_src_dir/build/apr_common.m4 \
1aac1c71105133d669960501bdf2274e63561054minfrin $apr_src_dir/build/find_apr.m4 $apu_src_dir/build/find_apu.m4 build
2c487ac43b583db869e743772a7a10b278aa2bcfminfrin# Remove any libtool files so one can switch between libtool 1.3
2c487ac43b583db869e743772a7a10b278aa2bcfminfrin# and libtool 1.4 by simply rerunning the buildconf script.
dbf5f584c62fe6030d81121fdddeb7588b78b867sf# Optionally copy libtool-1.3.x files
05a5a9c3e16f21566e1b61f4bd68025ce1b741ccjoes${AUTOHEADER:-autoheader} 2>&1 | grep -v "$cross_compile_warning"
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq${AUTOCONF:-autoconf} 2>&1 | grep -v "$cross_compile_warning"
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq# Remove autoconf 2.5x cache directories
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niqif [ -f `which cut` ]; then
c12917da693bae4028a1d5a5e8224bceed8c739dsf ( VMMN=`build/get-version.sh mmn include/ap_mmn.h MODULE_MAGIC_NUMBER`
c12917da693bae4028a1d5a5e8224bceed8c739dsf REVISION=`build/get-version.sh all include/ap_release.h AP_SERVER`
4576c1a9ef54cd1e5555ee07d016a7f559f80338sf# ensure that the mod_ssl expression parser sources are never regenerated
9811aed12bbc71783d2e544ccb5fecd193843eadsf# when running make