From 020c9108a1ef28bbfca102449b7f8b61fdb94950 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 19 Feb 2014 15:04:30 -0500 Subject: [PATCH] add search path for libtiff on bsd --- libs/spandsp/configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/spandsp/configure.ac b/libs/spandsp/configure.ac index 423513100c..a21e3ed887 100644 --- a/libs/spandsp/configure.ac +++ b/libs/spandsp/configure.ac @@ -533,6 +533,12 @@ 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