[asterisk-dev] autoconf issues for FreeBSD

Edwin Groothuis edwin at mavetju.org
Wed Oct 4 18:16:27 MST 2006


On Wed, Oct 04, 2006 at 05:45:36PM -0500, Russell Bryant wrote:
> ----- Luigi Rizzo <rizzo at icir.org> wrote:
> > I am pretty sure that the code below (which was my patch at the time)
> > is NOT a proper fix - i would expect autoconf to deal with platform
> > issues without having us deal with them on each and every port.
> 
> It really does seem odd that /usr/local/ would be the default prefix
> where things are installed on FreeBSD, yet it is not one of the default
> paths that the compiler and linker on the same system would look.  If
> that were the case, none of this would be a problem.

It's most likely part of the fact that most third party software
on FreeBSD is installed via the Ports system, which tries to be
prefix-independent so that you can install it in /foo/bar if you
like and it still installs, works and deinstalls cleanly.

Sometimes configure accepts the --prefix parameter and it takes the
right paths for the include files and libraries. Sometimes it doesn't
and the ports Makefile has to specify that LDFLAGS and CFLAGS needs
-L and -I. And sometimes it needs intensive patching of the sourcecode
or the configure script to get it behaving properly.

Edwin

-- 
Edwin Groothuis      |            Personal website: http://www.mavetju.org
edwin at mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/


More information about the asterisk-dev mailing list