From 7af06186208cccab669d8c919d5cb4bf9ccb8ebc Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 19 Feb 2014 15:55:54 -0500 Subject: [PATCH] more bsd fixes --- libs/spandsp/configure.ac | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libs/spandsp/configure.ac b/libs/spandsp/configure.ac index a21e3ed887..14756279bc 100644 --- a/libs/spandsp/configure.ac +++ b/libs/spandsp/configure.ac @@ -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