From 730fede2da1ca573ff716c77a5d9b1d0989adc6e Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 6 Feb 2016 18:09:58 +0100 Subject: Added /usr/local path to the header and library search paths - This fixes PCRE search failures on FreeBSD and on OS X with Homebrew - Thanks to ultramage Signed-off-by: Haru --- configure.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index b4a5a110c..9dd53ab95 100644 --- a/configure.in +++ b/configure.in @@ -481,6 +481,18 @@ CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wextra -Wno-sign-compare" CPPFLAGS="$CPPFLAGS -I../common" LDFLAGS="$LDFLAGS" +# Add /usr/local to the library and header search path, where appropriate +case `uname` in + Darwin*|*BSD*) + if test -d /usr/local/include ; then + CPPFLAGS="$CPPFLAGS -I/usr/local/include" + fi + if test -d /usr/local/lib ; then + LDFLAGS="$LDFLAGS -L/usr/local/lib" + fi + ;; +esac + AC_C_BIGENDIAN( [AC_MSG_ERROR([[bigendian is not supported... stopping]])], , -- cgit v1.2.3-60-g2f50