summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorDaniel Richard <oss@teragram.com>2012-11-21 11:34:42 +0800
committerDaniel Veillard <veillard@redhat.com>2012-11-21 11:34:42 +0800
commitfcd73e8e48c0c48f7aa2a2c9ea374e9cc6423fd0 (patch)
tree3d5f3ee880edf85e5246b2592c679c1efb32d9e3 /autogen.sh
parent457570f96fb51ca4a5da256242092e1165c60288 (diff)
downloadlibxslt-fcd73e8e48c0c48f7aa2a2c9ea374e9cc6423fd0.tar.gz
libxslt-fcd73e8e48c0c48f7aa2a2c9ea374e9cc6423fd0.tar.bz2
libxslt-fcd73e8e48c0c48f7aa2a2c9ea374e9cc6423fd0.zip
autogen.sh cleanup
This patch fixes minor issues in the autogen.sh script: * Don't print "I am going to run ..." if NOCONFIGURE is set * Print said message with $srcdir path * Print said message once, not twice * Print "Running ..." message once, not twice, and use quoting
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh12
1 files changed, 4 insertions, 8 deletions
diff --git a/autogen.sh b/autogen.sh
index f091bef6..0eeadd3c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -41,9 +41,9 @@ test -f libxslt/xslt.h || {
exit 1
}
-if test -z "$*"; then
- echo "I am going to run ./configure with no arguments - if you wish "
- echo "to pass any to it, please specify them on the $0 command line."
+if test -z "$NOCONFIGURE" -a -z "$*"; then
+ echo "I am going to run $srcdir/configure with no arguments - if you wish "
+ echo "to pass any to it, please specify them on the $0 command line."
fi
echo "Running libtoolize..."
@@ -73,14 +73,10 @@ if test "x$1" = "x--system"; then
libdir=$prefix/lib64
fi
EXTRA_ARGS="--prefix=$prefix --sysconfdir=$sysconfdir --localstatedir=$localstatedir --libdir=$libdir"
- echo "Running ./configure with $EXTRA_ARGS $@"
-else
- echo "I am going to run ./configure with no arguments - if you wish "
- echo "to pass any to it, please specify them on the $0 command line."
fi
if test -z "$NOCONFIGURE"; then
- echo Running configure $EXTRA_ARGS "$@" ...
+ echo "Running configure $EXTRA_ARGS $*" ...
$srcdir/configure $EXTRA_ARGS "$@"
echo
echo "Now type 'make' to compile libxslt."