]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add search path for libtiff on bsd
authorMichael Jerris <mike@jerris.com>
Wed, 19 Feb 2014 20:04:30 +0000 (15:04 -0500)
committerMichael Jerris <mike@jerris.com>
Wed, 19 Feb 2014 20:04:30 +0000 (15:04 -0500)
libs/spandsp/configure.ac

index 423513100c5b33b0e438d58d037492f6a6d481ba..a21e3ed887e13fc6c06d3fc9cacebb56b9e2d08a 100644 (file)
@@ -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