diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2009-11-12 22:27:39 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2009-11-12 22:27:39 +0000 |
commit | a8b73fa873c698865193fae750f4ae4a15361439 (patch) | |
tree | 0c1836cdca2e0a5ce1541cc6522de61f156c8482 /buildconf | |
parent | 352ba21359377a412b71d9fb971cbc3caf446eb2 (diff) | |
download | apr-a8b73fa873c698865193fae750f4ae4a15361439.tar.gz |
Allow --verbose'ity with ./buildconf for debugging
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@835607 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buildconf')
-rwxr-xr-x | buildconf | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -19,9 +19,14 @@ # buildconf: Build the support scripts needed to compile from a # checked-out version of the source code. +if [ "$1" = "--verbose" -o "$1" = "-v" ]; then + verbose="--verbose" + shift +fi + # Verify that the builder has the right config tools installed # -build/buildcheck.sh || exit 1 +build/buildcheck.sh $verbose || exit 1 libtoolize=`build/PrintPath glibtoolize1 glibtoolize libtoolize15 libtoolize14 libtoolize` if [ "x$libtoolize" = "x" ]; then @@ -45,7 +50,7 @@ lt_pversion=`$libtoolize --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*// lt_version=`echo $lt_pversion|sed -e 's/\([a-z]*\)$/.\1/'` IFS=.; set $lt_version; IFS=' ' if test "$1" = "1"; then - $libtoolize --copy --automake + $libtoolize --copy --automake --force $verbose if [ -f libtool.m4 ]; then ltfile=`pwd`/libtool.m4 else @@ -67,7 +72,7 @@ if test "$1" = "1"; then cat $ltfile | sed -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' > build/libtool.m4 fi if test "$1" = "2"; then - $libtoolize --copy + $libtoolize --copy --force $verbose # Wouldn't it just be better to define top_builddir?? mv build/libtool.m4 build/libtool.m4.$$ cat build/libtool.m4.$$ | sed -e 's/LIBTOOL=\(.*\)top_build/LIBTOOL=\1apr_build/' > build/libtool.m4 @@ -81,17 +86,17 @@ rm -f aclocal.m4 libtool.m4 # Generate the autoconf header and ./configure # echo "buildconf: creating include/arch/unix/apr_private.h.in ..." -${AUTOHEADER:-autoheader} +${AUTOHEADER:-autoheader} $verbose echo "buildconf: creating configure ..." ### do some work to toss config.cache? -${AUTOCONF:-autoconf} +${AUTOCONF:-autoconf} $verbose # Remove autoconf 2.5x's cache directory rm -rf autom4te*.cache echo "buildconf: generating 'make' outputs ..." -build/gen-build.py make +build/gen-build.py $verbose make # Create RPM Spec file if [ -f `which cut` ]; then |