aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2006-08-03 22:27:19 +0000
committerMåns Rullgård <mans@mansr.com>2006-08-03 22:27:19 +0000
commitb3cb5d519f2e13bbacd3d6256326dfb3ac82fe64 (patch)
treedc1fe21b95c0672843b3358553f7b467dbf1ce63 /configure
parentf5c85943d039c1aeefc14f71822fa96b08ef14c5 (diff)
downloadffmpeg-b3cb5d519f2e13bbacd3d6256326dfb3ac82fe64.tar.gz
simplify command logging
Originally committed as revision 5925 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 1 insertions, 3 deletions
diff --git a/configure b/configure
index e35561ad42..960a50e636 100755
--- a/configure
+++ b/configure
@@ -214,6 +214,7 @@ add_extralibs(){
}
check_cmd(){
+ log "$@"
"$@" >>$logfile 2>&1
}
@@ -221,7 +222,6 @@ check_cc(){
log check_cc "$@"
cat >$TMPC
log_file $TMPC
- log $cc $CFLAGS "$@" -c -o $TMPO $TMPC
check_cmd $cc $CFLAGS "$@" -c -o $TMPO $TMPC
}
@@ -229,14 +229,12 @@ check_cpp(){
log check_cpp "$@"
cat >$TMPC
log_file $TMPC
- log $cc $CFLAGS "$@" -E -o $TMPO $TMPC
check_cmd $cc $CFLAGS "$@" -E -o $TMPO $TMPC
}
check_ld(){
log check_ld "$@"
check_cc || return
- log $cc $LDFLAGS "$@" -o $TMPE $TMPO $extralibs
check_cmd $cc $LDFLAGS "$@" -o $TMPE $TMPO $extralibs
}