Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2012 10:38:07 +0100
From:      Gary Jennejohn <gljennjohn@googlemail.com>
To:        Beeblebrox <zaphod@berentweb.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: boost error for linux source - looking in the wrong place?
Message-ID:  <20121111103807.7c86f0a3@ernst.jennejohn.org>
In-Reply-To: <1352623446128-5759953.post@n5.nabble.com>
References:  <1352623446128-5759953.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 11 Nov 2012 00:44:06 -0800 (PST)
Beeblebrox <zaphod@berentweb.com> wrote:

> I am trying to compile a linux source code on FreeBSD-9.1-PRERELEASE_amd64.
> at the ./configure stage I get this error:
> ------------------------------------
> checking boost/foreach.hpp usability... no
> checking boost/foreach.hpp presence... no
> checking for boost/foreach.hpp... no
> configure: error: "BOOST library is missing"
> ------------------------------------
> 
> But, I have /usr/local/include/boost/foreach.hpp
> /usr/local/include/boost/test/utils/foreach.hpp
> 
> So the folder where FreeBSD places this and the folder where configure looks
> (as linux) must be different. How can I correct this? The relevant code
> snippet from the configure file is:
> if test x"$ac_boost_inc" != x"no"; then
>   CFLAGS+=" -I$ac_boost_inc "
>   CXXFLAGS+=" -I$ac_boost_inc "
>   (
>     CPPFLAGS+=" -I$ac_boost_inc "
>     if test "${ac_cv_header_boost_foreach_hpp+set}" = set; then
>   { echo "$as_me:$LINENO: checking for boost/foreach.hpp" >&5
> echo $ECHO_N "checking for boost/foreach.hpp... $ECHO_C" >&6; }
> if test "${ac_cv_header_boost_foreach_hpp+set}" = set; then
>   echo $ECHO_N "(cached) $ECHO_C" >&6
> fi
> { echo "$as_me:$LINENO: result: $ac_cv_header_boost_foreach_hpp" >&5
> echo "${ECHO_T}$ac_cv_header_boost_foreach_hpp" >&6; }
> else
>   # Is the header compilable?
> { echo "$as_me:$LINENO: checking boost/foreach.hpp usability" >&5
> echo $ECHO_N "checking boost/foreach.hpp usability... $ECHO_C" >&6; }
> cat >conftest.$ac_ext <<_ACEOF
> /* confdefs.h.  */
> _ACEOF
> cat confdefs.h >>conftest.$ac_ext
> cat >>conftest.$ac_ext <<_ACEOF
> /* end confdefs.h.  */
> $ac_includes_default
> 

It seems pretty obvious that you have to set whatever command line
option sets ac_boost_inc to /usr/local/include/boost.

What does configure --help show?

-- 
Gary Jennejohn



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121111103807.7c86f0a3>