]> granicus.if.org Git - apache/commitdiff
hook up srclib/libapreq to the build system
authorPhilip M. Gollucci <pgollucci@apache.org>
Thu, 10 Nov 2011 21:59:07 +0000 (21:59 +0000)
committerPhilip M. Gollucci <pgollucci@apache.org>
Thu, 10 Nov 2011 21:59:07 +0000 (21:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1200590 13f79535-47bb-0310-9956-ffa450edef68

buildconf
configure.in
srclib/libapreq/buildconf
srclib/libapreq/configure.in

index 718cad19d4a02d9eae22431ce8286a19d98c3c55..c2e425bdccd6347a52d322c264717f1c6cf165ba 100755 (executable)
--- a/buildconf
+++ b/buildconf
@@ -161,6 +161,14 @@ if [ "$apr_src_dir" = "srclib/apr" ]; then
     rm -f srclib/apr/apr.spec
 fi
 
+apreq_configure="srclib/libapreq"
+echo
+echo rebuilding $apreq_configure
+(cd srclib/libapreq && ./buildconf) || {
+    echo "./buildconf failed for apreq"
+    exit 1
+}
+
 apr_src_dir=`cd $apr_src_dir && pwd` 
 
 if [ $apr_major_version -lt 2 ] ; then
index 9a32f686176c6670f56e9439104030a22df4d6f2..8ba10bbb2c05972a192bbfac570958668bebc6ca 100644 (file)
@@ -92,8 +92,8 @@ if test "$apr_found" = "reconfig"; then
                     [$apache_apr_flags --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir --datadir=$datadir --with-installbuilddir=$installbuilddir],
                     [--enable-layout=*|\'--enable-layout=*])
   dnl We must be the first to build and the last to be cleaned
-  AP_BUILD_SRCLIB_DIRS="apr $AP_BUILD_SRCLIB_DIRS"
-  AP_CLEAN_SRCLIB_DIRS="$AP_CLEAN_SRCLIB_DIRS apr"
+  AP_BUILD_SRCLIB_DIRS="apr libapreq $AP_BUILD_SRCLIB_DIRS"
+  AP_CLEAN_SRCLIB_DIRS="$AP_CLEAN_SRCLIB_DIRS libapreq apr"
 
   dnl We have to find apr-N-config when we reconfigure APR.
   for majorver in 1 2; do
@@ -119,6 +119,9 @@ APR_VERSION=`$apr_config --version`
 apr_major_version=`echo ${APR_VERSION} | sed 's,\..*,,'`
 APR_CONFIG="$APR_BINDIR/apr-${apr_major_version}-config"
 
+echo $ac_n "${nl}Configuring Apache Request Library...${nl}"
+APR_SUBDIR_CONFIG(srclib/libapreq, [--with-apr=../apr/apr-2-config])
+
 echo $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}"
 
 if test "x${apr_major_version}" = "x2"; then
index 0c2f5df1ad650c51fd6d218df2efc2952b785725..0bfbbd8984a55968b99702e0db17be49912f8c30 100755 (executable)
 #
 #
 
+if [ "$1" = "--verbose" -o "$1" = "-v" ]; then
+    verbose="--verbose"
+    shift
+fi
+
 # Default place to look for apr source.  Can be overridden with 
 #   --with-apr=[directory]
 apr_src_dir=../apr
-apu_src_dir=../apr-util
 
 while test $# -gt 0 
 do
@@ -34,16 +38,13 @@ do
   --with-apr=*)
   apr_src_dir=$optarg
   ;;
-  --with-apr-util=*)
-  apu_src_dir=$optarg
-  ;;
   esac
 
   shift
 done
 
 if [ -f "$apr_src_dir/build/apr_common.m4" ]; then
-  echo ""
+  apr_src_dir=`cd $apr_src_dir; pwd`
   echo "Looking for apr source in $apr_src_dir"
 else
   echo ""
@@ -53,17 +54,6 @@ else
   exit 1
 fi
 
-if [ -f "$apu_src_dir/build/find_apu.m4" ]; then
-  echo ""
-  echo "Looking for apr-util source in $apu_src_dir"
-else
-  echo ""
-  echo "Problem finding apr-util source in $apu_src_dir."
-  echo "Use:"
-  echo "  --with-apr-util=[directory]" 
-  exit 1
-fi
-
 set -e
 
 # Remove some files, then copy them from apr source tree
@@ -73,10 +63,6 @@ cp $apr_src_dir/build/apr_common.m4 $apr_src_dir/build/find_apr.m4 \
    $apr_src_dir/build/install.sh $apr_src_dir/build/config.guess  \
    $apr_src_dir/build/config.sub build
 
-rm -f build/find_apu.m4
-cp $apu_src_dir/build/find_apu.m4 build
-
-
 # Remove aclocal.m4 as it'll break some builds...
 rm -rf aclocal.m4 autom4te*.cache
 
index 7d31878520bc47f4aadb60a1718d53e864c02e42..aeb60774a5a40bba240619b8d27cc0b4537cf395 100644 (file)
@@ -15,7 +15,6 @@ sinclude(build/apreq-conf.m4)
 sinclude(build/apreq-hints.m4)
 sinclude(build/apr_common.m4)
 sinclude(build/find_apr.m4)
-sinclude(build/find_apu.m4)
 
 dnl Generate ./config.nice for reproducing runs of configure
 dnl 
@@ -90,8 +89,6 @@ APR_ADDTO(CPPFLAGS, `$apr_config --cppflags`)
 
 AC_SUBST(CPP)
 
-APREQ_FIND_APU
-
 dnl get our version information
 get_version="$abs_srcdir/build/get-version.sh"
 version_hdr="$abs_srcdir/include/apreq_version.h"
@@ -125,7 +122,6 @@ dnl
 dnl Prep all the flags and stuff for compilation and export to other builds
 dnl
 APR_ADDTO(APREQ_LIBS, [$APR_LIBS])
-APR_ADDTO(APREQ_LIBS, [$APU_LIBS])
 
 AC_SUBST(APREQ_EXPORT_LIBS)
 AC_SUBST(APREQ_PRIV_INCLUDES)