more bsd fixes

This commit is contained in:
Michael Jerris 2014-02-19 15:55:54 -05:00
parent 99765fbd9a
commit 7af0618620
1 changed files with 7 additions and 6 deletions

View File

@ -520,6 +520,13 @@ x86_64-* | i386-* | i686-*)
;;
esac
case "$host" in
*bsd*)
CFLAGS="$CFLAGS -I/usr/local/include"
LDFLAGS="$LDFLAGS -L/usr/local/lib"
;;
esac
if test "$enable_builtin_tiff" = "yes" ; then
abs_tiffdir="`cd $srcdir/../tiff-4.0.2/ && pwd`"
save_CFLAGS=$CFLAGS
@ -533,12 +540,6 @@ if test "$enable_builtin_tiff" = "yes" ; then
TIFF_LIBS="$abs_tiffdir/libtiff/libtiff.la"
AC_DEFINE([HAVE_LIBTIFF], [1], [Define to 1 if you have the `tiff' library (-ltiff).])
else
case "$host" in
*bsd*)
CFLAGS="$CFLAGS -I/usr/local/include"
LDFLAGS="$LDFLAGS -L/usr/local/lib"
;;
esac
AC_CHECK_HEADERS([tiffio.h])
AC_CHECK_LIB([tiff], [TIFFOpen], , AC_MSG_ERROR("Cannot build without libtiff (does your system require a libtiff-devel package?)"), -lm)
fi