From: Jens Axboe Date: Fri, 12 Apr 2013 08:16:43 +0000 (+0200) Subject: configure: add needed packages hints X-Git-Tag: fio-2.1~45 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=c55d728b2230789e744bc44115be27c3db94fd7e configure: add needed packages hints Signed-off-by: Jens Axboe --- diff --git a/configure b/configure index 4b71afd6..87d659cf 100755 --- a/configure +++ b/configure @@ -94,9 +94,13 @@ compile_prog() { feature_not_found() { feature=$1 + packages=$2 echo "ERROR" echo "ERROR: User requested feature $feature" + if test ! -z "$packages" ; then + echo "ERROR: That feature needs $packages installed" + fi echo "ERROR: configure was not able to find it" fatal "ERROR" } @@ -412,7 +416,7 @@ if compile_prog "" "-lz" "zlib" ; then zlib=yes LIBS="-lz $LIBS" else - feature_not_found "zlib" + feature_not_found "zlib" "zlib development files" zlib=no fi echo "zlib $zlib" @@ -434,7 +438,7 @@ if compile_prog "" "-laio" "libaio" ; then LIBS="-laio $LIBS" else if test "$libaio" = "yes" ; then - feature_not_found "linux AIO" + feature_not_found "linux AIO" "libaio-dev or libaio-devel" fi libaio=no fi