From 96770a49b181dce29c6349dd70e980c819b0534b Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sun, 19 Aug 2018 21:17:32 +0100 Subject: [PATCH] add -lznz to the nifti test to help win see https://github.com/jcupitt/libvips/pull/1066 --- m4/nifti.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/m4/nifti.m4 b/m4/nifti.m4 index 17e2a3f9..6d60f654 100644 --- a/m4/nifti.m4 +++ b/m4/nifti.m4 @@ -30,7 +30,7 @@ AC_ARG_WITH(nifti-includes, AC_ARG_WITH(nifti-libraries, AS_HELP_STRING([--with-nifti-libraries=DIR], [libniftiio libraries are in DIR]), - NIFTI_LIBS="-L$withval -lniftiio" + NIFTI_LIBS="-L$withval -lniftiio -lznz" ) AC_MSG_CHECKING(for NIFTI) @@ -64,19 +64,19 @@ if test "$NIFTI_LIBS" = ""; then nifti_save_LIBS="$LIBS" nifti_save_CFLAGS="$CFLAGS" - LIBS="-lniftiio -lm $nifti_save_LIBS" + LIBS="-lniftiio -lznz -lm $nifti_save_LIBS" CFLAGS="$NIFTI_INCLUDES $CFLAGS" # Try the standard search path first AC_TRY_LINK([#include ],[is_nifti_file("")], [ - NIFTI_LIBS="-lniftiio" + NIFTI_LIBS="-lniftiio -lznz" ], [ # libniftiio is not in the standard search path, try $prefix LIBS="-L${prefix}/lib $LIBS" AC_TRY_LINK([#include ],[is_nifti_file("")], [ - NIFTI_LIBS="-L${prefix}/lib -lniftiio" + NIFTI_LIBS="-L${prefix}/lib -lniftiio -lznz" ], [ NIFTI_LIBS=no ])