buildconf revision 8fae12696bce44be9ce4c56888690cad8ac7b8f9
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
# version check for AC_PROG_CC_C99
case "$ac_version" in
# versions older than 2.50 are denied by AC_PREREQ
2.5*)
sleep 1
;;
esac
# 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=""
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 ""
else
fi
if test -z "$apu_src_dir"; then
apu_src_dir="$apu_src_dir srclib/apr-util ../apr-util"
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
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"
fi
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`
fi
fi
# 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 ap_expr expression parser sources are never regenerated
# when running make
cd server
sleep 1
sleep 1
cd ..
exit 0