configure needs to check zlib devel files installed
PATCH 1/1 configure needs to check zlib devel files installed
Hi,
This patch makes configure check zlib devel files installed. Current configure doesn't check that, so make will fail if they are not installed.
Thanks,
ozaki-r
Signed-off-by Ryota Ozaki <[email protected]>
--- configure | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
configure (working copy) renamed from configure (revision 5408) +17 -0
@@ -707,6 +707,23 @@ fi ########################################## +# zlib check + +cat > $TMPC << EOF +#include <zlib.h> +int main(void) { zlibVersion(); return 0; } +EOF +if $cc $CFLAGS $LDFLAGS -o $TMPE $TMPC -lz 2> /dev/null ; then + : +else + echo + echo "Error: zlib check failed" + echo "Make sure to have the zlib libs and headers installed." + echo + exit 1 +fi + +########################################## # SDL probe sdl_too_old=no