add -lznz to the nifti test to help win

see https://github.com/jcupitt/libvips/pull/1066
This commit is contained in:
John Cupitt 2018-08-19 21:17:32 +01:00
parent 3d249924a5
commit 96770a49b1
1 changed files with 4 additions and 4 deletions

View File

@ -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 <nifti1_io.h>],[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 <nifti1_io.h>],[is_nifti_file("")], [
NIFTI_LIBS="-L${prefix}/lib -lniftiio"
NIFTI_LIBS="-L${prefix}/lib -lniftiio -lznz"
], [
NIFTI_LIBS=no
])