[asterisk-dev] autoconf issues for FreeBSD

Luigi Rizzo rizzo at icir.org
Wed Oct 4 12:32:23 MST 2006


Looking in more detail at autoconf issues with asterisk on FreeBSD
(but i believe the problem is more general) i noticed that several
tests fail because /usr/local and /usr/local/include are not in the
compiler/linker flags.

I added such defines to configure.ac for FreeBSD, but they were
removed in svn 40335 (i am not sure why).

	http://svn.digium.com/view/asterisk/trunk/configure.ac?r1=40335&r2=40722

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.

On the other hand, i am no autoconf expert so i don't have better ideas,
so unless someone steps in with a better solution i'd be inclined to put
it back into SVN.

suggestions anyone ?

	cheers
	luigi

Index: configure.ac
===================================================================
--- configure.ac        (revision 44374)
+++ configure.ac        (working copy)
@@ -30,6 +30,8 @@
 case "${host_os}" in
      freebsd*)
      ac_default_prefix=/usr/local
+     CPPFLAGS=-I/usr/local/include
+     LDFLAGS=-L/usr/local/lib
      ;;
      *)
      ac_default_prefix=/usr


More information about the asterisk-dev mailing list