summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-06 18:09:58 +0100
committerHaru <haru@dotalux.com>2016-02-06 18:50:36 +0100
commit730fede2da1ca573ff716c77a5d9b1d0989adc6e (patch)
tree24e284d03b45b893d76b3f834888bcb75a761630 /configure
parentdfdf6b91839c88d9ca1071d63337d33757a87f4c (diff)
downloadhercules-730fede2da1ca573ff716c77a5d9b1d0989adc6e.tar.gz
hercules-730fede2da1ca573ff716c77a5d9b1d0989adc6e.tar.bz2
hercules-730fede2da1ca573ff716c77a5d9b1d0989adc6e.tar.xz
hercules-730fede2da1ca573ff716c77a5d9b1d0989adc6e.zip
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 <haru@dotalux.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure b/configure
index cf944326d..55da25ce8 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in cbe69a9.
+# From configure.in dfdf6b9.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69.
#
@@ -4596,6 +4596,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
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :