From 2ba042a75603bdd0fee31b2348b371a953fbd5c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Thu, 22 Jun 2006 18:57:40 +0000 Subject: [PATCH] enable logging in configure by default, and print some advice on failure Originally committed as revision 5509 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/configure b/configure index 717b23d192..d95daf9936 100755 --- a/configure +++ b/configure @@ -9,7 +9,7 @@ show_help(){ echo echo "Standard options:" echo " --help print this message" - echo " --log log tests and output to config.err" + echo " --log[=FILE|yes|no] log tests and output to FILE [config.err]" echo " --prefix=PREFIX install in PREFIX [$prefix]" echo " --libdir=DIR install libs in DIR [PREFIX/lib]" echo " --incdir=DIR install includes in DIR [PREFIX/include/ffmpeg]" @@ -107,9 +107,29 @@ logfile(){ log END $1 } -die(){ +echolog(){ log "$@" echo "$@" +} + +die(){ + echolog "$@" + cat <