From 70f47acd6b573060c23eafe8ec290bd9b6ca2e01 Mon Sep 17 00:00:00 2001 Message-Id: <70f47acd6b573060c23eafe8ec290bd9b6ca2e01.1717654015.git.mdw@distorted.org.uk> From: Mark Wooding Date: Fri, 4 Jan 2008 21:35:53 +0000 Subject: [PATCH] Recognize FreeBSD and adjust LDFLAGS/CPPFLAGS to cope with compiler/ports mismatch brain damage, Organization: Straylight/Edgeware From: Richard Kettlewell Move PCRE UTF-8 test after check for pcre.h, to avoid false positives if pcre.h isn't found. --- configure.ac | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 9e353f8..c167d8d 100644 --- a/configure.ac +++ b/configure.ac @@ -82,6 +82,12 @@ case "$host" in fi browser=open ;; +*-freebsd* ) + AC_MSG_RESULT([FreeBSD]) + want_server=yes + LDFLAGS="${LDFLAGS} -L/usr/local/lib" + CPPFLAGS="${CPPFLAGS} -I/usr/local/include" + ;; * ) AC_MSG_RESULT([unknown, winging it]) want_server=no @@ -233,9 +239,6 @@ if test ! -z "$missing_libraries"; then AC_MSG_ERROR([missing libraries:$missing_libraries]) fi -# We require that libpcre support UTF-8 -RJK_REQUIRE_PCRE_UTF8([-lpcre]) - # Checks for header files. RJK_FIND_GC_H if test $want_oss = yes; then @@ -268,6 +271,9 @@ if test ! -z "$missing_headers"; then AC_MSG_ERROR([missing headers:$missing_headers]) fi +# We require that libpcre support UTF-8 +RJK_REQUIRE_PCRE_UTF8([-lpcre]) + # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T -- [mdw]