configure: add a note to install zlib-devel, if not there
[fio.git] / configure
index f58de794099d066bc0796144ffe9862237ee607f..1494dd766b87e9e2d181f9fa2ef62e00a5001b7a 100755 (executable)
--- a/configure
+++ b/configure
@@ -420,7 +420,7 @@ echo "Wordsize                      $wordsize"
 # zlib probe
 zlib="no"
 cat > $TMPC <<EOF
-#include <zlib2.h>
+#include <zlib.h>
 int main(void)
 {
   z_stream stream;
@@ -1385,6 +1385,10 @@ if test "$gf_fadvise" = "yes" ; then
   output_sym "CONFIG_GF_FADVISE"
 fi
 
+if test "$zlib" = "no" ; then
+  echo "Consider installing zlib-dev (zlib-devel), some fio features depend on it."
+fi
+
 echo "LIBS+=$LIBS" >> $config_host_mak
 echo "CFLAGS+=$CFLAGS" >> $config_host_mak
 echo "CC=$cc" >> $config_host_mak