Date: Wed, 4 Oct 2006 13:28:43 -0700 From: Luigi Rizzo <rizzo@icir.org> To: ports@freebsd.org Subject: [rizzo@icir.org: [asterisk-dev] autoconf issues for FreeBSD] Message-ID: <20061004132843.A34553@xorpc.icir.org>
next in thread | raw e-mail | index | archive | help
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@icir.org> ----- Date: Wed, 4 Oct 2006 12:32:23 -0700 From: Luigi Rizzo <rizzo@icir.org> Subject: [asterisk-dev] autoconf issues for FreeBSD To: Asterisk Developers Mailing List <asterisk-dev@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 -----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061004132843.A34553>