From: Christos Tsantilas Date: Wed, 3 Jul 2013 17:34:42 +0000 (+0300) Subject: Fix build on FreeBSD 9.x platform with clang X-Git-Tag: SQUID_3_4_0_1~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5467222651283a76562a29539b330f9eca5b663;p=thirdparty%2Fsquid.git Fix build on FreeBSD 9.x platform with clang Add the "/usr/local/*" directories to include files and libraries search paths, for clang compiler too. --- diff --git a/configure.ac b/configure.ac index 484d063b29..6ab2691e97 100644 --- a/configure.ac +++ b/configure.ac @@ -195,7 +195,8 @@ AM_CONDITIONAL(ENABLE_WIN32SPECIFIC, [test "x$squid_host_os" = "xmingw" -o "x$squid_host_os" = "xcygwin"]) AM_CONDITIONAL(USE_IPC_WIN32,[test "x$squid_host_os" = "xmingw"]) -if test "x$squid_host_os" = "xmingw"; then +case "$squid_host_os" in +mingw) AC_PATH_PROG(WIN32_PSAPI, psapi.dll, none) CFLAGS="$CFLAGS -mthreads" CXXFLAGS="$CXXFLAGS -mthreads" @@ -208,7 +209,16 @@ if test "x$squid_host_os" = "xmingw"; then fi MINGW_LIBS="-lmingwex" AC_SUBST(MINGW_LIBS) -fi + ;; +freebsd) + # FreeBSD places local libraries and packages in /usr/local + CFLAGS="$CFLAGS -I/usr/local/include" + CXXFLAGS="$CXXFLAGS -I/usr/local/include" + LDFLAGS="$LDFLAGS -L/usr/local/lib -Wl,-R/usr/local/lib" + ;; +*) + ;; +esac dnl Substitutions AC_DEFINE_UNQUOTED(CONFIG_HOST_TYPE, "$host",[Host type from configure]) @@ -329,12 +339,6 @@ dnl -Werror -Wmissing-prototypes -Wmissing-declarations dnl TODO: check if the problem will be present in any other newer MinGW release. SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow" ;; - freebsd) - # FreeBSD places local libraries and packages in /usr/local - CFLAGS="$CFLAGS -I/usr/local/include" - CXXFLAGS="$CXXFLAGS -I/usr/local/include" - LDFLAGS="$LDFLAGS -L/usr/local/lib -Wl,-R/usr/local/lib" - ;; *) SQUID_CFLAGS="$squid_cv_cc_option_wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Wshadow" ;;