[rizzo@icir.org: [asterisk-dev] autoconf issues for FreeBSD]
Luigi Rizzo
rizzo at icir.org
Wed Oct 4 13:28:48 PDT 2006
any autoconf guru here who can help me with the problem described below ?
basically, what is the proper way to tell configure.ac to set CPPFLAGS
and LDFLAGS properly (i.e. according to platform conventions) without
having to put platform-specific code in configure.ac or invoking
./configure with these values set ?
I suppose the problem is common to many ports...
cheers
luigi
----- Forwarded message from Luigi Rizzo <rizzo at icir.org> -----
Date: Wed, 4 Oct 2006 12:32:23 -0700
From: Luigi Rizzo <rizzo at icir.org>
Subject: [asterisk-dev] autoconf issues for FreeBSD
To: Asterisk Developers Mailing List <asterisk-dev at lists.digium.com>
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
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev
----- End forwarded message -----
More information about the freebsd-ports
mailing list